Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Aug 2019 13:22:52 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r510274 - head/net-im/matterbridge
Message-ID:  <201908301322.x7UDMqSd033805@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908301322.x7UDMqSd033805>