pkgsrc-WIP-changes archive

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

biostar-tools: Install biostar-shell, a script to set PATH



Module Name:	pkgsrc-wip
Committed By:	Jason W. Bacon <bacon%NetBSD.org@localhost>
Pushed By:	outpaddling
Date:		Sat Feb 17 09:33:07 2024 -0600
Changeset:	7cb73552910bf9181503e2c7e25ab96a090a16d9

Modified Files:
	biostar-tools/Makefile
Added Files:
	biostar-tools/PLIST

Log Message:
biostar-tools: Install biostar-shell, a script to set PATH

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

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

diffstat:
 biostar-tools/Makefile | 40 +++++++++++++++++++++++++---------------
 biostar-tools/PLIST    |  2 ++
 2 files changed, 27 insertions(+), 15 deletions(-)

diffs:
diff --git a/biostar-tools/Makefile b/biostar-tools/Makefile
index 438d91f6d0..c2f91d6250 100644
--- a/biostar-tools/Makefile
+++ b/biostar-tools/Makefile
@@ -1,16 +1,15 @@
 # $NetBSD$
 #
 
-DISTNAME=	biostar-tools
+PKGNAME=	biostar-tools-1.10.1
 CATEGORIES=	biology meta-pkgs
-MASTER_SITES=	# empty
 
 OWNER=		bacon%NetBSD.org@localhost
 COMMENT=	Meta-package for Biostar Handbook tools
 
 WWW=            https://www.biostarhandbook.com
 
-LICENSE=        BSD2CLAUSE
+LICENSE=        modified-bsd
 
 # For a current list see http://data.biostarhandbook.com/install/conda.txt.
 # Also included are some programs not listed above, but mentioned in the text.
@@ -51,19 +50,13 @@ DEPENDS+=	readseq>0:../../wip/readseq
 DEPENDS+=	minimap2>0:../../biology/minimap2
 # DEPENDS+=	>0:../../
 
-# Allow pkg build on non-amd64 systems until sra-tools supports them
-.if ${MACHINE_ARCH} == amd64 || ${MACHINE_ARCH} == aarch64
-DEPENDS+=   sra-tools>0:../../biology/sra-tools
-.endif
-
-META_PACKAGE=	yes
-
 # Build fails (Darwin)
 # DEPENDS+=	${PYPKGPREFIX}-pysam-[0-9]*:../../wip/py-pysam
 # Fetch fails, needs update
 # DEPENDS+=	freebayes>0:../../wip/freebayes
 
-# FreeBSD port depends:
+# FreeBSD port depends that still need to be added to pkgsrc.
+# Add to pkgsrc-wip, test, add to DEPENDS above, and remove below.
 #                 seqkit>0:biology/seqkit \
 #                 csvtk>0:science/csvtk \
 #                 ncbi-entrez-direct>0:biology/ncbi-entrez-direct \
@@ -87,11 +80,28 @@ META_PACKAGE=	yes
 #                 ${PYTHON_PKGNAMEPREFIX}pywgsim>0:biology/py-pywgsim@${PY_FLAVOR} \
 #                 sam2pairwise>0:biology/sam2pairwise \
 #                 bamutil>0:biology/bamutil \
-#                 ${PYTHON_PKGNAMEPREFIX}deepTools>0:biology/py-deeptools@${PY_FLAVOR} \
+#                 ${PYTHON_PKGNAMEPREFIX}deepTools>0:biology/py-deeptools@${PY_FLAVOR}
+
+# Allow pkg build on non-amd64 systems until sra-tools supports them
+.if ${MACHINE_ARCH} == x86_64 || ${MACHINE_ARCH} == aarch64
+DEPENDS+=   sra-tools>0:../../biology/sra-tools
+.endif
+
+NO_BUILD=		yes
+
+SUBST_CLASSES+=		prefix
+SUBST_STAGE.prefix=	post-patch
+SUBST_SED.prefix+=	-e 's|%%PREFIX%%|${PREFIX}|g'
+SUBST_FILES.prefix=	${WRKDIR}/biostar-shell
+
+INSTALLATION_DIRS=	bin
+
+pre-patch:
+	${MKDIR} ${WRKSRC}
+	${CP} ${FILESDIR}/biostar-shell.in ${WRKDIR}/biostar-shell
 
-# do-install:
-# 	@${MKDIR} ${STAGEDIR}${PREFIX}/bin
-# 	${INSTALL_SCRIPT} ${WRKDIR}/biostar-shell ${STAGEDIR}${PREFIX}/bin
+do-install:
+	${INSTALL_SCRIPT} ${WRKDIR}/biostar-shell ${DESTDIR}${PREFIX}/bin
 
 .include "../../lang/python/application.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/biostar-tools/PLIST b/biostar-tools/PLIST
new file mode 100644
index 0000000000..cadba38f15
--- /dev/null
+++ b/biostar-tools/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD$
+bin/biostar-shell


Home | Main Index | Thread Index | Old Index