Import maven-2.0.

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.

help & ok kurt@
This commit is contained in:
bernd 2005-12-08 09:48:02 +00:00
parent bce676b2b5
commit 2937ebc4ef
7 changed files with 139 additions and 0 deletions

56
devel/maven/Makefile Normal file
View File

@ -0,0 +1,56 @@
# $OpenBSD: Makefile,v 1.1.1.1 2005/12/08 09:48:02 bernd Exp $
COMMENT= "software project management and comprehension tool"
DISTNAME= maven-2.0
CATEGORIES= devel
HOMEPAGE= http://maven.apache.org/
# Apache Software License 2.0
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_APACHE:=maven/binaries/} \
http://archive.apache.org/dist/maven/binaries/
EXTRACT_SUFX= -bin.tar.gz
MODULES= java
MODJAVA_VER= 1.4+
BUILD_DEPENDS= ::archivers/gtar
NO_BUILD= Yes
NO_REGRESS= Yes
MAVEN_HOME= ${LOCALBASE}/${DISTNAME}
SAMPLEDIR= ${PREFIX}/share/examples/maven
TAR= ${LOCALBASE}/bin/gtar
SUBST_VARS+= DISTNAME
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/${DISTNAME}
${INSTALL_DATA_DIR} ${SAMPLEDIR}
cd ${WRKDIST} && \
tar -cf - bin core lib `find * -prune -type f` | \
tar -C ${PREFIX}/${DISTNAME} -xf -
find ${WRKINST} -name \*.orig -or -name \*.bat -or -name \*.exe | \
xargs rm
${INSTALL_DATA} ${WRKSRC}/conf/settings.xml ${SAMPLEDIR}/
ln -s ${SYSCONFDIR}/maven ${PREFIX}/${DISTNAME}/conf
@perl -pi -e 's,%%SYSCONFDIR%%,${SYSCONFDIR},' \
${PREFIX}/${DISTNAME}/bin/mvn
@sed -e 's,%%JAVA_HOME%%,${JAVA_HOME},' \
-e 's,%%MAVEN_HOME%%,${MAVEN_HOME},' \
< ${FILESDIR}/maven.rc \
> ${SAMPLEDIR}/maven.rc
@sed -e 's,%%DISTNAME%%,${DISTNAME},' \
-e 's,%%LOCALBASE%%,${LOCALBASE},' \
< ${FILESDIR}/mvn \
> ${WRKSRC}/bin/mvn
${INSTALL_SCRIPT} ${WRKSRC}/bin/mvn ${PREFIX}/bin/
.include <bsd.port.mk>

4
devel/maven/distinfo Normal file
View File

@ -0,0 +1,4 @@
MD5 (maven-2.0-bin.tar.gz) = ec2c06ddb7191ac809ce274a02e4b9b2
RMD160 (maven-2.0-bin.tar.gz) = ef0278341f3191bc87dc9e3a30292e3602d6f9ad
SHA1 (maven-2.0-bin.tar.gz) = 6947477f91472131455e8b34359a8849447db0cd
SIZE (maven-2.0-bin.tar.gz) = 1167211

View File

@ -0,0 +1,10 @@
# $OpenBSD: maven.rc,v 1.1.1.1 2005/12/08 09:48:02 bernd Exp $
#
# Define JAVA_HOME, M2_HOME and MAVEN_OPTS here.
#
JAVA_HOME=%%JAVA_HOME%%
M2_HOME=%%MAVEN_HOME%%
#MAVEN_OPTS=

5
devel/maven/files/mvn Normal file
View File

@ -0,0 +1,5 @@
#!/bin/sh
#
# $OpenBSD: mvn,v 1.1.1.1 2005/12/08 09:48:02 bernd Exp $
exec %%LOCALBASE%%/%%DISTNAME%%/bin/mvn "$@"

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-bin_mvn,v 1.1.1.1 2005/12/08 09:48:02 bernd Exp $
--- bin/mvn.orig Wed Oct 19 21:11:17 2005
+++ bin/mvn Mon Dec 5 15:53:30 2005
@@ -18,8 +18,8 @@
# Copyright (c) 2001-2002 The Apache Software Foundation. All rights
# reserved.
-if [ -f /etc/mavenrc ] ; then
- . /etc/mavenrc
+if [ -f %%SYSCONFDIR%%/maven/maven.rc ] ; then
+ . %%SYSCONFDIR%%/maven/maven.rc
fi
if [ -f "$HOME/.mavenrc" ] ; then

4
devel/maven/pkg/DESCR Normal file
View File

@ -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.

46
devel/maven/pkg/PLIST Normal file
View File

@ -0,0 +1,46 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2005/12/08 09:48:02 bernd Exp $
bin/mvn
${DISTNAME}/
${DISTNAME}/LICENSE.txt
${DISTNAME}/NOTICE.txt
${DISTNAME}/README.txt
${DISTNAME}/bin/
${DISTNAME}/bin/m2
${DISTNAME}/bin/m2.conf
${DISTNAME}/bin/mvn
${DISTNAME}/conf
${DISTNAME}/core/
${DISTNAME}/core/boot/
${DISTNAME}/core/boot/classworlds-1.1-alpha-2.jar
${DISTNAME}/core/plexus-container-default-1.0-alpha-8.jar
${DISTNAME}/core/plexus-utils-1.0.4.jar
${DISTNAME}/lib/
${DISTNAME}/lib/commons-cli-1.0.jar
${DISTNAME}/lib/doxia-sink-api-1.0-alpha-4.jar
${DISTNAME}/lib/jsch-0.1.23.jar
${DISTNAME}/lib/maven-artifact-2.0-1.jar
${DISTNAME}/lib/maven-artifact-manager-2.0-1.jar
${DISTNAME}/lib/maven-core-2.0.jar
${DISTNAME}/lib/maven-error-diagnostics-2.0.jar
${DISTNAME}/lib/maven-model-2.0.jar
${DISTNAME}/lib/maven-monitor-2.0.jar
${DISTNAME}/lib/maven-plugin-api-2.0.jar
${DISTNAME}/lib/maven-plugin-descriptor-2.0.jar
${DISTNAME}/lib/maven-plugin-parameter-documenter-2.0.jar
${DISTNAME}/lib/maven-plugin-registry-2.0.jar
${DISTNAME}/lib/maven-profile-2.0.jar
${DISTNAME}/lib/maven-project-2.0-1.jar
${DISTNAME}/lib/maven-reporting-api-2.0.jar
${DISTNAME}/lib/maven-repository-metadata-2.0.jar
${DISTNAME}/lib/maven-settings-2.0.jar
${DISTNAME}/lib/plexus-interactivity-api-1.0-alpha-4.jar
${DISTNAME}/lib/wagon-file-1.0-alpha-5.jar
${DISTNAME}/lib/wagon-http-lightweight-1.0-alpha-5.jar
${DISTNAME}/lib/wagon-provider-api-1.0-alpha-5.jar
${DISTNAME}/lib/wagon-ssh-1.0-alpha-5.jar
share/examples/maven/
@sample ${SYSCONFDIR}/maven/
share/examples/maven/maven.rc
@sample ${SYSCONFDIR}/maven/maven.rc
share/examples/maven/settings.xml
@sample ${SYSCONFDIR}/maven/settings.xml