diff options
author | hq <hq@FreeBSD.org> | 2011-09-02 05:53:01 +0800 |
---|---|---|
committer | hq <hq@FreeBSD.org> | 2011-09-02 05:53:01 +0800 |
commit | a5e3ab6ae9f6f5f0388b1b8836f98afa7c2419bf (patch) | |
tree | 1592b6fb04245151c7e223060522cce059e98a4f /devel | |
parent | 09c6e2fdc669586fd0ea3612cfa2fb82c0b4d44a (diff) | |
download | freebsd-ports-gnome-a5e3ab6ae9f6f5f0388b1b8836f98afa7c2419bf.tar.gz freebsd-ports-gnome-a5e3ab6ae9f6f5f0388b1b8836f98afa7c2419bf.tar.zst freebsd-ports-gnome-a5e3ab6ae9f6f5f0388b1b8836f98afa7c2419bf.zip |
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/
Diffstat (limited to 'devel')
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/maven3/Makefile | 47 | ||||
-rw-r--r-- | devel/maven3/distinfo | 2 | ||||
-rw-r--r-- | devel/maven3/files/mvn.sh.in | 18 | ||||
-rw-r--r-- | devel/maven3/pkg-descr | 5 |
5 files changed, 73 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 01790a0aeded..bed935e8bbdf 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -1002,6 +1002,7 @@ SUBDIR += makedepend SUBDIR += maven-ant-tasks SUBDIR += maven2 + SUBDIR += maven3 SUBDIR += mcpp SUBDIR += mdds SUBDIR += memcheck diff --git a/devel/maven3/Makefile b/devel/maven3/Makefile new file mode 100644 index 000000000000..5dd879485bed --- /dev/null +++ b/devel/maven3/Makefile @@ -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> diff --git a/devel/maven3/distinfo b/devel/maven3/distinfo new file mode 100644 index 000000000000..f5711a2b0341 --- /dev/null +++ b/devel/maven3/distinfo @@ -0,0 +1,2 @@ +SHA256 (apache-maven-3.0.3-bin.tar.gz) = b845479bd5d6d821210d3530c65da628a118abedd176492741e1d9bc5e400e2a +SIZE (apache-maven-3.0.3-bin.tar.gz) = 3054807 diff --git a/devel/maven3/files/mvn.sh.in b/devel/maven3/files/mvn.sh.in new file mode 100644 index 000000000000..770a780b7d8a --- /dev/null +++ b/devel/maven3/files/mvn.sh.in @@ -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 "$@" diff --git a/devel/maven3/pkg-descr b/devel/maven3/pkg-descr new file mode 100644 index 000000000000..65671ec5f41d --- /dev/null +++ b/devel/maven3/pkg-descr @@ -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/ |