git: 70e9e19c3cb7 - main - biology/biostar-tools: Allow package build on non-amd64 systems

From: Jason W. Bacon <jwb_at_FreeBSD.org>
Date: Wed, 01 Dec 2021 15:53:31 UTC
The branch main has been updated by jwb:

URL: https://cgit.FreeBSD.org/ports/commit/?id=70e9e19c3cb7a11ccfef63c91beaf291ea2fb366

commit 70e9e19c3cb7a11ccfef63c91beaf291ea2fb366
Author:     Jason W. Bacon <jwb@FreeBSD.org>
AuthorDate: 2021-12-01 15:49:28 +0000
Commit:     Jason W. Bacon <jwb@FreeBSD.org>
CommitDate: 2021-12-01 15:49:28 +0000

    biology/biostar-tools: Allow package build on non-amd64 systems
    
    Only sra-tools is still non-portable, but it will take some time to
    add support for other architectures.  In the meantime, allow aarch64
    and powerpc64 users to have a biostar-tools package.
---
 biology/biostar-tools/Makefile | 12 +++++++++---
 biology/biostar-tools/distinfo |  2 +-
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/biology/biostar-tools/Makefile b/biology/biostar-tools/Makefile
index 912c9de70b84..8e23e40fd1b7 100644
--- a/biology/biostar-tools/Makefile
+++ b/biology/biostar-tools/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	biostar-tools
-PORTVERSION=	1.10.0
+PORTVERSION=	1.10.1
 CATEGORIES=	biology python
 
 MAINTAINER=	jwb@FreeBSD.org
@@ -34,7 +34,6 @@ RUN_DEPENDS=	wget>0:ftp/wget \
 		seqtk>0:biology/seqtk \
 		datamash>0:textproc/datamash \
 		bcftools>0:biology/bcftools \
-		sra-tools>0:biology/sra-tools \
 		subread>0:biology/subread \
 		hisat2>0:biology/hisat2 \
 		trimmomatic>0:biology/trimmomatic \
@@ -68,6 +67,13 @@ RUN_DEPENDS=	wget>0:ftp/wget \
 
 USES=		metaport python
 
+.include <bsd.port.pre.mk>
+
+# Allow pkg build on non-amd64 systems until sra-tools supports them
+.if ${ARCH} == amd64
+RUN_DEPENDS+=	sra-tools>0:biology/sra-tools
+.endif
+
 SUB_FILES=	biostar-shell
 PLIST_FILES=	bin/biostar-shell
 
@@ -75,4 +81,4 @@ do-install:
 	@${MKDIR} ${STAGEDIR}${PREFIX}/bin
 	${INSTALL_SCRIPT} ${WRKDIR}/biostar-shell ${STAGEDIR}${PREFIX}/bin
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/biology/biostar-tools/distinfo b/biology/biostar-tools/distinfo
index 6155e6419c60..2d706e980f0b 100644
--- a/biology/biostar-tools/distinfo
+++ b/biology/biostar-tools/distinfo
@@ -1 +1 @@
-TIMESTAMP = 1636577480
+TIMESTAMP = 1638373720