0835676e36
The following features have been added or changed: - Instead of USE_JAVA use USES=java. This defaults to USES=java:build,run if NO_BUILD is undefined. Else it defaults to USES=java:run - Instead of USE_ANT=yes use USES=java:ant which also implies USES=java:build - Instead of JAVA_BUILD=yes use USES=java:build. Does not imply run or extract - Instead of JAVA_EXTRACT=yes use USES=java:extract does not imply build or run - Instead of JAVA_RUN=yes use USES=java:run does not imply extract or build - Instead of USE_JAVA=<version> use USES=java and JAVA_VERSION=<version> Approved by: mat (portmgr), glewis Differential Revision: https://reviews.freebsd.org/D48201
48 lines
1.2 KiB
Makefile
48 lines
1.2 KiB
Makefile
PORTNAME= bbmap
|
|
DISTVERSION= 38.92
|
|
CATEGORIES= biology java
|
|
MASTER_SITES= SF/bbmap/
|
|
DISTNAME= BBMap_${PORTVERSION}
|
|
|
|
MAINTAINER= jwb@FreeBSD.org
|
|
COMMENT= BBMap short read aligner, and other bioinformatic tools
|
|
WWW= https://jgi.doe.gov/data-and-tools/bbtools/
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/license.txt
|
|
|
|
RUN_DEPENDS= bash:shells/bash \
|
|
pigz:archivers/pigz \
|
|
pbzip2:archivers/pbzip2
|
|
|
|
USES= java shebangfix
|
|
|
|
SHEBANG_FILES= ${WRKSRC}/*.sh
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
NO_BUILD= yes
|
|
NO_ARCH= yes
|
|
|
|
LIBEXEC_DIR= ${PREFIX}/libexec/bbmap
|
|
|
|
pre-configure:
|
|
${REINPLACE_CMD} -e 's|"$$DIR""current/"|${JAVAJARDIR}/bbmap|g' \
|
|
${WRKSRC}/*.sh
|
|
${REINPLACE_CMD} \
|
|
-e 's|"$$DIR""/calcmem.sh"|${LIBEXEC_DIR}/bbmap/calcmem.sh|g' \
|
|
${WRKSRC}/*.sh
|
|
|
|
# FIXME: Find out which scripts are meant to be part of the CLI
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${LIBEXEC_DIR}
|
|
@${MKDIR} ${STAGEDIR}${JAVAJARDIR}/bbmap
|
|
${INSTALL_SCRIPT} ${WRKSRC}/*.sh ${STAGEDIR}${LIBEXEC_DIR}
|
|
cd ${WRKSRC}/current && ${COPYTREE_SHARE} . \
|
|
${STAGEDIR}${JAVAJARDIR}/bbmap
|
|
.for f in bbduk.sh bbnorm.sh dedupe.sh bbmap.sh bloomfilter.sh reformat.sh \
|
|
bbmerge.sh tadpole.sh
|
|
${RLN} ${STAGEDIR}${LIBEXEC_DIR}/${f} ${STAGEDIR}${PREFIX}/bin
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|