mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
389294d2b1
When switching the build dependency from devel/gradle to devel/gradle6,
the build is accidentally broken. This attempts to revert part of the
change and fix build.
Fixes: 55044a2200
Approved by: lwhsu (mentor, implicit), portmgr (fix build)
74 lines
2.1 KiB
Makefile
74 lines
2.1 KiB
Makefile
# Created by: Fernan Aguero <fernan@iib.unsam.edu.ar>
|
|
|
|
PORTNAME= jalview
|
|
DISTVERSION= 2.11.1.4
|
|
CATEGORIES= biology java
|
|
MASTER_SITES= https://www.jalview.org/source/
|
|
DISTNAME= ${PORTNAME}_${DISTVERSION:S/./_/g}
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= Viewer and editor for multiple sequence alignments
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BROKEN_FreeBSD_11= gradle daemon systematically fails on 11: The message received from the daemon indicates that the daemon has disappeared.
|
|
|
|
BUILD_DEPENDS= gradle:devel/gradle6
|
|
|
|
USE_JAVA= yes
|
|
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}/build/libs/jalview-all-${DISTVERSION}-j${JAVA_VERSION}.jar ${STAGEDIR}${DATADIR}/jalview.jar
|
|
|
|
.include <bsd.port.mk>
|