mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-22 00:35:15 +00:00
Apache Maven is a software project management and comprehension tool. Based on
the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information. WWW: http://maven.apache.org/
This commit is contained in:
parent
e963054ac0
commit
ffaaac76fe
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=281007
@ -1002,6 +1002,7 @@
|
||||
SUBDIR += makedepend
|
||||
SUBDIR += maven-ant-tasks
|
||||
SUBDIR += maven2
|
||||
SUBDIR += maven3
|
||||
SUBDIR += mcpp
|
||||
SUBDIR += mdds
|
||||
SUBDIR += memcheck
|
||||
|
47
devel/maven3/Makefile
Normal file
47
devel/maven3/Makefile
Normal file
@ -0,0 +1,47 @@
|
||||
# New ports collection makefile for: maven3
|
||||
# Date created: 2011-08-24
|
||||
# Whom: Herve Quiroz <hq@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= maven3
|
||||
DISTVERSION= 3.0.3
|
||||
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
|
||||
|
||||
USE_JAVA= yes
|
||||
JAVA_VERSION= 1.5+
|
||||
NO_BUILD= yes
|
||||
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
|
||||
WRKSRC= ${WRKDIR}/apache-maven-${DISTVERSION}
|
||||
SUB_FILES= mvn.sh
|
||||
SUB_LIST= CLASSWORLDS_JAR=plexus-classworlds-2.4.jar
|
||||
.if !exists(${LOCALBASE}/bin/mvn)
|
||||
PLIST_FILES+= bin/mvn
|
||||
.endif
|
||||
|
||||
post-extract:
|
||||
${RM} -f ${WRKSRC}/bin/*.bat
|
||||
|
||||
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
|
||||
.if !exists(${LOCALBASE}/bin/mvn)
|
||||
${LN} -fs ${DATADIR}/bin/mvn ${PREFIX}/bin/mvn
|
||||
.endif
|
||||
|
||||
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>
|
2
devel/maven3/distinfo
Normal file
2
devel/maven3/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (apache-maven-3.0.3-bin.tar.gz) = b845479bd5d6d821210d3530c65da628a118abedd176492741e1d9bc5e400e2a
|
||||
SIZE (apache-maven-3.0.3-bin.tar.gz) = 3054807
|
18
devel/maven3/files/mvn.sh.in
Normal file
18
devel/maven3/files/mvn.sh.in
Normal file
@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD: /tmp/pcvs/ports/devel/maven3/files/mvn.sh.in,v 1.1 2011-09-01 21:53:01 hq Exp $
|
||||
|
||||
if [ -f /etc/mavenrc ] ; then
|
||||
. /etc/mavenrc
|
||||
fi
|
||||
|
||||
if [ -f "${HOME}/.mavenrc" ] ; then
|
||||
. "${HOME}/.mavenrc"
|
||||
fi
|
||||
|
||||
M2_HOME=${M2_HOME:-"%%DATADIR%%"}
|
||||
|
||||
JAVA_VERSION="%%JAVA_VERSION%%" exec "%%LOCALBASE%%/bin/java" $MAVEN_OPTS \
|
||||
-classpath "${M2_HOME}/boot/%%CLASSWORLDS_JAR%%" \
|
||||
"-Dclassworlds.conf=${M2_HOME}/bin/m2.conf" \
|
||||
"-Dmaven.home=${M2_HOME}" org.codehaus.classworlds.Launcher "$@"
|
5
devel/maven3/pkg-descr
Normal file
5
devel/maven3/pkg-descr
Normal file
@ -0,0 +1,5 @@
|
||||
Apache Maven is a software project management and comprehension tool. Based on
|
||||
the concept of a project object model (POM), Maven can manage a project's
|
||||
build, reporting and documentation from a central piece of information.
|
||||
|
||||
WWW: http://maven.apache.org/
|
Loading…
Reference in New Issue
Block a user