svn commit: r499427 - head/devel/shfmt
Tobias Kortkamp
tobik at FreeBSD.org
Sat Apr 20 06:10:40 UTC 2019
Author: tobik
Date: Sat Apr 20 06:10:38 2019
New Revision: 499427
URL: https://svnweb.freebsd.org/changeset/ports/499427
Log:
devel/shfmt: Switch to USES=go
Modified:
head/devel/shfmt/Makefile
Modified: head/devel/shfmt/Makefile
==============================================================================
--- head/devel/shfmt/Makefile Sat Apr 20 05:53:59 2019 (r499426)
+++ head/devel/shfmt/Makefile Sat Apr 20 06:10:38 2019 (r499427)
@@ -11,20 +11,13 @@ COMMENT= Format shell scripts
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= go>=1.10,1:lang/go
-
+USES= go
+GO_PKGNAME= mvdan.cc/sh
+GO_TARGET= mvdan.cc/sh/cmd/shfmt
USE_GITHUB= yes
GH_ACCOUNT= mvdan
GH_PROJECT= sh
-GH_SUBDIR= src/mvdan.cc/sh
-MAKE_ENV= GOPATH=${WRKSRC}
PLIST_FILES= bin/shfmt
-
-do-build:
- @cd ${WRKSRC}/cmd/shfmt && ${SETENV} ${MAKE_ENV} go build
-
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/cmd/shfmt/shfmt ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>
More information about the svn-ports-head
mailing list