diff options
author | yyamano <yyamano@pkgsrc.org> | 2008-12-16 07:39:41 +0000 |
---|---|---|
committer | yyamano <yyamano@pkgsrc.org> | 2008-12-16 07:39:41 +0000 |
commit | 5ff376cc038ebf5dae8c4f070e00e702d09acde8 (patch) | |
tree | 8404358feb3311916f172266be0d9488ef5878bd /devel/apache-maven | |
parent | 7398b9e394407395c02e356206a7318e13a79a65 (diff) | |
download | pkgsrc-5ff376cc038ebf5dae8c4f070e00e702d09acde8.tar.gz |
Import apache-maven-2.0.9 as devel/apache-maven
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.
Diffstat (limited to 'devel/apache-maven')
-rw-r--r-- | devel/apache-maven/DESCR | 4 | ||||
-rw-r--r-- | devel/apache-maven/Makefile | 40 | ||||
-rw-r--r-- | devel/apache-maven/PLIST | 15 | ||||
-rw-r--r-- | devel/apache-maven/distinfo | 7 | ||||
-rw-r--r-- | devel/apache-maven/patches/patch-aa | 10 | ||||
-rw-r--r-- | devel/apache-maven/patches/patch-ab | 33 |
6 files changed, 109 insertions, 0 deletions
diff --git a/devel/apache-maven/DESCR b/devel/apache-maven/DESCR new file mode 100644 index 00000000000..5eefb30eb7d --- /dev/null +++ b/devel/apache-maven/DESCR @@ -0,0 +1,4 @@ +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. diff --git a/devel/apache-maven/Makefile b/devel/apache-maven/Makefile new file mode 100644 index 00000000000..e46c15d692a --- /dev/null +++ b/devel/apache-maven/Makefile @@ -0,0 +1,40 @@ +# $NetBSD: Makefile,v 1.1.1.1 2008/12/16 07:39:41 yyamano Exp $ +# + +DISTNAME= apache-maven-2.0.9 +CATEGORIES= devel java +MASTER_SITES= ${MASTER_SITE_APACHE:=maven/binaries/} +EXTRACT_SUFX= .tar.bz2 +DISTFILES= ${DISTNAME}-bin${EXTRACT_SUFX} + +MAINTAINER= yyamano@NetBSD.org +HOMEPAGE= http://maven.apache.org/ +COMMENT= Apache Project's software project management and comprehension tool + +PKG_DESTDIR_SUPPORT= user-destdir + +USE_JAVA= run +USE_JAVA2= yes +USE_TOOLS+= pax +NO_BUILD= yes + +SUBST_CLASSES+= maven +SUBST_FILES.maven= bin/mvn +SUBST_STAGE.maven= pre-configure +SUBST_SED.maven= -e 's,@JAVA_HOME@,${PKG_JAVA_HOME},g' +SUBST_SED.maven+= -e 's,@PREFIX@,${PREFIX},g' + +INSTALLATION_DIRS= bin etc/maven lib/java/maven lib/java/maven/boot share/doc/java/maven + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/bin/mvn ${DESTDIR}${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/bin/m2.conf ${DESTDIR}${PREFIX}/etc/maven + ${INSTALL_DATA} ${WRKSRC}/conf/settings.xml ${DESTDIR}${PREFIX}/etc/maven + ${INSTALL_DATA} ${WRKSRC}/boot/*.jar ${DESTDIR}${PREFIX}/lib/java/maven/boot + ${INSTALL_DATA} ${WRKSRC}/lib/*.jar ${DESTDIR}${PREFIX}/lib/java/maven + ${INSTALL_DATA} ${WRKSRC}/README.txt ${DESTDIR}${PREFIX}/share/doc/java/maven + ${INSTALL_DATA} ${WRKSRC}/NOTICE.txt ${DESTDIR}${PREFIX}/share/doc/java/maven + ${INSTALL_DATA} ${WRKSRC}/LICENSE.txt ${DESTDIR}${PREFIX}/share/doc/java/maven + +.include "../../mk/java-vm.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/apache-maven/PLIST b/devel/apache-maven/PLIST new file mode 100644 index 00000000000..51ca55483f2 --- /dev/null +++ b/devel/apache-maven/PLIST @@ -0,0 +1,15 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2008/12/16 07:39:41 yyamano Exp $ +bin/mvn +etc/maven/m2.conf +etc/maven/settings.xml +lib/java/maven/boot/classworlds-1.1.jar +lib/java/maven/maven-${PKGVERSION}-uber.jar +share/doc/java/maven/LICENSE.txt +share/doc/java/maven/NOTICE.txt +share/doc/java/maven/README.txt +@dirrm share/doc/java/maven +@dirrm lib/java/maven/boot +@dirrm lib/java/maven +@dirrm etc/maven +@unexec ${RMDIR} %D/lib/java 2>/dev/null || ${TRUE} +@unexec ${RMDIR} %D/share/doc/java 2>/dev/null || ${TRUE} diff --git a/devel/apache-maven/distinfo b/devel/apache-maven/distinfo new file mode 100644 index 00000000000..4a16292d358 --- /dev/null +++ b/devel/apache-maven/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2008/12/16 07:39:41 yyamano Exp $ + +SHA1 (apache-maven-2.0.9-bin.tar.bz2) = 1890a33aac8f23c2a97f4858a1eb0edc13b898e9 +RMD160 (apache-maven-2.0.9-bin.tar.bz2) = 5687ddb796c17533e42c08ef5ac53a3fa4fa26c2 +Size (apache-maven-2.0.9-bin.tar.bz2) = 2018028 bytes +SHA1 (patch-aa) = 74c4607226b3d783648c4fc369460dcce4a0144f +SHA1 (patch-ab) = d9219f96473c4a929cad15990e1c131e08f8ed13 diff --git a/devel/apache-maven/patches/patch-aa b/devel/apache-maven/patches/patch-aa new file mode 100644 index 00000000000..448a0df1c82 --- /dev/null +++ b/devel/apache-maven/patches/patch-aa @@ -0,0 +1,10 @@ +$NetBSD: patch-aa,v 1.1.1.1 2008/12/16 07:39:41 yyamano Exp $ + +--- bin/m2.conf.orig 2008-04-07 09:04:44.000000000 -0700 ++++ bin/m2.conf +@@ -3,4 +3,4 @@ main is org.apache.maven.cli.MavenCli fr + set maven.home default ${user.home}/m2
+
+ [plexus.core]
+-load ${maven.home}/lib/*.jar
++load ${maven.home}/lib/java/maven/*.jar
diff --git a/devel/apache-maven/patches/patch-ab b/devel/apache-maven/patches/patch-ab new file mode 100644 index 00000000000..84f3c5f1228 --- /dev/null +++ b/devel/apache-maven/patches/patch-ab @@ -0,0 +1,33 @@ +$NetBSD: patch-ab,v 1.1.1.1 2008/12/16 07:39:41 yyamano Exp $ + +--- bin/mvn.orig 2008-04-07 09:04:44.000000000 -0700 ++++ bin/mvn +@@ -74,6 +74,15 @@ if [ -z "$JAVA_HOME" ] ; then + fi + fi + ++if [ "$JAVA_HOME" = "" ] ; then ++ JAVA_HOME=@JAVA_HOME@ ++fi ++ ++if [ "$M2_HOME" = "" ] ; then ++ # try to find maven ++ M2_HOME=@PREFIX@ ++fi ++ + if [ -z "$M2_HOME" ] ; then + ## resolve links - $0 may be a link to maven's home + PRG="$0" +@@ -156,8 +165,10 @@ fi + + exec "$JAVACMD" \ + $MAVEN_OPTS \ +- -classpath "${M2_HOME}"/boot/classworlds-*.jar \ +- "-Dclassworlds.conf=${M2_HOME}/bin/m2.conf" \ ++ -classpath "${M2_HOME}"/lib/java/maven/boot/classworlds-*.jar \ ++ "-Dclassworlds.conf=${M2_HOME}/etc/maven/m2.conf" \ + "-Dmaven.home=${M2_HOME}" \ ++ "-Dorg.apache.maven.global-settings=${M2_HOME}/etc/maven/settings.xml" \ ++ "-Dorg.apache.maven.global-plugin-registry=${M2_HOME}/etc/maven/plugin-registry.xml" \ + ${CLASSWORLDS_LAUNCHER} $QUOTED_ARGS + |