biology/artemis: Update 9 -> 17.0.1-11

Port changes:
* Take maintainership
* Change to github
* Change to DISTVERSION
* Add LICENSE
* Depends on bash
* Add USES=gmake
* Remove NO_BUILD: needs to build jars from java files
* Update the post-extract target
* Change do-install to do minimal installation
* Update WWW
This commit is contained in:
Yuri Victorovich
2018-06-11 17:45:56 +00:00
parent 30d4669e52
commit 1faa8eff29
4 changed files with 72 additions and 1719 deletions

View File

@@ -2,34 +2,44 @@
# $FreeBSD$
PORTNAME= artemis
PORTVERSION= 9
PORTREVISION= 2
DISTVERSIONPREFIX= v
DISTVERSION= 17.0.1-11
DISTVERSIONSUFFIX= -g3e43d27e
CATEGORIES= biology java
MASTER_SITES= http://www.sanger.ac.uk/Software/Artemis/v${PORTVERSION}/
DISTNAME= artemis_compiled_v${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
MAINTAINER= yuri@FreeBSD.org
COMMENT= DNA sequence viewer and annotation tool
WRKSRC= ${WRKDIR}/${PORTNAME}
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= shebangfix
SHEBANG_FILES= etc/go_associations.pl
perl_OLD_CMD= /usr/local/bin/perl5.6.1
RUN_DEPENDS= bash:shells/bash
USES= gmake shebangfix
USE_GITHUB= yes
GH_ACCOUNT= sanger-pathogens
SHEBANG_FILES= act art bamview dnaplotter test/*.sh etc/go_associations.pl
USE_JAVA= yes
JAVA_VERSION= 1.6+
ALL_TARGET= jar
NO_ARCH= yes
NO_BUILD= yes
PLIST_SUB= PORTVERSION="${PORTVERSION}"
post-extract:
@${FIND} ${WRKSRC} -type d -name CVS -exec ${RM} -r {} +
@cd ${WRKDIR} && ${MV} Artemis-${DISTVERSION}${DISTVERSIONSUFFIX} ${PORTNAME}-${DISTVERSION}${DISTVERSIONSUFFIX}
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/${PORTNAME}-${PORTVERSION}
@${TAR} -C ${WRKSRC} -cf- . | ${TAR} -C ${STAGEDIR}${PREFIX}/${PORTNAME}-${PORTVERSION} -xpf-
@${LN} -s ../${PORTNAME}-${PORTVERSION}/art ${STAGEDIR}${PREFIX}/bin/art
@${LN} -s ../${PORTNAME}-${PORTVERSION}/act ${STAGEDIR}${PREFIX}/bin/act
.for f in jar_build lib etc images artemis_sqlmap
@cd ${WRKSRC} && ${COPYTREE_SHARE} ${f} ${STAGEDIR}${PREFIX}/${PORTNAME}-${PORTVERSION}
.endfor
@cd ${STAGEDIR}${PREFIX}/${PORTNAME}-${PORTVERSION} && ${MV} jar_build jars
.for f in art act bamview dnaplotter
${INSTALL_SCRIPT} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/${PORTNAME}-${PORTVERSION}/${f}
@${REINPLACE_CMD} -i '' -e 's|APPLICATION_HOME=.*|&/jars|' ${STAGEDIR}${PREFIX}/${PORTNAME}-${PORTVERSION}/${f}
@(${ECHO} "#!/bin/sh"; ${ECHO} ""; ${ECHO} "cd ${PREFIX}/${PORTNAME}-${PORTVERSION} && ./${f}") > ${STAGEDIR}${PREFIX}/bin/${f}
@${CHMOD} +x ${STAGEDIR}${PREFIX}/bin/${f}
.endfor
.include <bsd.port.mk>

View File

@@ -1,2 +1,3 @@
SHA256 (artemis_compiled_v9.tar.gz) = ec61fdb7915322b5d6c8ac53aa3576cfe1a5042cc3c738e168306fdbaf4bcbe5
SIZE (artemis_compiled_v9.tar.gz) = 6310269
TIMESTAMP = 1528734532
SHA256 (sanger-pathogens-artemis-v17.0.1-11-g3e43d27e_GH0.tar.gz) = a490d4b76bfdd8a531d22f2e0495e8c2c6e8efad18e6a9a0043ac425c7ab16dc
SIZE (sanger-pathogens-artemis-v17.0.1-11-g3e43d27e_GH0.tar.gz) = 77195529

View File

@@ -9,5 +9,4 @@ on Artemis. It can open two or more sequences (and their
annotations/features) together with their comparisons (usually the
result of running blastn or tblastx searches).
WWW: http://www.sanger.ac.uk/Software/Artemis/manual
WWW: http://www.sanger.ac.uk/Software/ACT/manual
WWW: https://www.sanger.ac.uk/science/tools/artemis

File diff suppressed because it is too large Load Diff