pkgsrc-WIP-changes archive

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

kallisto: Patch test data path in test script



Module Name:	pkgsrc-wip
Committed By:	Jason Bacon <bacon%NetBSD.org@localhost>
Pushed By:	outpaddling
Date:		Thu Dec 20 08:21:26 2018 -0600
Changeset:	afeaf2cc2b8df92fd30bcb6152aff4a94e1b85c8

Modified Files:
	kallisto/Makefile
	kallisto/files/kallisto-test

Log Message:
kallisto: Patch test data path in test script

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

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

diffstat:
 kallisto/Makefile            | 10 +++++++++-
 kallisto/files/kallisto-test |  7 ++-----
 2 files changed, 11 insertions(+), 6 deletions(-)

diffs:
diff --git a/kallisto/Makefile b/kallisto/Makefile
index 68e313ac5e..eef1448ab0 100644
--- a/kallisto/Makefile
+++ b/kallisto/Makefile
@@ -14,13 +14,21 @@ USE_LANGUAGES=	c c++
 USE_TOOLS+=	pax
 USE_CMAKE=	yes
 
+SUBST_CLASSES+=		test
+SUBST_STAGE.test=	post-build
+SUBST_FILES.test=	kallisto-test
+SUBST_SED.test=		-e 's|/usr/local/share/kallisto|${DATADIR}|g'
+
 PV=		0.45.0
 DATADIR=	${PREFIX}/share/kallisto
 
 INSTALLATION_DIRS=	bin ${DATADIR}
 
+post-extract:
+	${CP} ${FILESDIR}/kallisto-test ${WRKSRC}
+
 post-install:
-	${INSTALL_SCRIPT} ${FILESDIR}/kallisto-test ${DESTDIR}${PREFIX}/bin
+	${INSTALL_SCRIPT} ${WRKSRC}/kallisto-test ${DESTDIR}${PREFIX}/bin
 	cd ${WRKSRC} && pax -rw test ${DESTDIR}${DATADIR}
 
 .include "../../biology/htslib/buildlink3.mk"
diff --git a/kallisto/files/kallisto-test b/kallisto/files/kallisto-test
index 5097121c30..f0b7695224 100644
--- a/kallisto/files/kallisto-test
+++ b/kallisto/files/kallisto-test
@@ -2,14 +2,11 @@
 
 ##########################################################################
 #   Script description:
-#       
-#   Arguments:
-#       
-#   Returns:
+#       Run standard kallisto test data
 #       
 #   History:
 #   Date        Name        Modification
-#   2016-03-21  Charlie &   Begin
+#   2016-03-21  J Bacon     Begin
 ##########################################################################
 
 usage()


Home | Main Index | Thread Index | Old Index