mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-30 01:15:52 +00:00
4fd5e511ed
PR: 188533 Submitted by: wombat
48 lines
1.4 KiB
Makefile
48 lines
1.4 KiB
Makefile
# Created by: Herve Quiroz <hq@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= maven2
|
|
DISTVERSION= 2.2.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= devel java
|
|
MASTER_SITES= ${MASTER_SITE_APACHE}
|
|
MASTER_SITE_SUBDIR= maven/binaries
|
|
DISTNAME= apache-maven-${DISTVERSION}-bin
|
|
|
|
MAINTAINER= wombat@marsupial.org
|
|
COMMENT= Java project management tool, 2.0 branch
|
|
|
|
RUN_DEPENDS= mvn:${PORTSDIR}/devel/maven-wrapper
|
|
|
|
DEPRECATED= No longer supported by the Apache Foundation. Use 3.x instead.
|
|
EXPIRATION_DATE=2014-08-18
|
|
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.6+
|
|
NO_BUILD= yes
|
|
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
|
|
SUB_FILES= m2.sh
|
|
SUB_LIST= CLASSWORLDS_JAR=classworlds-1.1.jar
|
|
WRKSRC= ${WRKDIR}/apache-maven-${DISTVERSION}
|
|
INSTANCE_FILE= 020201-${PORTNAME}-${PORTVERSION}
|
|
INSTANCES_DIR= etc/maven-wrapper/instances.d/
|
|
PLIST_FILES= ${INSTANCES_DIR}/${INSTANCE_FILE}
|
|
PORTDATA= *
|
|
|
|
post-extract:
|
|
${RM} -f ${WRKSRC}/bin/m2.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}/m2.sh ${STAGEDIR}${DATADIR}/bin/mvn
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/${INSTANCES_DIR}
|
|
${INSTALL_DATA} ${WRKSRC}/${INSTANCE_FILE} \
|
|
${STAGEDIR}${PREFIX}/${INSTANCES_DIR}
|
|
|
|
.include <bsd.port.mk>
|