aboutsummaryrefslogtreecommitdiff
path: root/biology/jalview/Makefile
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2021-04-25 23:00:36 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2021-04-25 23:00:36 +0000
commitaf49fbec4f0f6453b4b3dfe522107ed2918ae8f7 (patch)
tree99ef5c6c4301abb454cc63795836dbc27adbd2cb /biology/jalview/Makefile
parentd8cfb1d029da2fd56d4e6d41229496fd4aa43421 (diff)
downloadports-af49fbec4f0f6453b4b3dfe522107ed2918ae8f7.tar.gz
ports-af49fbec4f0f6453b4b3dfe522107ed2918ae8f7.zip
biology/jalview: Update 2.07 -> 2.11.1.4
Take maintainership.
Diffstat (limited to 'biology/jalview/Makefile')
-rw-r--r--biology/jalview/Makefile64
1 files changed, 55 insertions, 9 deletions
diff --git a/biology/jalview/Makefile b/biology/jalview/Makefile
index 33341bd764c1..f99bd8d81676 100644
--- a/biology/jalview/Makefile
+++ b/biology/jalview/Makefile
@@ -1,27 +1,73 @@
# Created by: Fernan Aguero <fernan@iib.unsam.edu.ar>
PORTNAME= jalview
-PORTVERSION= 2.07
-PORTREVISION= 3
+DISTVERSION= 2.11.1.4
CATEGORIES= biology java
-MASTER_SITES= http://www.jalview.org/source/
-DISTNAME= ${PORTNAME}_${PORTVERSION:S/./_/}
+MASTER_SITES= https://www.jalview.org/source/
+DISTNAME= ${PORTNAME}_${DISTVERSION:S/./_/g}
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
+EXTRACT_ONLY= ${PORTNAME}_${DISTVERSION:S/./_/g}${EXTRACT_SUFX}
-MAINTAINER= ports@FreeBSD.org
+EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
+
+MAINTAINER= yuri@FreeBSD.org
COMMENT= Viewer and editor for multiple sequence alignments
+LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= gradle:devel/gradle
+
USE_JAVA= yes
-JAVA_VERSION= 8
-USE_ANT= yes
-ALL_TARGET= makejars
+JAVA_VERSION= 11
+
WRKSRC= ${WRKDIR}/${PORTNAME}
+USE_LOCALE= en_US.UTF-8
+
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
SUB_FILES= jalview.sh
+SUB_LIST= JAVA=${JAVA}
+
+NO_ARCH= yes
+
+# to rebuild the deps archive:
+# 1. set DEV_UPDATE_MODE=yes
+# 2. make makesum build
+# 3. upload the *-deps archive
+# 4. set DEV_UPDATE_MODE=no
+# 5. make clean makesum
+
+DEV_UPDATE_MODE= no
+
+DEPS_CACHE_DIR= ${WRKDIR}
+
+.if (${DEV_UPDATE_MODE} == "yes")
+post-build:
+ @cd ${DEPS_CACHE_DIR} && ${TAR} czf ${DISTDIR}/${PORTNAME}-${DISTVERSION}-deps${EXTRACT_SUFX} gradle-${PORTNAME}
+ @${ECHO} "(!!!) Please upload the deps archive: ${DISTDIR}/${PORTNAME}-${DISTVERSION}-deps${EXTRACT_SUFX}"
+.else
+MASTER_SITES+= LOCAL/yuri/:deps
+DISTFILES+= ${PORTNAME}-${DISTVERSION}-deps${EXTRACT_SUFX}:deps
+GRADLE_ARGS= --offline
+
+post-extract: # need a separate extract step because the cache is in /tmp, and not under work/ like with maven
+ @cd ${DEPS_CACHE_DIR} && ${TAR} xzf ${DISTDIR}/${PORTNAME}-${DISTVERSION}-deps${EXTRACT_SUFX}
+.endif
+
+BINARY_ALIAS= git=false java=${JAVA}
+
+PLIST_FILES= bin/jalview \
+ ${DATADIR}/jalview.jar
+
+do-build:
+ @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} gradle \
+ --gradle-user-home ${DEPS_CACHE_DIR}/gradle-${PORTNAME} --project-cache-dir ${DEPS_CACHE_DIR}/gradle-${PORTNAME} \
+ ${GRADLE_ARGS} --build-cache shadowJar
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/jalview.sh ${STAGEDIR}${PREFIX}/bin/jalview
@${MKDIR} ${STAGEDIR}${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/dist/* ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/build/libs/jalview-all-${DISTVERSION}-j${JAVA_VERSION}.jar ${STAGEDIR}${DATADIR}/jalview.jar
.include <bsd.port.mk>