Lines 1-7
Link Here
|
1 |
PORTNAME= gotosocial |
1 |
PORTNAME= gotosocial |
2 |
DISTVERSIONPREFIX= v |
2 |
DISTVERSIONPREFIX= v |
3 |
DISTVERSION= 0.14.1 |
3 |
DISTVERSION= 0.15.0 |
4 |
PORTREVISION= 1 |
|
|
5 |
CATEGORIES= net-im |
4 |
CATEGORIES= net-im |
6 |
MASTER_SITES?= https://github.com/${GH_ACCOUNT}/${PORTNAME}/releases/download/v${DISTVERSION}/:web |
5 |
MASTER_SITES?= https://github.com/${GH_ACCOUNT}/${PORTNAME}/releases/download/v${DISTVERSION}/:web |
7 |
DISTFILES?= ${PORTNAME}_${DISTVERSION}_web-assets.tar.gz:web |
6 |
DISTFILES?= ${PORTNAME}_${DISTVERSION}_web-assets.tar.gz:web |
Lines 22-28
GH_ACCOUNT= superseriousbusiness
Link Here
|
22 |
USE_RC_SUBR= ${PORTNAME} |
21 |
USE_RC_SUBR= ${PORTNAME} |
23 |
|
22 |
|
24 |
GO_TARGET= ./cmd/gotosocial |
23 |
GO_TARGET= ./cmd/gotosocial |
25 |
GO_BUILDFLAGS= -trimpath -tags "netgo osusergo static_build kvformat ${WITH_DEBUG:Ddebugenv}" \ |
24 |
GO_BUILDFLAGS+= -tags "netgo osusergo static_build kvformat ${WITH_DEBUG:Ddebugenv}" \ |
26 |
-ldflags="${STRIP} -w -extldflags '-static' -X 'main.Version=${PKGVERSION}'" |
25 |
-ldflags="${STRIP} -w -extldflags '-static' -X 'main.Version=${PKGVERSION}'" |
27 |
CGO_ENABLED= 0 |
26 |
CGO_ENABLED= 0 |
28 |
|
27 |
|
Lines 40-45
PLIST_SUB= WWWDIR="${WWWDIR}"
Link Here
|
40 |
|
39 |
|
41 |
TESTING_UNSAFE= FAIL github.com/superseriousbusiness/gotosocial/internal/log |
40 |
TESTING_UNSAFE= FAIL github.com/superseriousbusiness/gotosocial/internal/log |
42 |
|
41 |
|
|
|
42 |
post-patch: |
43 |
${REINPLACE_CMD} -e 's,GTS_DB_TYPE="postgres",#&,' ${WRKSRC}/scripts/test.sh |
44 |
|
43 |
post-install: |
45 |
post-install: |
44 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
46 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
45 |
.for x in LICENSE README.md |
47 |
.for x in LICENSE README.md |
Lines 51-54
post-install:
Link Here
|
51 |
${STAGEDIR}${ETCDIR}/config.yaml.sample |
53 |
${STAGEDIR}${ETCDIR}/config.yaml.sample |
52 |
(cd ${WRKSRC}/../web && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}/ ) |
54 |
(cd ${WRKSRC}/../web && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}/ ) |
53 |
|
55 |
|
|
|
56 |
do-test: |
57 |
(cd ${GO_WRKSRC}; \ |
58 |
${SETENVI} ${WRK_ENV} ${MAKE_ENV} ${GO_ENV} GOPROXY=off scripts/test.sh) |
59 |
|
54 |
.include <bsd.port.mk> |
60 |
.include <bsd.port.mk> |