svn commit: r510274 - head/net-im/matterbridge
Tobias Kortkamp
tobik at FreeBSD.org
Fri Aug 30 13:22:52 UTC 2019
Author: tobik
Date: Fri Aug 30 13:22:51 2019
New Revision: 510274
URL: https://svnweb.freebsd.org/changeset/ports/510274
Log:
net-im/matterbridge: Switch to USES=go:modules, fix build with go1.13
- Remove custom targets
===> Building for matterbridge-1.14.4
$GOPATH/go.mod exists but should not
*** Error code 1
PR: 239882
Submitted by: Dmitri Goutnik <dg at syrec.org>
Approved by: swills (maintainer timeout, 15 days)
Modified:
head/net-im/matterbridge/Makefile
Modified: head/net-im/matterbridge/Makefile
==============================================================================
--- head/net-im/matterbridge/Makefile Fri Aug 30 13:19:15 2019 (r510273)
+++ head/net-im/matterbridge/Makefile Fri Aug 30 13:22:51 2019 (r510274)
@@ -11,11 +11,10 @@ COMMENT= Chat network bridge
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
-USES= go
+USES= go:modules
USE_GITHUB= yes
GH_ACCOUNT= 42wim
-GH_SUBDIR= src/github.com/42wim/matterbridge
USE_RC_SUBR= matterbridge
@@ -30,12 +29,7 @@ PLIST_SUB= \
MATTERBRIDGE_USER=${MATTERBRIDGE_USER} \
MATTERBRIDGE_GROUP=${MATTERBRIDGE_GROUP}
-do-build:
- @cd ${WRKSRC}/src/github.com/42wim/matterbridge && \
- ${SETENV} ${MAKE_ENV} GOPATH=${WRKSRC} go build -o bin/${PORTNAME}
-
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+post-install:
${INSTALL_DATA} ${WRKSRC}/matterbridge.toml.sample ${STAGEDIR}${PREFIX}/etc/matterbridge.toml.sample
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list