aboutsummaryrefslogtreecommitdiffstats
path: root/devel/maven
diff options
context:
space:
mode:
Diffstat (limited to 'devel/maven')
-rw-r--r--devel/maven/Makefile37
-rw-r--r--devel/maven/distinfo4
-rw-r--r--devel/maven/pkg-message4
-rw-r--r--devel/maven/pkg-plist239
4 files changed, 143 insertions, 141 deletions
diff --git a/devel/maven/Makefile b/devel/maven/Makefile
index 6a1b433d5163..3e67cca3f80a 100644
--- a/devel/maven/Makefile
+++ b/devel/maven/Makefile
@@ -6,11 +6,10 @@
#
PORTNAME= maven
-PORTVERSION= 1.0.r2
+PORTVERSION= 1.0
CATEGORIES= devel java
-MASTER_SITES= http://nagoya.apache.org/mirror/%SUBDIR%/binaries/
-MASTER_SITE_SUBDIR= ${PORTNAME}
-DISTNAME= ${PORTNAME}-1.0-rc2
+MASTER_SITES= ${MASTER_SITE_APACHE}
+MASTER_SITE_SUBDIR= ${PORTNAME}/binaries
MAINTAINER= rui@ruilopes.com
COMMENT= Java project management and project comprehension tool
@@ -19,24 +18,26 @@ USE_BZIP2= yes
USE_JAVA= yes
JAVA_VERSION= 1.3+
NO_BUILD= YES
-DIR= share/java/maven
-PLIST_SUB= DIR=${DIR}
+DATADIR= ${JAVASHAREDIR}/${PORTNAME}
PKGMESSAGE= ${WRKDIR}/pkg-message
post-configure:
- @${SED} -e 's,%%PREFIX%%,${PREFIX},g' \
- -e 's,%%DIR%%,${DIR},g' pkg-message > ${PKGMESSAGE}
+ @${SED} -e 's,%%DATADIR%%,${DATADIR},g' pkg-message > ${PKGMESSAGE}
+BINFILES= install_repo.sh maven
+DIRECTORIES= lib lib/endorsed plugins
do-install:
- @cd ${WRKSRC} && ${FIND} . \! -name '*.bat' \! -name repository \
- | ${CPIO} -pduv -R ${LIBOWN}:${LIBGRP} ${PREFIX}/${DIR}
- ${CHMOD} -R ${LIBMODE} ${PREFIX}/${DIR}
- ${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/${DIR}/bin
- ${CHMOD} -R ${BINMODE} ${PREFIX}/${DIR}/bin
- ${CHOWN} ${SHAREOWN}:${SHAREGRP} ${PREFIX}/${DIR}/bin/*.conf
- ${CHMOD} ${SHAREMODE} ${PREFIX}/${DIR}/bin/*.conf
- ${FIND} ${PREFIX}/${DIR} -type d | ${XARGS} ${CHMOD} +rx
- ${LN} -fs ${PREFIX}/${DIR}/bin/maven ${PREFIX}/bin
+ ${MKDIR} ${DATADIR}/bin
+.for file in ${BINFILES}
+ ${INSTALL_SCRIPT} ${WRKSRC}/bin/${file} ${DATADIR}/bin
+.endfor
+ ${LN} -fs ${DATADIR}/bin/maven ${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/bin/forehead.conf ${DATADIR}/bin
+ ${INSTALL_DATA} ${WRKSRC}/*.xsd ${DATADIR}
+.for dir in ${DIRECTORIES}
+ ${MKDIR} ${DATADIR}/${dir}
+ ${INSTALL_DATA} ${WRKSRC}/${dir}/*.jar ${DATADIR}/${dir}
+.endfor
post-install:
.if !defined(BATCH)
@@ -45,6 +46,6 @@ post-install:
# This target is only meant to be used by the port maintainer.
x-generate-plist:
- (/usr/ports/Tools/scripts/plist -d -m /etc/mtree/BSD.local.dist ${PREFIX}|sed -E 's,^share/nls/.+$$,,g;s,${DIR},%%DIR%%,g'|tr -s '\n') > temp-pkg-plist
+ (${PORTSDIR}/Tools/scripts/plist -d -m ${MTREE_FILE} ${PREFIX}|${SED} -E 's,.*share/nls/.+$$,,g;s,${DATADIR:S,^${PREFIX}/,,},%%DATADIR%%,g'|${TR} -s '\n') > temp-pkg-plist
.include <bsd.port.mk>
diff --git a/devel/maven/distinfo b/devel/maven/distinfo
index adde448f099e..4e45fcd8275e 100644
--- a/devel/maven/distinfo
+++ b/devel/maven/distinfo
@@ -1,2 +1,2 @@
-MD5 (maven-1.0-rc2.tar.bz2) = 07cf754e8287a0390fee40672f9f974b
-SIZE (maven-1.0-rc2.tar.bz2) = 5599243
+MD5 (maven-1.0.tar.bz2) = 6af8127f175e48a567a3e6774af86aab
+SIZE (maven-1.0.tar.bz2) = 5952721
diff --git a/devel/maven/pkg-message b/devel/maven/pkg-message
index 0e1896cd98a7..e14ae92463c8 100644
--- a/devel/maven/pkg-message
+++ b/devel/maven/pkg-message
@@ -3,10 +3,10 @@ To work with Maven you need to set the following environment variables:
* JAVA_HOME
Set it to the base directory of your java installation.
* MAVEN_HOME
- Set it to ``%%PREFIX%%/%%DIR%%''.
+ Set it to ``%%DATADIR%%''.
Then, you should initialize your repository with:
- %%PREFIX%%/%%DIR%%/bin/install_repo.sh ~/.maven/repository
+ %%DATADIR%%/bin/install_repo.sh ~/.maven/repository
If you are behind a proxy, create a ~/.mavenrc file with something like:
MAVEN_OPTS="$MAVEN_OPTS -Dmaven.proxy.host=YOUR_PROXY_HOSTNAME
diff --git a/devel/maven/pkg-plist b/devel/maven/pkg-plist
index 0662565a94bf..36a3c11d9339 100644
--- a/devel/maven/pkg-plist
+++ b/devel/maven/pkg-plist
@@ -1,120 +1,121 @@
bin/maven
-%%DIR%%/bin/forehead.conf
-%%DIR%%/bin/install_repo.sh
-%%DIR%%/bin/maven
-%%DIR%%/lib/ant-1.5.3-1.jar
-%%DIR%%/lib/ant-optional-1.5.3-1.jar
-%%DIR%%/lib/commons-beanutils-1.6.1.jar
-%%DIR%%/lib/commons-betwixt-1.0-beta-1.20030111.103454.jar
-%%DIR%%/lib/commons-cli-1.0-beta-2.jar
-%%DIR%%/lib/commons-collections-2.1.jar
-%%DIR%%/lib/commons-digester-1.4.1.jar
-%%DIR%%/lib/commons-grant-1.0-beta-4.jar
-%%DIR%%/lib/commons-graph-0.8.1.jar
-%%DIR%%/lib/commons-io-20030203.000550.jar
-%%DIR%%/lib/commons-jelly-20030902.160215.jar
-%%DIR%%/lib/commons-jelly-tags-ant-20030625.032346.jar
-%%DIR%%/lib/commons-jelly-tags-define-20030211.142932.jar
-%%DIR%%/lib/commons-jelly-tags-util-20030211.141939.jar
-%%DIR%%/lib/commons-jexl-1.0-beta-1.jar
-%%DIR%%/lib/commons-lang-2.0.jar
-%%DIR%%/lib/commons-logging-1.0.3.jar
-%%DIR%%/lib/dom4j-1.4-dev-8.jar
-%%DIR%%/lib/endorsed/xerces-2.4.0.jar
-%%DIR%%/lib/endorsed/xml-apis-1.0.b2.jar
-%%DIR%%/lib/forehead-1.0-beta-5.jar
-%%DIR%%/lib/log4j-1.2.8.jar
-%%DIR%%/lib/maven.jar
-%%DIR%%/lib/plexus-0.6.jar
-%%DIR%%/lib/werkz-20040114.081319.jar
-%%DIR%%/lib/which-1.0.jar
-%%DIR%%/maven-navigation-1.0.xsd
-%%DIR%%/maven-project.xsd
-%%DIR%%/plugins/maven-announcement-plugin-1.0.jar
-%%DIR%%/plugins/maven-ant-plugin-1.6.jar
-%%DIR%%/plugins/maven-antlr-plugin-1.1.jar
-%%DIR%%/plugins/maven-appserver-plugin-2.0.jar
-%%DIR%%/plugins/maven-artifact-plugin-1.1.jar
-%%DIR%%/plugins/maven-ashkelon-plugin-1.1.jar
-%%DIR%%/plugins/maven-aspectj-plugin-2.0.jar
-%%DIR%%/plugins/maven-aspectwerkz-plugin-1.1.jar
-%%DIR%%/plugins/maven-caller-plugin-1.0.jar
-%%DIR%%/plugins/maven-castor-plugin-1.1.jar
-%%DIR%%/plugins/maven-changelog-plugin-1.4.jar
-%%DIR%%/plugins/maven-changes-plugin-1.3.jar
-%%DIR%%/plugins/maven-checkstyle-plugin-2.3.jar
-%%DIR%%/plugins/maven-clean-plugin-1.1.jar
-%%DIR%%/plugins/maven-clover-plugin-1.4.jar
-%%DIR%%/plugins/maven-codeswitcher-plugin-1.1.jar
-%%DIR%%/plugins/maven-console-plugin-1.0.jar
-%%DIR%%/plugins/maven-cruisecontrol-plugin-1.1.jar
-%%DIR%%/plugins/maven-dashboard-plugin-1.2.jar
-%%DIR%%/plugins/maven-deploy-plugin-1.2.jar
-%%DIR%%/plugins/maven-developer-activity-plugin-1.4.jar
-%%DIR%%/plugins/maven-dist-plugin-1.4.jar
-%%DIR%%/plugins/maven-docbook-plugin-1.1.jar
-%%DIR%%/plugins/maven-ear-plugin-1.4.jar
-%%DIR%%/plugins/maven-eclipse-plugin-1.6.jar
-%%DIR%%/plugins/maven-ejb-plugin-1.3.jar
-%%DIR%%/plugins/maven-faq-plugin-1.2.jar
-%%DIR%%/plugins/maven-file-activity-plugin-1.4.jar
-%%DIR%%/plugins/maven-genapp-plugin-2.1.jar
-%%DIR%%/plugins/maven-gump-plugin-1.2.jar
-%%DIR%%/plugins/maven-hibernate-plugin-1.0.jar
-%%DIR%%/plugins/maven-html2xdoc-plugin-1.2.jar
-%%DIR%%/plugins/maven-idea-plugin-1.3.jar
-%%DIR%%/plugins/maven-j2ee-plugin-1.4.jar
-%%DIR%%/plugins/maven-jalopy-plugin-1.1.jar
-%%DIR%%/plugins/maven-jar-plugin-1.4.jar
-%%DIR%%/plugins/maven-java-plugin-1.3.jar
-%%DIR%%/plugins/maven-javacc-plugin-1.0.jar
-%%DIR%%/plugins/maven-javadoc-plugin-1.4.jar
-%%DIR%%/plugins/maven-jboss-plugin-1.4.jar
-%%DIR%%/plugins/maven-jbuilder-plugin-1.4.jar
-%%DIR%%/plugins/maven-jcoverage-plugin-1.0.3.jar
-%%DIR%%/plugins/maven-jdee-plugin-1.0.jar
-%%DIR%%/plugins/maven-jdepend-plugin-1.4.jar
-%%DIR%%/plugins/maven-jdeveloper-plugin-1.3.jar
-%%DIR%%/plugins/maven-jdiff-plugin-1.2.jar
-%%DIR%%/plugins/maven-jellydoc-plugin-1.2.jar
-%%DIR%%/plugins/maven-jetty-plugin-1.0.jar
-%%DIR%%/plugins/maven-jira-plugin-1.0.jar
-%%DIR%%/plugins/maven-jnlp-plugin-1.3.jar
-%%DIR%%/plugins/maven-junit-doclet-plugin-1.1.jar
-%%DIR%%/plugins/maven-junit-report-plugin-1.5.jar
-%%DIR%%/plugins/maven-jxr-plugin-1.3.jar
-%%DIR%%/plugins/maven-latex-plugin-1.1.jar
-%%DIR%%/plugins/maven-latka-plugin-1.3.jar
-%%DIR%%/plugins/maven-license-plugin-1.1.jar
-%%DIR%%/plugins/maven-linkcheck-plugin-1.2.jar
-%%DIR%%/plugins/maven-multichanges-plugin-1.0.jar
-%%DIR%%/plugins/maven-multiproject-plugin-1.2.jar
-%%DIR%%/plugins/maven-native-plugin-1.0.jar
-%%DIR%%/plugins/maven-nsis-plugin-1.0.jar
-%%DIR%%/plugins/maven-pdf-plugin-2.0.jar
-%%DIR%%/plugins/maven-perforce-plugin-1.1.jar
-%%DIR%%/plugins/maven-plugin-plugin-1.3.jar
-%%DIR%%/plugins/maven-pmd-plugin-1.3.jar
-%%DIR%%/plugins/maven-pom-plugin-1.3.jar
-%%DIR%%/plugins/maven-release-plugin-1.2.jar
-%%DIR%%/plugins/maven-repository-plugin-1.1.jar
-%%DIR%%/plugins/maven-scm-plugin-1.2.jar
-%%DIR%%/plugins/maven-shell-plugin-1.1.jar
-%%DIR%%/plugins/maven-simian-plugin-1.3.jar
-%%DIR%%/plugins/maven-site-plugin-1.5.jar
-%%DIR%%/plugins/maven-statcvs-plugin-2.1.jar
-%%DIR%%/plugins/maven-struts-plugin-1.2.jar
-%%DIR%%/plugins/maven-tasklist-plugin-2.3.jar
-%%DIR%%/plugins/maven-test-plugin-1.5.jar
-%%DIR%%/plugins/maven-tjdo-plugin-1.0.0.jar
-%%DIR%%/plugins/maven-uberjar-plugin-1.1.jar
-%%DIR%%/plugins/maven-vdoclet-plugin-1.1.jar
-%%DIR%%/plugins/maven-war-plugin-1.5.jar
-%%DIR%%/plugins/maven-webserver-plugin-2.0.jar
-%%DIR%%/plugins/maven-wizard-plugin-1.0.jar
-%%DIR%%/plugins/maven-xdoc-plugin-1.6.jar
-@dirrm %%DIR%%/plugins
-@dirrm %%DIR%%/lib/endorsed
-@dirrm %%DIR%%/lib
-@dirrm %%DIR%%/bin
-@dirrm %%DIR%%
+%%DATADIR%%/bin/forehead.conf
+%%DATADIR%%/bin/install_repo.sh
+%%DATADIR%%/bin/maven
+%%DATADIR%%/lib/ant-1.5.3-1.jar
+%%DATADIR%%/lib/ant-optional-1.5.3-1.jar
+%%DATADIR%%/lib/commons-beanutils-1.6.1.jar
+%%DATADIR%%/lib/commons-betwixt-1.0-beta-1.20030111.103454.jar
+%%DATADIR%%/lib/commons-cli-1.0-beta-2.jar
+%%DATADIR%%/lib/commons-collections-2.1.jar
+%%DATADIR%%/lib/commons-digester-1.4.1.jar
+%%DATADIR%%/lib/commons-grant-1.0-beta-4.jar
+%%DATADIR%%/lib/commons-graph-0.8.1.jar
+%%DATADIR%%/lib/commons-httpclient-2.0.jar
+%%DATADIR%%/lib/commons-io-20030203.000550.jar
+%%DATADIR%%/lib/commons-jelly-20030902.160215.jar
+%%DATADIR%%/lib/commons-jelly-tags-ant-20030625.032346.jar
+%%DATADIR%%/lib/commons-jelly-tags-define-20030211.142932.jar
+%%DATADIR%%/lib/commons-jelly-tags-util-20030211.141939.jar
+%%DATADIR%%/lib/commons-jelly-tags-xml-20040613.030723.jar
+%%DATADIR%%/lib/commons-jexl-1.0-beta-1.jar
+%%DATADIR%%/lib/commons-lang-2.0.jar
+%%DATADIR%%/lib/commons-logging-1.0.3.jar
+%%DATADIR%%/lib/dom4j-1.4-dev-8.jar
+%%DATADIR%%/lib/endorsed/xerces-2.4.0.jar
+%%DATADIR%%/lib/endorsed/xml-apis-1.0.b2.jar
+%%DATADIR%%/lib/forehead-1.0-beta-5.jar
+%%DATADIR%%/lib/log4j-1.2.8.jar
+%%DATADIR%%/lib/maven-jelly-tags-1.0.jar
+%%DATADIR%%/lib/maven.jar
+%%DATADIR%%/lib/plexus-0.6.jar
+%%DATADIR%%/lib/werkz-20040426.222000.jar
+%%DATADIR%%/lib/which-1.0.jar
+%%DATADIR%%/maven-navigation-1.0.xsd
+%%DATADIR%%/maven-project.xsd
+%%DATADIR%%/plugins/maven-abbot-plugin-1.0.jar
+%%DATADIR%%/plugins/maven-announcement-plugin-1.2.jar
+%%DATADIR%%/plugins/maven-ant-plugin-1.7.jar
+%%DATADIR%%/plugins/maven-antlr-plugin-1.2.1.jar
+%%DATADIR%%/plugins/maven-appserver-plugin-2.0.jar
+%%DATADIR%%/plugins/maven-artifact-plugin-1.4.jar
+%%DATADIR%%/plugins/maven-ashkelon-plugin-1.2.jar
+%%DATADIR%%/plugins/maven-aspectj-plugin-3.1.1.jar
+%%DATADIR%%/plugins/maven-aspectwerkz-plugin-1.2.jar
+%%DATADIR%%/plugins/maven-caller-plugin-1.1.jar
+%%DATADIR%%/plugins/maven-castor-plugin-1.2.jar
+%%DATADIR%%/plugins/maven-changelog-plugin-1.7.1.jar
+%%DATADIR%%/plugins/maven-changes-plugin-1.5.jar
+%%DATADIR%%/plugins/maven-checkstyle-plugin-2.4.1.jar
+%%DATADIR%%/plugins/maven-clean-plugin-1.3.jar
+%%DATADIR%%/plugins/maven-clover-plugin-1.5.jar
+%%DATADIR%%/plugins/maven-console-plugin-1.1.jar
+%%DATADIR%%/plugins/maven-cruisecontrol-plugin-1.4.jar
+%%DATADIR%%/plugins/maven-dashboard-plugin-1.3.jar
+%%DATADIR%%/plugins/maven-developer-activity-plugin-1.5.jar
+%%DATADIR%%/plugins/maven-dist-plugin-1.6.jar
+%%DATADIR%%/plugins/maven-docbook-plugin-1.2.jar
+%%DATADIR%%/plugins/maven-ear-plugin-1.5.jar
+%%DATADIR%%/plugins/maven-eclipse-plugin-1.7.jar
+%%DATADIR%%/plugins/maven-ejb-plugin-1.5.jar
+%%DATADIR%%/plugins/maven-faq-plugin-1.4.jar
+%%DATADIR%%/plugins/maven-file-activity-plugin-1.5.jar
+%%DATADIR%%/plugins/maven-genapp-plugin-2.2.jar
+%%DATADIR%%/plugins/maven-gump-plugin-1.4.jar
+%%DATADIR%%/plugins/maven-hibernate-plugin-1.1.jar
+%%DATADIR%%/plugins/maven-html2xdoc-plugin-1.3.jar
+%%DATADIR%%/plugins/maven-idea-plugin-1.5.jar
+%%DATADIR%%/plugins/maven-j2ee-plugin-1.5.jar
+%%DATADIR%%/plugins/maven-jalopy-plugin-1.3.jar
+%%DATADIR%%/plugins/maven-jar-plugin-1.6.jar
+%%DATADIR%%/plugins/maven-java-plugin-1.4.jar
+%%DATADIR%%/plugins/maven-javacc-plugin-1.1.jar
+%%DATADIR%%/plugins/maven-javadoc-plugin-1.6.1.jar
+%%DATADIR%%/plugins/maven-jboss-plugin-1.5.jar
+%%DATADIR%%/plugins/maven-jbuilder-plugin-1.5.jar
+%%DATADIR%%/plugins/maven-jcoverage-plugin-1.0.7.jar
+%%DATADIR%%/plugins/maven-jdee-plugin-1.1.jar
+%%DATADIR%%/plugins/maven-jdepend-plugin-1.5.jar
+%%DATADIR%%/plugins/maven-jdeveloper-plugin-1.4.jar
+%%DATADIR%%/plugins/maven-jdiff-plugin-1.4.jar
+%%DATADIR%%/plugins/maven-jellydoc-plugin-1.3.jar
+%%DATADIR%%/plugins/maven-jetty-plugin-1.1.jar
+%%DATADIR%%/plugins/maven-jira-plugin-1.1.1.jar
+%%DATADIR%%/plugins/maven-jnlp-plugin-1.4.jar
+%%DATADIR%%/plugins/maven-junit-doclet-plugin-1.2.jar
+%%DATADIR%%/plugins/maven-junit-report-plugin-1.5.jar
+%%DATADIR%%/plugins/maven-jxr-plugin-1.4.1.jar
+%%DATADIR%%/plugins/maven-latex-plugin-1.4.1.jar
+%%DATADIR%%/plugins/maven-latka-plugin-1.4.1.jar
+%%DATADIR%%/plugins/maven-license-plugin-1.2.jar
+%%DATADIR%%/plugins/maven-linkcheck-plugin-1.3.2.jar
+%%DATADIR%%/plugins/maven-multichanges-plugin-1.1.jar
+%%DATADIR%%/plugins/maven-multiproject-plugin-1.3.1.jar
+%%DATADIR%%/plugins/maven-native-plugin-1.1.jar
+%%DATADIR%%/plugins/maven-nsis-plugin-1.1.jar
+%%DATADIR%%/plugins/maven-pdf-plugin-2.1.jar
+%%DATADIR%%/plugins/maven-plugin-plugin-1.5.1.jar
+%%DATADIR%%/plugins/maven-pmd-plugin-1.5.jar
+%%DATADIR%%/plugins/maven-pom-plugin-1.4.1.jar
+%%DATADIR%%/plugins/maven-rar-plugin-1.0.jar
+%%DATADIR%%/plugins/maven-release-plugin-1.4.jar
+%%DATADIR%%/plugins/maven-repository-plugin-1.2.jar
+%%DATADIR%%/plugins/maven-scm-plugin-1.4.jar
+%%DATADIR%%/plugins/maven-shell-plugin-1.1.jar
+%%DATADIR%%/plugins/maven-simian-plugin-1.4.jar
+%%DATADIR%%/plugins/maven-site-plugin-1.5.1.jar
+%%DATADIR%%/plugins/maven-struts-plugin-1.3.jar
+%%DATADIR%%/plugins/maven-tasklist-plugin-2.3.jar
+%%DATADIR%%/plugins/maven-test-plugin-1.6.2.jar
+%%DATADIR%%/plugins/maven-tjdo-plugin-1.0.0.jar
+%%DATADIR%%/plugins/maven-uberjar-plugin-1.2.jar
+%%DATADIR%%/plugins/maven-vdoclet-plugin-1.2.jar
+%%DATADIR%%/plugins/maven-war-plugin-1.6.jar
+%%DATADIR%%/plugins/maven-webserver-plugin-2.0.jar
+%%DATADIR%%/plugins/maven-wizard-plugin-1.1.jar
+%%DATADIR%%/plugins/maven-xdoc-plugin-1.8.jar
+@dirrm %%DATADIR%%/plugins
+@dirrm %%DATADIR%%/lib/endorsed
+@dirrm %%DATADIR%%/lib
+@dirrm %%DATADIR%%/bin
+@dirrm %%DATADIR%%