pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Use correct versioned Go dependency, subst path for go.



Module Name:	pkgsrc-wip
Committed By:	Benny Siegert <bsiegert%gmail.com@localhost>
Pushed By:	bsiegert
Date:		Sun Sep 23 19:29:49 2018 +0000
Changeset:	af4cae1966ddc84ba7b471e593b1f43fc86ce692

Modified Files:
	boringssl/Makefile

Log Message:
Use correct versioned Go dependency, subst path for go.

Same change as for security/boringssl.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=af4cae1966ddc84ba7b471e593b1f43fc86ce692

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 boringssl/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diffs:
diff --git a/boringssl/Makefile b/boringssl/Makefile
index 920c59603a..b733f5ebe6 100644
--- a/boringssl/Makefile
+++ b/boringssl/Makefile
@@ -11,7 +11,9 @@ LICENSE=	openssl
 
 WRKSRC=		${WRKDIR}/boringssl
 
-BUILD_DEPENDS+=	go>=1.4:../../lang/go
+.include "../../lang/go/version.mk"
+
+BUILD_DEPENDS+=	${GO_PACKAGE_DEP}
 
 USE_TOOLS+=	cmake perl
 USE_LANGUAGES+=	c gnu++11
@@ -22,6 +24,10 @@ AUTO_MKDIRS=	yes
 
 CFLAGS+=	-D_XOPEN_SOURCE=600 -D_NETBSD_SOURCE
 
+SUBST_CLASSES+=		go
+SUBST_STAGE.go=		post-patch
+SUBST_FILES.go=		CMakeLists.txt
+SUBST_SED.go=		-e '/find_program.GO_EXECUTABLE/s,go,${GO},'
 
 post-extract:
 		${RUN} mkdir -p ${WRKDIR}/build


Home | Main Index | Thread Index | Old Index