4fb1cfb1cd
- svn move Templates/Licenses/AL2 Templates/Licenses/APACHE20 - add APACHE10 and APACHE11 to Mk/bsd.licenses.db.mk - add entry in UPDATING - bulk change all ports AL2 => APACHE20 - math/openfst/pkg-plist: remove share/licenses/openfst-1.3.4 PR: ports/184785 Submitted by: ohauer Reviewed by: tabthorpe Approved by: portmgr (tabthorpe@)
48 lines
1.5 KiB
Makefile
48 lines
1.5 KiB
Makefile
# Created by: Herve Quiroz <hq@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= maven3
|
|
DISTVERSION= 3.0.4
|
|
CATEGORIES= devel java
|
|
MASTER_SITES= ${MASTER_SITE_APACHE}
|
|
MASTER_SITE_SUBDIR= maven/binaries
|
|
DISTNAME= apache-maven-${DISTVERSION}-bin
|
|
|
|
MAINTAINER= hq@FreeBSD.org
|
|
COMMENT= Java project management tool, 3.x branch
|
|
|
|
LICENSE= APACHE20
|
|
|
|
RUN_DEPENDS= mvn:${PORTSDIR}/devel/maven-wrapper
|
|
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.6+
|
|
NO_BUILD= yes
|
|
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
|
|
WRKSRC= ${WRKDIR}/apache-maven-${DISTVERSION}
|
|
SUB_FILES= mvn.sh
|
|
SUB_LIST= CLASSWORLDS_JAR=plexus-classworlds-2.4.jar
|
|
INSTANCE_FILE= 030004-${PORTNAME}-${PORTVERSION}
|
|
INSTANCES_DIR= etc/maven-wrapper/instances.d/
|
|
PLIST_FILES= ${INSTANCES_DIR}/${INSTANCE_FILE}
|
|
|
|
NO_STAGE= yes
|
|
post-extract:
|
|
${RM} -f ${WRKSRC}/bin/*.bat
|
|
${ECHO_CMD} "${DATADIR}" > ${WRKSRC}/${INSTANCE_FILE}
|
|
|
|
do-install:
|
|
cd ${WRKSRC} && ${FIND} . -type d -exec ${MKDIR} ${DATADIR}/{} \;
|
|
cd ${WRKSRC} && ${FIND} . -type f -not -path "\./bin/" -exec ${INSTALL_DATA} {} ${DATADIR}/{} \;
|
|
${INSTALL_DATA} ${WRKSRC}/bin/m2.conf ${DATADIR}/bin/
|
|
${INSTALL_SCRIPT} ${WRKDIR}/mvn.sh ${DATADIR}/bin/mvn
|
|
${MKDIR} ${PREFIX}/${INSTANCES_DIR}
|
|
${INSTALL_DATA} ${WRKSRC}/${INSTANCE_FILE} ${PREFIX}/${INSTANCES_DIR}
|
|
|
|
post-install:
|
|
@${FIND} -s ${WRKSRC} -not -type d 2>/dev/null | \
|
|
${SED} -ne 's,^${WRKSRC},${DATADIR:S,^${PREFIX}/,,},p' >> ${TMPPLIST}
|
|
@${FIND} -s -d ${WRKSRC} -type d 2>/dev/null | \
|
|
${SED} -ne 's,^${WRKSRC},@dirrm ${DATADIR:S,^${PREFIX}/,,},p' >> ${TMPPLIST}
|
|
|
|
.include <bsd.port.mk>
|