blob: c6cb66b2ca10b4b74eb503afe1998f8efe7d4689 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
PORTNAME= soju
DISTVERSIONPREFIX= v
DISTVERSION= 0.2.0
CATEGORIES= irc
MASTER_SITES= https://git.sr.ht/~emersion/go-scfg/archive/:goscfg \
https://git.sr.ht/~sircmpwn/go-bare/archive/:gobare
DISTFILES= ${GO_SCFG_REV}.tar.gz:goscfg \
${GO_BARE_REV}.tar.gz:gobare
MAINTAINER= ashish@FreeBSD.org
COMMENT= IRC bouncer
LICENSE= AGPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go:modules
OPTIONS_DEFAULT= DOCS
OPTIONS_DEFINE= DOCS
USE_GITHUB= yes
GH_ACCOUNT= emersion
GH_TUPLE= emersion:go-sasl:7bfe0ed36a21:emersion_go_sasl/vendor/github.com/emersion/go-sasl \
go-irc:irc:v3.1.4:go_irc_irc/vendor/gopkg.in/irc.v3 \
golang:crypto:32db794688a5:golang_crypto/vendor/golang.org/x/crypto \
golang:sys:751e447fb3d0:golang_sys/vendor/golang.org/x/sys \
golang:term:6886f2dfbf5b:golang_term/vendor/golang.org/x/term \
google:shlex:e7afc7fbc510:google_shlex/vendor/github.com/google/shlex \
klauspost:compress:v1.13.5:klauspost_compress/vendor/github.com/klauspost/compress \
mattn:go-sqlite3:v1.14.8:mattn_go_sqlite3/vendor/github.com/mattn/go-sqlite3 \
nhooyr:websocket:v1.8.7:nhooyr_websocket/vendor/nhooyr.io/websocket \
pires:go-proxyproto:v0.6.1:pires_go_proxyproto/vendor/github.com/pires/go-proxyproto
GO_BARE_REV= ab86bc2846d9
GO_SCFG_REV= 142a8aa629fc
GO_PKGNAME= ./cmd/soju ./cmd/sojuctl ./contrib/znc-import.go
PLIST_FILES= bin/soju \
bin/sojuctl \
bin/soju-znc-import \
${DOCSDIR_REL}/getting-started.md
DOCS_BUILD_DEPENDS= scdoc:textproc/scdoc
DOCS_PLIST_FILES= man/man1/soju.1.gz \
post-extract:
${MKDIR} ${WRKSRC}/vendor/git.sr.ht/~emersion ${WRKSRC}/vendor/git.sr.ht/~sircmpwn
${MV} ${WRKDIR}/go-scfg-${GO_SCFG_REV} ${WRKSRC}/vendor/git.sr.ht/~emersion/go-scfg
${MV} ${WRKDIR}/go-bare-${GO_BARE_REV} ${WRKSRC}/vendor/git.sr.ht/~sircmpwn/go-bare
post-build-DOCS-on:
${LOCALBASE}/bin/scdoc <${WRKSRC}/doc/${PORTNAME}.1.scd >${WRKSRC}/doc/${PORTNAME}.1
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${MV} ${STAGEDIR}${PREFIX}/bin/znc-import.go ${STAGEDIR}${PREFIX}/bin/soju-znc-import
${INSTALL_MAN} ${WRKSRC}/doc/getting-started.md ${STAGEDIR}${DOCSDIR}
post-install-DOCS-on:
${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/man/man1
.include <bsd.port.mk>
|