summaryrefslogtreecommitdiff
path: root/devel/maven2
diff options
context:
space:
mode:
authorHerve Quiroz <hq@FreeBSD.org>2005-07-18 18:26:24 +0000
committerHerve Quiroz <hq@FreeBSD.org>2005-07-18 18:26:24 +0000
commit8cd0598c7c523bb936d4dd3953c9ca38e8ba9353 (patch)
tree18bffbdd4e1085f49eb0852045794945882e45a6 /devel/maven2
parentupdate to 20050518 (diff)
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. Maven 2.0 is a rewrite of the popular Maven application to achieve a number of goals, and to provide a stable basis to take it into the future. WWW: http://maven.apache.org/maven2/index.html
Notes
Notes: svn path=/head/; revision=139523
Diffstat (limited to 'devel/maven2')
-rw-r--r--devel/maven2/Makefile41
-rw-r--r--devel/maven2/distinfo2
-rw-r--r--devel/maven2/files/m2.sh.in18
-rw-r--r--devel/maven2/pkg-descr8
4 files changed, 69 insertions, 0 deletions
diff --git a/devel/maven2/Makefile b/devel/maven2/Makefile
new file mode 100644
index 000000000000..cccbfea3e5ee
--- /dev/null
+++ b/devel/maven2/Makefile
@@ -0,0 +1,41 @@
+# New ports collection makefile for: maven2
+# Date created: 18 August 2005
+# Whom: Herve Quiroz <hq@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= maven2
+DISTVERSION= 2.0-alpha-3
+CATEGORIES= devel java
+MASTER_SITES= ${MASTER_SITE_APACHE}
+MASTER_SITE_SUBDIR= maven/binaries
+DISTNAME= maven-${DISTVERSION}-bin
+
+MAINTAINER= hq@FreeBSD.org
+COMMENT= Java project management tool, 2.0 branch
+
+USE_JAVA= yes
+JAVA_VERSION= 1.4+
+NO_BUILD= yes
+DATADIR= ${JAVASHAREDIR}/${PORTNAME}
+SUB_FILES= m2.sh
+WRKSRC= ${WRKDIR}/maven-${DISTVERSION}
+
+post-extract:
+ ${RM} -f ${WRKSRC}/bin/m2.bat
+
+do-install:
+ cd ${WRKSRC} && ${FIND} . -type d -exec ${MKDIR} ${DATADIR}/{} \;
+ cd ${WRKSRC} && ${FIND} . -type f -not -name "m2" -exec ${INSTALL_DATA} {} ${DATADIR}/{} \;
+ ${INSTALL_SCRIPT} ${WRKDIR}/m2.sh ${DATADIR}/bin/m2
+ ${LN} -fs ${DATADIR}/bin/m2 ${PREFIX}/bin/m2
+
+post-install:
+ @${ECHO_CMD} 'bin/m2' >> ${TMPPLIST}
+ @${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/maven2/distinfo b/devel/maven2/distinfo
new file mode 100644
index 000000000000..96e216315bc0
--- /dev/null
+++ b/devel/maven2/distinfo
@@ -0,0 +1,2 @@
+MD5 (maven-2.0-alpha-3-bin.tar.gz) = 292a1431b3129d621827c7518d51fbcf
+SIZE (maven-2.0-alpha-3-bin.tar.gz) = 1298233
diff --git a/devel/maven2/files/m2.sh.in b/devel/maven2/files/m2.sh.in
new file mode 100644
index 000000000000..596845aae371
--- /dev/null
+++ b/devel/maven2/files/m2.sh.in
@@ -0,0 +1,18 @@
+#!/bin/sh
+#
+# $FreeBSD$
+
+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%%" "%%LOCALBASE%%/bin/java" $MAVEN_OPTS \
+ -classpath "${M2_HOME}"/core/boot/classworlds-*.jar \
+ "-Dclassworlds.conf=${M2_HOME}/bin/m2.conf" \
+ "-Dmaven.home=${M2_HOME}" org.codehaus.classworlds.Launcher "$@"
diff --git a/devel/maven2/pkg-descr b/devel/maven2/pkg-descr
new file mode 100644
index 000000000000..e57769f9b6d1
--- /dev/null
+++ b/devel/maven2/pkg-descr
@@ -0,0 +1,8 @@
+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.
+
+Maven 2.0 is a rewrite of the popular Maven application to achieve a number of
+goals, and to provide a stable basis to take it into the future.
+
+WWW: http://maven.apache.org/maven2/index.html