mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-17 03:25:46 +00:00
cf118ccf87
Reported by: lwhsu
53 lines
1.2 KiB
Makefile
53 lines
1.2 KiB
Makefile
PORTNAME= cdk
|
|
DISTVERSIONPREFIX= cdk-
|
|
DISTVERSION= 2.3
|
|
CATEGORIES= science java
|
|
PKGNAMESUFFIX= -chemistry
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= Chemistry Development Kit
|
|
|
|
LICENSE= LGPL21
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
|
|
|
BUILD_DEPENDS= mvn:devel/maven
|
|
|
|
USE_JAVA= yes
|
|
USE_GITHUB= yes
|
|
|
|
NO_ARCH= yes
|
|
|
|
PLIST_FILES= ${JAVAJARDIR}/${PORTNAME}-${PORTVERSION}.jar
|
|
|
|
# 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
|
|
|
|
.if (${DEV_UPDATE_MODE} == "yes")
|
|
post-build:
|
|
@cd ${WRKDIR} && ${TAR} czf ${DISTDIR}/${PORTNAME}-${DISTVERSION}-deps${EXTRACT_SUFX} .m2
|
|
@${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
|
|
MVN_ARGS= --offline
|
|
.endif
|
|
|
|
do-build:
|
|
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
|
|
${LOCALBASE}/bin/mvn ${MVN_ARGS} \
|
|
-fae install \
|
|
-Dmaven.test.skip=true \
|
|
-Duser.home=${WRKDIR} \
|
|
install
|
|
|
|
do-install:
|
|
${INSTALL_DATA} ${WRKSRC}/bundle/target/${PORTNAME}-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}-${PORTVERSION}.jar
|
|
|
|
.include <bsd.port.mk>
|