mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-13 03:03:15 +00:00
60d1a83c2a
- Replace ${MASTER_SITE_FOO} with FOO. - Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9% of the time.) - Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and no hint of what it should be was present. - Fix some logic. - And generally, make things more simple and easy to understand. While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and SAMBA macros. Also, replace some EXTRACT_SUFX occurences with USES=tar:*. Checked by: make fetch-urlall-list With hat: portmgr Sponsored by: Absolight
45 lines
1.3 KiB
Makefile
45 lines
1.3 KiB
Makefile
# Created by: Herve Quiroz <hq@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= maven31
|
|
DISTVERSION= 3.1.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= devel java
|
|
MASTER_SITES= APACHE/maven/binaries
|
|
DISTNAME= apache-maven-${DISTVERSION}-bin
|
|
|
|
MAINTAINER= yerenkow@gmail.com
|
|
COMMENT= Java project management tool, 3.1.x branch
|
|
|
|
LICENSE= APACHE20
|
|
|
|
RUN_DEPENDS= mvn:${PORTSDIR}/devel/maven-wrapper
|
|
|
|
USES= cpe
|
|
CPE_PRODUCT= maven
|
|
CPE_VENDOR= apache
|
|
|
|
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.5.1.jar
|
|
INSTANCE_FILE= 030101-${PORTNAME}-${PORTVERSION}
|
|
INSTANCES_DIR= etc/maven-wrapper/instances.d/
|
|
|
|
post-extract:
|
|
${RM} -f ${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>
|