pkgsrc-WIP-changes archive

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

plink2: Fix test script setup



Module Name:	pkgsrc-wip
Committed By:	Jason Bacon <bacon%NetBSD.org@localhost>
Pushed By:	outpaddling
Date:		Mon Feb 11 09:01:39 2019 -0600
Changeset:	1ac25c775994f39f49ef6a28ab76e79822be3e53

Modified Files:
	plink2/Makefile

Log Message:
plink2: Fix test script setup

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

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

diffstat:
 plink2/Makefile | 11 +++++++++++
 1 file changed, 11 insertions(+)

diffs:
diff --git a/plink2/Makefile b/plink2/Makefile
index 8bcafbc61a..e77f79e033 100644
--- a/plink2/Makefile
+++ b/plink2/Makefile
@@ -20,8 +20,17 @@ LICENSE=	gnu-gpl-v2
 USE_LANGUAGES=	c c++ fortran
 USE_TOOLS+=	gmake pax
 
+# RHEL gunzip lacks -k flag
+DEPENDS=	gzip>0:../../archivers/gzip
+
 WRKSRC=		${WRKDIR}/${GITHUB_PROJECT}-${GITHUB_TAG}/2.0
 
+SUBST_CLASSES+=		test
+SUBST_STAGE.test=	pre-configure
+SUBST_FILES.test=	${WRKSRC}/Tests/run_tests.sh
+SUBST_SED.test=		-e 's|../../build_dynamic|${PREFIX}/bin|g'
+SUBST_SED.test+=	-e 's|^python|${PYTHONBIN}|g'
+
 CFLAGS+=	-g -DDYNAMIC_ZLIB -I${PREFIX}/include
 CXXFLAGS+=	-g -DDYNAMIC_ZLIB -I${PREFIX}/include
 
@@ -42,11 +51,13 @@ post-install:
 	${CHMOD} a+x \
 		${DESTDIR}${DATADIR}/Tests/run_tests.sh \
 		${DESTDIR}${DATADIR}/Tests/*/run_tests.sh
+	# ${CHMOD} -R a+rX ${DESTDIR}${DATADIR}/Tests
 	${SED} -e "s|%%DATADIR%%|${DATADIR}|g" ${FILESDIR}/plink2-test.in \
 		> ${WRKDIR}/plink2-test
 	${INSTALL_SCRIPT} ${WRKDIR}/plink2-test ${DESTDIR}${PREFIX}/bin
 
 # .include "../../wip/openblas/buildlink3.mk"
+.include "../../lang/python/application.mk"
 .include "../../math/blas/buildlink3.mk"
 .include "../../math/lapack/buildlink3.mk"
 .include "../../wip/cblas/buildlink3.mk"


Home | Main Index | Thread Index | Old Index