1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00
freebsd-ports/devel/maven/Makefile
Steve Wills 4d4d4610f9 devel/maven: Update to 3.6.1
PR:		237916
Submitted by:	Jonathan Chen <jonc@chen.org.nz> (maintainer)
2019-05-23 21:49:39 +00:00

49 lines
1.3 KiB
Makefile

# Created by: JonathanChen <jonc@chen.org.nz>
# $FreeBSD$
PORTNAME= maven
DISTVERSION= 3.6.1
CATEGORIES= devel java
MASTER_SITES= APACHE/maven/maven-3/${DISTVERSION}/binaries
DISTNAME= apache-maven-${DISTVERSION}-bin
MAINTAINER= jonc@chen.org.nz
COMMENT= Java project management tool
LICENSE= APACHE20
RUN_DEPENDS= mvn:devel/maven-wrapper
USES= cpe
USE_JAVA= yes
CPE_PRODUCT= maven
CPE_VENDOR= apache
JAVA_VERSION= 1.7+
NO_BUILD= yes
NO_ARCH= yes
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
WRKSRC= ${WRKDIR}/apache-maven-${DISTVERSION}
SUB_FILES= mvn.sh
SUB_LIST= CLASSWORLDS_JAR=plexus-classworlds-2.6.0.jar
PLIST_SUB= PORTVERSION=${PORTVERSION}
INSTANCE_FILE= ${PORTNAME}-${PORTVERSION}
INSTANCES_DIR= etc/maven-wrapper/instances.d/
post-extract:
${RM} -r ${WRKSRC}/lib/jansi-native ${WRKSRC}/bin/*.bat
${ECHO_CMD} "${DATADIR}" > ${WRKSRC}/${INSTANCE_FILE}
do-install:
cd ${WRKSRC} && ${FIND} . -type d -exec ${MKDIR} \
${STAGEDIR}${DATADIR}/{} \;
cd ${WRKSRC} && ${FIND} . -type f -not -path "\./bin/" \
-exec ${INSTALL_DATA} {} ${STAGEDIR}${DATADIR}/{} \;
${INSTALL_DATA} ${WRKSRC}/bin/m2.conf ${STAGEDIR}${DATADIR}/bin
${INSTALL_SCRIPT} ${WRKDIR}/mvn.sh ${STAGEDIR}${DATADIR}/bin/mvn
@${MKDIR} ${STAGEDIR}${PREFIX}/${INSTANCES_DIR}
${INSTALL_DATA} ${WRKSRC}/${INSTANCE_FILE} \
${STAGEDIR}${PREFIX}/${INSTANCES_DIR}
.include <bsd.port.mk>