Date: Fri, 16 Aug 2019 23:57:39 +0000 (UTC) From: Yuri Victorovich <yuri@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r509125 - head/www/mattermost-server Message-ID: <201908162357.x7GNvdjc037545@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: yuri Date: Fri Aug 16 23:57:39 2019 New Revision: 509125 URL: https://svnweb.freebsd.org/changeset/ports/509125 Log: www/mattermost-server: Switch to USES=go:modules, fix build with go1.13 PR: 239884 Submitted by: Dmitri Goutnik <dg@syrec.org> Approved by: loic.blot@unix-experience.fr (maintainer) Modified: head/www/mattermost-server/Makefile Modified: head/www/mattermost-server/Makefile ============================================================================== --- head/www/mattermost-server/Makefile Fri Aug 16 23:48:50 2019 (r509124) +++ head/www/mattermost-server/Makefile Fri Aug 16 23:57:39 2019 (r509125) @@ -16,9 +16,10 @@ ONLY_FOR_ARCHS= amd64 armv6 armv7 i386 RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss \ mattermost-webapp>=${PORTVERSION}:www/mattermost-webapp -USES= go +USES= go:modules -GO_LDFLAGS= -X github.com/mattermost/mattermost-server/model.BuildNumber=${PORTVERSION} +GO_TARGET= ./cmd/mattermost +GO_BUILDFLAGS= -ldflags="-X github.com/mattermost/mattermost-server/model.BuildNumber=${PORTVERSION}" USE_RC_SUBR= mattermostd @@ -33,22 +34,11 @@ MATTERMOSTD_GROUP= mattermost USERS= ${MATTERMOSTD_USER} GROUPS= ${MATTERMOSTD_GROUP} -pre-build: - @${MKDIR} ${WRKSRC}/src/github.com/${GH_ACCOUNT_DEFAULT}/${PORTNAME} - @cd ${WRKSRC} && \ - ${MV} api4 app cmd config doc einterfaces imports jobs manualtesting \ - mlog migrations model plugin services store testlib utils web wsapi vendor \ - ${WRKSRC}/src/github.com/${GH_ACCOUNT_DEFAULT}/${PORTNAME} - -do-build: - @cd ${WRKSRC}/src/github.com/${GH_ACCOUNT_DEFAULT}/${GH_PROJECT} && \ - ${SETENV} ${MAKE_ENV} GOPATH=${WRKSRC} go install -ldflags="${GO_LDFLAGS}" ./... - -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/bin/mattermost ${STAGEDIR}${PREFIX}/bin/mattermostd +post-install: + ${MV} ${STAGEDIR}${PREFIX}/bin/mattermost ${STAGEDIR}${PREFIX}/bin/mattermostd ${MKDIR} ${STAGEDIR}${PREFIX}/etc/mattermost - ${INSTALL_DATA} ${WRKSRC}/src/github.com/${GH_ACCOUNT_DEFAULT}/${PORTNAME}/config/default.json ${STAGEDIR}${PREFIX}/etc/mattermost/config.json.sample + ${INSTALL_DATA} ${GO_WRKSRC}/config/default.json ${STAGEDIR}${PREFIX}/etc/mattermost/config.json.sample ${MKDIR} ${STAGEDIR}${WWWDIR} - cd ${WRKSRC} && ${COPYTREE_SHARE} 'fonts i18n templates' ${STAGEDIR}${WWWDIR} + cd ${GO_WRKSRC} && ${COPYTREE_SHARE} 'fonts i18n templates' ${STAGEDIR}${WWWDIR} .include <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908162357.x7GNvdjc037545>