Update www/firefox-esr to version 102.5.0,1
[dports.git] / www / beehive / Makefile
1 PORTNAME=       beehive
2 DISTVERSIONPREFIX=      v
3 DISTVERSION=    0.4.0
4 PORTREVISION=   7
5 CATEGORIES=     www
6
7 MAINTAINER=     lcook@FreeBSD.org
8 COMMENT=        Flexible event/agent & automation system with lots of bees
9 WWW=            https://github.com/muesli/beehive
10
11 LICENSE=        AGPLv3
12 LICENSE_FILE=   ${WRKSRC}/LICENSE
13
14 ONLY_FOR_ARCHS= amd64 i386
15
16 BUILD_DEPENDS=  go-bindata:devel/go-bindata
17
18 USES=           go:modules
19 USE_GITHUB=     yes
20 GH_ACCOUNT=     muesli
21 GH_TUPLE=       ChimeraCoder:anaconda:v2.0.0:chimeracoder_anaconda/vendor/github.com/ChimeraCoder/anaconda \
22                 ChimeraCoder:tokenbucket:c5a927568de7:chimeracoder_tokenbucket/vendor/github.com/ChimeraCoder/tokenbucket \
23                 CleverbotIO:go-cleverbot.io:d24926702e8d:cleverbotio_go_cleverbot_io/vendor/github.com/CleverbotIO/go-cleverbot.io \
24                 MariaTerzieva:gotumblr:93ca5e50a3fd:mariaterzieva_gotumblr/vendor/github.com/MariaTerzieva/gotumblr \
25                 Profpatsch:GoOse:da5de31b9bd2:profpatsch_goose/vendor/github.com/Profpatsch/GoOse \
26                 PuerkitoBio:goquery:v1.5.0:puerkitobio_goquery/vendor/github.com/PuerkitoBio/goquery \
27                 akashshinde:go_cricket:01a06b2c3f22:akashshinde_go_cricket/vendor/github.com/akashshinde/go_cricket \
28                 alexcesaro:quotedprintable:2caba252f4dc:alexcesaro_quotedprintable/vendor/gopkg.in/alexcesaro/quotedprintable.v3 \
29                 andybalholm:cascadia:v1.0.0:andybalholm_cascadia/vendor/github.com/andybalholm/cascadia \
30                 araddon:dateparse:0d74ffceef83:araddon_dateparse/vendor/github.com/araddon/dateparse \
31                 asaskevich:EventBus:d46933a94f05:asaskevich_eventbus/vendor/github.com/asaskevich/EventBus \
32                 azr:backoff:53511d3c7330:azr_backoff/vendor/github.com/azr/backoff \
33                 beorn7:perks:3a771d992973:beorn7_perks/vendor/github.com/beorn7/perks \
34                 briandowns:openweathermap:5f41b7c9d92d:briandowns_openweathermap/vendor/github.com/briandowns/openweathermap \
35                 bwmarrin:discordgo:v0.19.0:bwmarrin_discordgo/vendor/github.com/bwmarrin/discordgo \
36                 carlosdp:twiliogo:b26045ebb9d1:carlosdp_twiliogo/vendor/github.com/carlosdp/twiliogo \
37                 cloudflare:cloudflare-go:v0.10.6:cloudflare_cloudflare_go/vendor/github.com/cloudflare/cloudflare-go \
38                 coreos:go-systemd:fd7a80b32e1f:coreos_go_systemd/vendor/github.com/coreos/go-systemd \
39                 davecgh:go-spew:v1.1.1:davecgh_go_spew/vendor/github.com/davecgh/go-spew \
40                 deckarep:gosx-notifier:e127226297fb:deckarep_gosx_notifier/vendor/github.com/deckarep/gosx-notifier \
41                 dustin:go-jsonpointer:ba0abeacc3dc:dustin_go_jsonpointer/vendor/github.com/dustin/go-jsonpointer \
42                 dustin:gojson:2e71ec9dd5ad:dustin_gojson/vendor/github.com/dustin/gojson \
43                 emicklei:go-restful:v2.9.3:emicklei_go_restful/vendor/github.com/emicklei/go-restful \
44                 fatih:set:v0.2.1:fatih_set/vendor/github.com/fatih/set \
45                 flashmob:go-guerrilla:07043ae76e81:flashmob_go_guerrilla/vendor/github.com/flashmob/go-guerrilla \
46                 fluffle:goirc:v1.0.1:fluffle_goirc/vendor/github.com/fluffle/goirc \
47                 fsnotify:fsnotify:v1.4.7:fsnotify_fsnotify/vendor/github.com/fsnotify/fsnotify \
48                 garyburd:go-oauth:bca2e7f09a17:garyburd_go_oauth/vendor/github.com/garyburd/go-oauth \
49                 gempir:go-twitch-irc:v2.2.2:gempir_go_twitch_irc_v2/vendor/github.com/gempir/go-twitch-irc/v2 \
50                 gigawattio:window:0f5467e35573:gigawattio_window/vendor/github.com/gigawattio/window \
51                 glaxx:go_pastebin:7e72d56770d0:glaxx_go_pastebin/vendor/github.com/glaxx/go_pastebin \
52                 go-ini:ini:v1.42.0:go_ini_ini/vendor/github.com/go-ini/ini \
53                 go-mail:mail:v2.3.1:go_mail_mail/vendor/github.com/go-mail/mail \
54                 go-telegram-bot-api:telegram-bot-api:v4.6.4:go_telegram_bot_api_telegram_bot_api/vendor/github.com/go-telegram-bot-api/telegram-bot-api \
55                 go-yaml:yaml:v2.2.2:go_yaml_yaml/vendor/gopkg.in/yaml.v2 \
56                 golang:appengine:v1.5.0:golang_appengine/vendor/google.golang.org/appengine \
57                 golang:crypto:a29dc8fdc734:golang_crypto/vendor/golang.org/x/crypto \
58                 golang:freetype:e2365dfdc4a0:golang_freetype/vendor/github.com/golang/freetype \
59                 golang:image:6d32002ffd75:golang_image/vendor/golang.org/x/image \
60                 golang:mock:v1.2.0:golang_mock/vendor/github.com/golang/mock \
61                 golang:net:da9a3fd4c582:golang_net/vendor/golang.org/x/net \
62                 golang:oauth2:9f3314589c9a:golang_oauth2/vendor/golang.org/x/oauth2 \
63                 golang:protobuf:v1.3.1:golang_protobuf/vendor/github.com/golang/protobuf \
64                 golang:sys:d89cdac9e872:golang_sys/vendor/golang.org/x/sys \
65                 golang:text:v0.3.2:golang_text/vendor/golang.org/x/text \
66                 golang:time:c4c64cad1fd0:golang_time/vendor/golang.org/x/time \
67                 google:go-github:v17.0.0:google_go_github/vendor/github.com/google/go-github \
68                 google:go-querystring:v1.0.0:google_go_querystring/vendor/github.com/google/go-querystring \
69                 gorilla:websocket:v1.4.0:gorilla_websocket/vendor/github.com/gorilla/websocket \
70                 guelfey:go.dbus:f6a3a2366cc3:guelfey_go_dbus/vendor/github.com/guelfey/go.dbus \
71                 horrendus:go-mixcloud:c2164c9e194c:horrendus_go_mixcloud/vendor/github.com/horrendus/go-mixcloud \
72                 huandu:facebook:v2.3.1:huandu_facebook/vendor/github.com/huandu/facebook \
73                 jacobsa:go-serial:15cf729a72d4:jacobsa_go_serial/vendor/github.com/jacobsa/go-serial \
74                 jayeshsolanki93:devgorant:69fb03e5c3b1:jayeshsolanki93_devgorant/vendor/github.com/jayeshsolanki93/devgorant \
75                 jaytaylor:html2text:01ec452cbe43:jaytaylor_html2text/vendor/github.com/jaytaylor/html2text \
76                 jpillora:backoff:v1.0.0:jpillora_backoff/vendor/github.com/jpillora/backoff \
77                 json-iterator:go:v1.1.6:json_iterator_go/vendor/github.com/json-iterator/go \
78                 konsorten:go-windows-terminal-sequences:v1.0.2:konsorten_go_windows_terminal_sequences/vendor/github.com/konsorten/go-windows-terminal-sequences \
79                 kr:pretty:v0.1.0:kr_pretty/vendor/github.com/kr/pretty \
80                 kr:text:v0.1.0:kr_text/vendor/github.com/kr/text \
81                 kurrik:oauth1a:cb1b80e32dd4:kurrik_oauth1a/vendor/github.com/kurrik/oauth1a \
82                 layeh:gumble:1ea1159c4956:layeh_gumble/vendor/layeh.com/gumble \
83                 lucasb-eyer:go-colorful:v1.0.3:lucasb_eyer_go_colorful/vendor/github.com/lucasb-eyer/go-colorful \
84                 mattn:go-colorable:v0.1.1:mattn_go_colorable/vendor/github.com/mattn/go-colorable \
85                 mattn:go-isatty:v0.0.7:mattn_go_isatty/vendor/github.com/mattn/go-isatty \
86                 mattn:go-mastodon:v0.0.3:mattn_go_mastodon/vendor/github.com/mattn/go-mastodon \
87                 mattn:go-runewidth:v0.0.4:mattn_go_runewidth/vendor/github.com/mattn/go-runewidth \
88                 mattn:go-xmpp:6093f50721ed:mattn_go_xmpp/vendor/github.com/mattn/go-xmpp \
89                 matttproud:golang_protobuf_extensions:v1.0.1:matttproud_golang_protobuf_extensions/vendor/github.com/matttproud/golang_protobuf_extensions \
90                 minio:minio-go:v6.0.14:minio_minio_go/vendor/github.com/minio/minio-go \
91                 mitchellh:go-homedir:v1.1.0:mitchellh_go_homedir/vendor/github.com/mitchellh/go-homedir \
92                 modern-go:concurrent:bacd9c7ef1dd:modern_go_concurrent/vendor/github.com/modern-go/concurrent \
93                 modern-go:reflect2:v1.0.1:modern_go_reflect2/vendor/github.com/modern-go/reflect2 \
94                 mreiferson:go-httpclient:31f0106b4474:mreiferson_go_httpclient/vendor/github.com/mreiferson/go-httpclient \
95                 mrexodia:wray:78a2c1f284ff:mrexodia_wray/vendor/github.com/mrexodia/wray \
96                 muesli:beehive-admin-dist:648f36d:muesli_beehive_admin_dist/vendor/github.com/muesli/beehive-admin-dist \
97                 muesli:clusters:ba9c57dd9228:muesli_clusters/vendor/github.com/muesli/clusters \
98                 muesli:gamut:0d3f7d26a44e:muesli_gamut/vendor/github.com/muesli/gamut \
99                 muesli:go-pkg-rss:3bef0f3126ec:muesli_go_pkg_rss/vendor/github.com/muesli/go-pkg-rss \
100                 muesli:go-pkg-xmlx:76f54ee73233:muesli_go_pkg_xmlx/vendor/github.com/muesli/go-pkg-xmlx \
101                 muesli:go.hue:8aefcc693caf:muesli_go_hue/vendor/github.com/muesli/go.hue \
102                 muesli:goefa:08d8ee2555d2:muesli_goefa/vendor/github.com/muesli/goefa \
103                 muesli:kmeans:80dfc71e6c5a:muesli_kmeans/vendor/github.com/muesli/kmeans \
104                 muesli:smolder:9c21fc7135ee:muesli_smolder/vendor/github.com/muesli/smolder \
105                 nicklaw5:helix:v0.5.7:nicklaw5_helix/vendor/github.com/nicklaw5/helix \
106                 nlopes:slack:v0.6.0:nlopes_slack/vendor/github.com/nlopes/slack \
107                 nu7hatch:gouuid:179d4d0c4d8d:nu7hatch_gouuid/vendor/github.com/nu7hatch/gouuid \
108                 odwrtw:transmission:08885b3058e7:odwrtw_transmission/vendor/github.com/odwrtw/transmission \
109                 olekukonko:tablewriter:v0.0.1:olekukonko_tablewriter/vendor/github.com/olekukonko/tablewriter \
110                 pkg:errors:v0.8.1:pkg_errors/vendor/github.com/pkg/errors \
111                 pmezard:go-difflib:v1.0.0:pmezard_go_difflib/vendor/github.com/pmezard/go-difflib \
112                 prometheus:client_golang:v0.9.2:prometheus_client_golang/vendor/github.com/prometheus/client_golang \
113                 prometheus:client_model:5c3871d89910:prometheus_client_model/vendor/github.com/prometheus/client_model \
114                 prometheus:common:4724e9255275:prometheus_common/vendor/github.com/prometheus/common \
115                 prometheus:procfs:1dc9a6cbc91a:prometheus_procfs/vendor/github.com/prometheus/procfs \
116                 rdegges:go-ipify:2d94a6a86c40:rdegges_go_ipify/vendor/github.com/rdegges/go-ipify \
117                 rogpeppe:go-charset:2471d30d28b4:rogpeppe_go_charset/vendor/github.com/rogpeppe/go-charset \
118                 shuheiktgw:go-travis:2d0b3e9898f0:shuheiktgw_go_travis/vendor/github.com/shuheiktgw/go-travis \
119                 simplepush:simplepush-go:8980e96b7b02:simplepush_simplepush_go/vendor/github.com/simplepush/simplepush-go \
120                 sirupsen:logrus:v1.4.1:sirupsen_logrus/vendor/github.com/sirupsen/logrus \
121                 sromku:go-gitter:70f7030a94a6:sromku_go_gitter/vendor/github.com/sromku/go-gitter \
122                 ssor:bom:6386211fdfcf:ssor_bom/vendor/github.com/ssor/bom \
123                 stretchr:objx:v0.2.0:stretchr_objx/vendor/github.com/stretchr/objx \
124                 stretchr:testify:v1.4.0:stretchr_testify/vendor/github.com/stretchr/testify \
125                 technoweenie:multipartstreamer:v1.0.1:technoweenie_multipartstreamer/vendor/github.com/technoweenie/multipartstreamer \
126                 tomnomnom:linkheader:02ca5825eb80:tomnomnom_linkheader/vendor/github.com/tomnomnom/linkheader \
127                 wcharczuk:go-chart:v2.0.1:wcharczuk_go_chart/vendor/github.com/wcharczuk/go-chart \
128                 xrash:smetrics:a3153f7040e9:xrash_smetrics/vendor/github.com/xrash/smetrics
129
130 USE_RC_SUBR=    ${PORTNAME}
131
132 _BUILD_TAGS=    -tags "embed"
133 _BUILD_SHA=     7447df7
134
135 GO_BUILDFLAGS=  ${_BUILD_TAGS} \
136                -ldflags "\
137                -s -w \
138                 -X main.Version=${DISTVERSION} \
139                 -X main.CommitSHA=${_BUILD_SHA}"
140
141 SUB_LIST=       GROUPS="${GROUPS}" \
142                 USERS="${USERS}"
143
144 _BEEHIVE_USER=  ${PORTNAME}
145 USERS=          ${_BEEHIVE_USER}
146 GROUPS=         ${_BEEHIVE_USER}
147
148 PLIST_FILES=    bin/${PORTNAME}
149 PORTDOCS=       README.md
150
151 OPTIONS_DEFINE= DOCS
152
153 post-extract:
154         @${RM} -r ${WRKSRC}/config
155         @${RLN} ${WRKSRC_muesli_beehive_admin_dist} ${WRKSRC}/config
156
157 pre-build:
158         (cd ${WRKSRC} && \
159                 ${LOCALBASE}/bin/go-bindata ${_BUILD_TAGS} --pkg api -o api/bindata.go --ignore config/.git assets/... config/...)
160
161 post-install-DOCS-on:
162         @${MKDIR} ${STAGEDIR}${DOCSDIR}
163         ${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
164
165 .include <bsd.port.mk>