svn commit: r567494 - head/devel/please

Tobias Kortkamp tobik at FreeBSD.org
Sat Mar 6 14:08:32 UTC 2021


Author: tobik
Date: Sat Mar  6 14:08:31 2021
New Revision: 567494
URL: https://svnweb.freebsd.org/changeset/ports/567494

Log:
  Clean up devel/please
  
  - Drop do-build and INSTALL_FILES in favor of GO_TARGET
  - Install release_signer which was built but never installed
  
  Approved by:	swills
  Differential Revision:	https://reviews.freebsd.org/D29079

Modified:
  head/devel/please/Makefile
  head/devel/please/pkg-plist

Modified: head/devel/please/Makefile
==============================================================================
--- head/devel/please/Makefile	Sat Mar  6 13:53:19 2021	(r567493)
+++ head/devel/please/Makefile	Sat Mar  6 14:08:31 2021	(r567494)
@@ -3,6 +3,7 @@
 PORTNAME=	please
 DISTVERSIONPREFIX=	v
 DISTVERSION=	15.17.0
+PORTREVISION=	1
 CATEGORIES=	devel
 PKGNAMESUFFIX=	.build
 
@@ -99,27 +100,22 @@ GH_TUPLE=	StackExchange:wmi:cbe66965904d:stackexchange
 		tsenart:deadcode:210d2dc333e9:tsenart_deadcode/vendor/github.com/tsenart/deadcode \
 		ulikunitz:xz:v0.5.6:ulikunitz_xz/vendor/github.com/ulikunitz/xz
 
-INSTALL_FILES=	bin/build_langserver bin/jarcat bin/please bin/please_go_filter \
-		bin/please_go_install bin/please_go_test bin/please_pex \
-		bin/please_sandbox
+GO_TARGET=	src/please.go:please \
+		tools/build_langserver/langserver_main.go:build_langserver \
+		tools/jarcat/main.go:jarcat \
+		tools/please_go_filter/please_go_filter.go:please_go_filter \
+		tools/please_go_install/please_go_install.go:please_go_install \
+		tools/please_go_test/plz_go_test_main.go:please_go_test \
+		tools/please_pex/pex_main.go:please_pex \
+		tools/release_signer/main.go:release_signer
 
 post-extract:
 	${CP} ${WRKSRC}/tools/please_go_test/plz_go_test.go ${WRKSRC}/tools/please_go_test/plz_go_test_main.go
 
-do-build:
-	cd ${WRKSRC} ; ${SETENV} GOPROXY="off" GOCACHE=${WRKSRC}/.go-cache GOFLAGS="-mod=vendor" go build src/please.go
-	cd ${WRKSRC} ; ${SETENV} GOPROXY="off" GOCACHE=${WRKSRC}/.go-cache GOFLAGS="-mod=vendor" go build -o build_langserver tools/build_langserver/langserver_main.go
-	cd ${WRKSRC} ; ${SETENV} GOPROXY="off" GOCACHE=${WRKSRC}/.go-cache GOFLAGS="-mod=vendor" go build -o jarcat tools/jarcat/main.go
-	cd ${WRKSRC} ; ${SETENV} GOPROXY="off" GOCACHE=${WRKSRC}/.go-cache GOFLAGS="-mod=vendor" go build -o please_go_filter tools/please_go_filter/please_go_filter.go
-	cd ${WRKSRC} ; ${SETENV} GOPROXY="off" GOCACHE=${WRKSRC}/.go-cache GOFLAGS="-mod=vendor" go build -o please_go_install tools/please_go_install/please_go_install.go
-	cd ${WRKSRC} ; ${SETENV} GOPROXY="off" GOCACHE=${WRKSRC}/.go-cache GOFLAGS="-mod=vendor" go build -o please_go_test tools/please_go_test/plz_go_test_main.go
-	cd ${WRKSRC} ; ${SETENV} GOPROXY="off" GOCACHE=${WRKSRC}/.go-cache GOFLAGS="-mod=vendor" go build -o please_pex tools/please_pex/pex_main.go
-	cd ${WRKSRC} ; ${SETENV} GOPROXY="off" GOCACHE=${WRKSRC}/.go-cache GOFLAGS="-mod=vendor" go build -o release_signer tools/release_signer/main.go
+post-build:
 	cd ${WRKSRC} ; ${SETENV} ${CC} ${CFLAGS} -o please_sandbox tools/sandbox/main.c
 
-do-install:
-.for FILE in ${INSTALL_FILES}
-	${INSTALL_PROGRAM} ${WRKSRC}/${FILE:C,bin/,,} ${STAGEDIR}${PREFIX}/bin/
-.endfor
+post-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/please_sandbox ${STAGEDIR}${PREFIX}/bin
 
 .include <bsd.port.mk>

Modified: head/devel/please/pkg-plist
==============================================================================
--- head/devel/please/pkg-plist	Sat Mar  6 13:53:19 2021	(r567493)
+++ head/devel/please/pkg-plist	Sat Mar  6 14:08:31 2021	(r567494)
@@ -6,3 +6,4 @@ bin/please_go_install
 bin/please_go_test
 bin/please_pex
 bin/please_sandbox
+bin/release_signer


More information about the svn-ports-head mailing list