aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authormatthew <matthew@FreeBSD.org>2017-07-26 00:46:08 +0800
committermatthew <matthew@FreeBSD.org>2017-07-26 00:46:08 +0800
commitdbf64928c612778b80e8e515229ac4c10b47d000 (patch)
treeb0c566906947a65dabcc863ad0745434fd467328 /devel
parente5691ac4d59617d72f2c56537c492eb7c6ec8fa1 (diff)
downloadfreebsd-ports-gnome-dbf64928c612778b80e8e515229ac4c10b47d000.tar.gz
freebsd-ports-gnome-dbf64928c612778b80e8e515229ac4c10b47d000.tar.zst
freebsd-ports-gnome-dbf64928c612778b80e8e515229ac4c10b47d000.zip
New port: devel/maven -- maven-3.5.0
svn cp from devel/maven33 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/ Add CONFLICTS_INSTALL for devel/maven3, devel/maven31, devel/maven33[1] PR: 220959 Submitted by: jonc@chen.org.nz Approved by: [1] portmgr blanket
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/maven/Makefile48
-rw-r--r--devel/maven/distinfo3
-rw-r--r--devel/maven/files/mvn.sh.in46
-rw-r--r--devel/maven/pkg-descr5
-rw-r--r--devel/maven/pkg-plist101
-rw-r--r--devel/maven3/Makefile2
-rw-r--r--devel/maven31/Makefile2
-rw-r--r--devel/maven33/Makefile2
9 files changed, 210 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 565c727abb21..465e46497808 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1631,6 +1631,7 @@
SUBDIR += mate-common
SUBDIR += matreshka
SUBDIR += maven-wrapper
+ SUBDIR += maven
SUBDIR += maven3
SUBDIR += maven31
SUBDIR += maven33
diff --git a/devel/maven/Makefile b/devel/maven/Makefile
new file mode 100644
index 000000000000..e83715ecfe4c
--- /dev/null
+++ b/devel/maven/Makefile
@@ -0,0 +1,48 @@
+# Created by: JonathanChen <jonc@chen.org.nz>
+# $FreeBSD$
+
+PORTNAME= maven
+DISTVERSION= 3.5.0
+CATEGORIES= devel java
+MASTER_SITES= APACHE/maven/maven-3/${DISTVERSION}/binaries
+DISTNAME= apache-maven-${DISTVERSION}-bin
+
+MAINTAINER= jonc@chen.org.nz
+COMMENT= Java project management tool
+
+LICENSE= APACHE20
+
+RUN_DEPENDS= mvn:devel/maven-wrapper
+
+CONFLICTS_INSTALL= maven3-* maven31-* maven33-*
+
+USES= cpe
+CPE_PRODUCT= maven
+CPE_VENDOR= apache
+
+USE_JAVA= yes
+JAVA_VERSION= 1.7+
+NO_BUILD= yes
+DATADIR= ${JAVASHAREDIR}/${PORTNAME}
+WRKSRC= ${WRKDIR}/apache-maven-${DISTVERSION}
+SUB_FILES= mvn.sh
+SUB_LIST= CLASSWORLDS_JAR=plexus-classworlds-2.5.2.jar
+INSTANCE_FILE= ${PORTNAME}-${PORTVERSION}
+INSTANCES_DIR= etc/maven-wrapper/instances.d/
+
+post-extract:
+ ${RM} ${WRKSRC}/bin/*.bat
+ ${ECHO_CMD} "${DATADIR}" > ${WRKSRC}/${INSTANCE_FILE}
+
+do-install:
+ cd ${WRKSRC} && ${FIND} . -type d -exec ${MKDIR} \
+ ${STAGEDIR}${DATADIR}/{} \;
+ cd ${WRKSRC} && ${FIND} . -type f -not -path "\./bin/" \
+ -exec ${INSTALL_DATA} {} ${STAGEDIR}${DATADIR}/{} \;
+ ${INSTALL_DATA} ${WRKSRC}/bin/m2.conf ${STAGEDIR}${DATADIR}/bin
+ ${INSTALL_SCRIPT} ${WRKDIR}/mvn.sh ${STAGEDIR}${DATADIR}/bin/mvn
+ @${MKDIR} ${STAGEDIR}${PREFIX}/${INSTANCES_DIR}
+ ${INSTALL_DATA} ${WRKSRC}/${INSTANCE_FILE} \
+ ${STAGEDIR}${PREFIX}/${INSTANCES_DIR}
+
+.include <bsd.port.mk>
diff --git a/devel/maven/distinfo b/devel/maven/distinfo
new file mode 100644
index 000000000000..06f6966edcc1
--- /dev/null
+++ b/devel/maven/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1500859622
+SHA256 (apache-maven-3.5.0-bin.tar.gz) = beb91419245395bd69a4a6edad5ca3ec1a8b64e41457672dc687c173a495f034
+SIZE (apache-maven-3.5.0-bin.tar.gz) = 8534562
diff --git a/devel/maven/files/mvn.sh.in b/devel/maven/files/mvn.sh.in
new file mode 100644
index 000000000000..b137c948686b
--- /dev/null
+++ b/devel/maven/files/mvn.sh.in
@@ -0,0 +1,46 @@
+#!/bin/sh
+#
+
+if [ -f /etc/mavenrc ] ; then
+ . /etc/mavenrc
+fi
+
+if [ -f "${HOME}/.mavenrc" ] ; then
+ . "${HOME}/.mavenrc"
+fi
+
+M2_HOME=${M2_HOME:-"%%DATADIR%%"}
+
+# traverses directory structure from process work directory to filesystem root
+# first directory with .mvn subdirectory is considered project base directory
+find_maven_basedir()
+{
+ local basedir=$(pwd)
+ local wdir=$(pwd)
+ while [ "$wdir" != '/' ] ; do
+ wdir=$(cd "$wdir/.."; pwd)
+ if [ -d "$wdir"/.mvn ] ; then
+ basedir=$wdir
+ break
+ fi
+ done
+ echo "${basedir}"
+}
+
+# concatenates all lines of a file
+concat_lines()
+{
+ if [ -f "$1" ]; then
+ echo "$(tr -s '\n' ' ' < "$1")"
+ fi
+}
+
+MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-$(find_maven_basedir)}
+MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
+
+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}" \
+ "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
+ org.codehaus.classworlds.Launcher "$@"
diff --git a/devel/maven/pkg-descr b/devel/maven/pkg-descr
new file mode 100644
index 000000000000..7534bd09c0d6
--- /dev/null
+++ b/devel/maven/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/
diff --git a/devel/maven/pkg-plist b/devel/maven/pkg-plist
new file mode 100644
index 000000000000..a9ffeafd7439
--- /dev/null
+++ b/devel/maven/pkg-plist
@@ -0,0 +1,101 @@
+etc/maven-wrapper/instances.d/maven-3.5.0
+%%DATADIR%%/LICENSE
+%%DATADIR%%/NOTICE
+%%DATADIR%%/README.txt
+%%DATADIR%%/bin/m2.conf
+%%DATADIR%%/bin/mvn
+%%DATADIR%%/bin/mvn.cmd
+%%DATADIR%%/bin/mvnDebug
+%%DATADIR%%/bin/mvnDebug.cmd
+%%DATADIR%%/bin/mvnyjp
+%%DATADIR%%/boot/plexus-classworlds-2.5.2.jar
+%%DATADIR%%/conf/logging/simplelogger.properties
+%%DATADIR%%/conf/settings.xml
+%%DATADIR%%/conf/toolchains.xml
+%%DATADIR%%/lib/aopalliance-1.0.jar
+%%DATADIR%%/lib/cdi-api-1.0.jar
+%%DATADIR%%/lib/cdi-api.license
+%%DATADIR%%/lib/commons-cli-1.4.jar
+%%DATADIR%%/lib/commons-cli.license
+%%DATADIR%%/lib/commons-io-2.5.jar
+%%DATADIR%%/lib/commons-io.license
+%%DATADIR%%/lib/commons-lang3-3.5.jar
+%%DATADIR%%/lib/commons-lang3.license
+%%DATADIR%%/lib/ext/README.txt
+%%DATADIR%%/lib/guava-20.0.jar
+%%DATADIR%%/lib/guice-4.0-no_aop.jar
+%%DATADIR%%/lib/jansi-1.13.jar
+%%DATADIR%%/lib/jansi-native/README.txt
+%%DATADIR%%/lib/jansi-native/linux32/libjansi.so
+%%DATADIR%%/lib/jansi-native/linux64/libjansi.so
+%%DATADIR%%/lib/jansi-native/osx/libjansi.jnilib
+%%DATADIR%%/lib/jansi-native/windows32/jansi.dll
+%%DATADIR%%/lib/jansi-native/windows64/jansi.dll
+%%DATADIR%%/lib/javax.inject-1.jar
+%%DATADIR%%/lib/jcl-over-slf4j-1.7.22.jar
+%%DATADIR%%/lib/jcl-over-slf4j.license
+%%DATADIR%%/lib/jsr250-api-1.0.jar
+%%DATADIR%%/lib/jsr250-api.license
+%%DATADIR%%/lib/maven-artifact-3.5.0.jar
+%%DATADIR%%/lib/maven-artifact.license
+%%DATADIR%%/lib/maven-builder-support-3.5.0.jar
+%%DATADIR%%/lib/maven-builder-support.license
+%%DATADIR%%/lib/maven-compat-3.5.0.jar
+%%DATADIR%%/lib/maven-compat.license
+%%DATADIR%%/lib/maven-core-3.5.0.jar
+%%DATADIR%%/lib/maven-core.license
+%%DATADIR%%/lib/maven-embedder-3.5.0.jar
+%%DATADIR%%/lib/maven-embedder.license
+%%DATADIR%%/lib/maven-model-3.5.0.jar
+%%DATADIR%%/lib/maven-model-builder-3.5.0.jar
+%%DATADIR%%/lib/maven-model-builder.license
+%%DATADIR%%/lib/maven-model.license
+%%DATADIR%%/lib/maven-plugin-api-3.5.0.jar
+%%DATADIR%%/lib/maven-plugin-api.license
+%%DATADIR%%/lib/maven-repository-metadata-3.5.0.jar
+%%DATADIR%%/lib/maven-repository-metadata.license
+%%DATADIR%%/lib/maven-resolver-api-1.0.3.jar
+%%DATADIR%%/lib/maven-resolver-api.license
+%%DATADIR%%/lib/maven-resolver-connector-basic-1.0.3.jar
+%%DATADIR%%/lib/maven-resolver-connector-basic.license
+%%DATADIR%%/lib/maven-resolver-impl-1.0.3.jar
+%%DATADIR%%/lib/maven-resolver-impl.license
+%%DATADIR%%/lib/maven-resolver-provider-3.5.0.jar
+%%DATADIR%%/lib/maven-resolver-provider.license
+%%DATADIR%%/lib/maven-resolver-spi-1.0.3.jar
+%%DATADIR%%/lib/maven-resolver-spi.license
+%%DATADIR%%/lib/maven-resolver-transport-wagon-1.0.3.jar
+%%DATADIR%%/lib/maven-resolver-transport-wagon.license
+%%DATADIR%%/lib/maven-resolver-util-1.0.3.jar
+%%DATADIR%%/lib/maven-resolver-util.license
+%%DATADIR%%/lib/maven-settings-3.5.0.jar
+%%DATADIR%%/lib/maven-settings-builder-3.5.0.jar
+%%DATADIR%%/lib/maven-settings-builder.license
+%%DATADIR%%/lib/maven-settings.license
+%%DATADIR%%/lib/maven-shared-utils-3.1.0.jar
+%%DATADIR%%/lib/maven-shared-utils.license
+%%DATADIR%%/lib/maven-slf4j-provider-3.5.0.jar
+%%DATADIR%%/lib/maven-slf4j-provider.license
+%%DATADIR%%/lib/org.eclipse.sisu.inject-0.3.3.jar
+%%DATADIR%%/lib/org.eclipse.sisu.inject.license
+%%DATADIR%%/lib/org.eclipse.sisu.plexus-0.3.3.jar
+%%DATADIR%%/lib/org.eclipse.sisu.plexus.license
+%%DATADIR%%/lib/plexus-cipher-1.7.jar
+%%DATADIR%%/lib/plexus-cipher.license
+%%DATADIR%%/lib/plexus-component-annotations-1.7.1.jar
+%%DATADIR%%/lib/plexus-component-annotations.license
+%%DATADIR%%/lib/plexus-interpolation-1.24.jar
+%%DATADIR%%/lib/plexus-interpolation.license
+%%DATADIR%%/lib/plexus-sec-dispatcher-1.4.jar
+%%DATADIR%%/lib/plexus-sec-dispatcher.license
+%%DATADIR%%/lib/plexus-utils-3.0.24.jar
+%%DATADIR%%/lib/plexus-utils.license
+%%DATADIR%%/lib/slf4j-api-1.7.22.jar
+%%DATADIR%%/lib/slf4j-api.license
+%%DATADIR%%/lib/wagon-file-2.12.jar
+%%DATADIR%%/lib/wagon-file.license
+%%DATADIR%%/lib/wagon-http-2.12-shaded.jar
+%%DATADIR%%/lib/wagon-http.license
+%%DATADIR%%/lib/wagon-provider-api-2.12.jar
+%%DATADIR%%/lib/wagon-provider-api.license
+%%DATADIR%%/maven-3.5.0
diff --git a/devel/maven3/Makefile b/devel/maven3/Makefile
index 78d8043c6630..68b73ccaab54 100644
--- a/devel/maven3/Makefile
+++ b/devel/maven3/Makefile
@@ -14,6 +14,8 @@ LICENSE= APACHE20
RUN_DEPENDS= mvn:devel/maven-wrapper
+CONFLICTS_INSTALL= maven-* maven33-* maven31-*
+
USES= cpe
CPE_PRODUCT= maven
CPE_VENDOR= apache
diff --git a/devel/maven31/Makefile b/devel/maven31/Makefile
index c6765da4982d..8046eac901b1 100644
--- a/devel/maven31/Makefile
+++ b/devel/maven31/Makefile
@@ -15,6 +15,8 @@ LICENSE= APACHE20
RUN_DEPENDS= mvn:devel/maven-wrapper
+CONFLICTS_INSTALL= maven-* maven3-* maven33-*
+
USES= cpe
CPE_PRODUCT= maven
CPE_VENDOR= apache
diff --git a/devel/maven33/Makefile b/devel/maven33/Makefile
index 92e45f1fe849..8185a6825bdb 100644
--- a/devel/maven33/Makefile
+++ b/devel/maven33/Makefile
@@ -13,6 +13,8 @@ LICENSE= APACHE20
RUN_DEPENDS= mvn:devel/maven-wrapper
+CONFLICTS_INSTALL= maven-* maven3-* maven31-*
+
USES= cpe
CPE_PRODUCT= maven
CPE_VENDOR= apache