diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-java/maven-bin | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-java/maven-bin')
-rw-r--r-- | dev-java/maven-bin/Manifest | 8 | ||||
-rwxr-xr-x | dev-java/maven-bin/files/maven | 168 | ||||
-rw-r--r-- | dev-java/maven-bin/maven-bin-1.1-r1.ebuild | 38 | ||||
-rw-r--r-- | dev-java/maven-bin/maven-bin-1.1-r3.ebuild | 49 | ||||
-rw-r--r-- | dev-java/maven-bin/maven-bin-2.0.11-r2.ebuild | 58 | ||||
-rw-r--r-- | dev-java/maven-bin/maven-bin-2.0.11.ebuild | 49 | ||||
-rw-r--r-- | dev-java/maven-bin/maven-bin-2.2.1-r2.ebuild | 58 | ||||
-rw-r--r-- | dev-java/maven-bin/maven-bin-2.2.1.ebuild | 49 | ||||
-rw-r--r-- | dev-java/maven-bin/maven-bin-3.0.4-r1.ebuild | 59 | ||||
-rw-r--r-- | dev-java/maven-bin/maven-bin-3.1.0-r1.ebuild | 80 | ||||
-rw-r--r-- | dev-java/maven-bin/maven-bin-3.1.0.ebuild | 72 | ||||
-rw-r--r-- | dev-java/maven-bin/maven-bin-3.1.1.ebuild | 87 | ||||
-rw-r--r-- | dev-java/maven-bin/maven-bin-3.2.3.ebuild | 90 | ||||
-rw-r--r-- | dev-java/maven-bin/maven-bin-3.2.5.ebuild | 88 | ||||
-rw-r--r-- | dev-java/maven-bin/metadata.xml | 6 |
15 files changed, 959 insertions, 0 deletions
diff --git a/dev-java/maven-bin/Manifest b/dev-java/maven-bin/Manifest new file mode 100644 index 000000000000..5d11a8e2cb40 --- /dev/null +++ b/dev-java/maven-bin/Manifest @@ -0,0 +1,8 @@ +DIST apache-maven-2.0.11-bin.tar.bz2 2104711 SHA256 f8e91b43def9b78d01f0ad8374644aa737365144dea04a97f9503ac0011ad39c SHA512 829a583e44ea997576cb0949d74f95e6557069489329523c28c44b546f07cd9487a75f4326d7dc0a098a9755fd52630f2ee27a60daf35006eb48d6af250f84de WHIRLPOOL 5e467ee3f35ea7bb4a7d396e61c3f163702d1cc02d7daf4208b475e3d28be5e0d6d6e0a15ebc1a6d2d6d9697047562064c5309eec1491a3837067a71bcf81b42 +DIST apache-maven-2.2.1-bin.tar.bz2 2839688 SHA256 a8d819f78bec0505f5773962fc50117f0c5db4a69c7207d0c27cabffc950939f SHA512 ffbf74b6b51616dcd87252973ddd776f13861fece7cd25df9cfba4bda1d8dd574772cb5d37ac7ed97ef8b93b507939d428d47b9b81742c801c7958b9fd6188e7 WHIRLPOOL 17cdba09856646acf5a37c252c6dcc200bae6eb16ee07ee6620bdee832b452a3a1db8d61289cff3f849f5c0d57c673cfc4749e220dc52b2b5ec50d4d9cd1062a +DIST apache-maven-3.0.4-bin.tar.gz 4873043 SHA256 d35a876034c08cb7e20ea2fbcf168bcad4dff5801abad82d48055517513faa2f SHA512 d6935daff3b80ed6e40ee0acb4f269b4b16e63bc29b792316599a9847f1b33d9309d3c399cdb170710714a1d150957eedc909754de8f8a77d87bd20a0abcb36c WHIRLPOOL f1e15af0bc0f942a8c4e435fa2cde57221e3ef8f86d43197dd4486812b115b684ad8e0ebf5ba3f2f0ad9d0ae0c5f0b0ac26a10e5e170fffe2d47bb77522c4e68 +DIST apache-maven-3.1.0-bin.tar.gz 5439122 SHA256 59088c62c14b996d597bbd55e720866b0e13e36daed8a46a81c01058ee74bd54 SHA512 8c6b13c680de2f9cddb1dffd15ae44a8866a29e56c92ccd905fba1a656d2cab26c40b10c4168ffe11dd3bd4e5161c6d9ea01f450e7c89aba532b2a20f9fd2b07 WHIRLPOOL 9b80b5e5d49a27784bd9760dd326677809fd5bcc8872bc2ee356bde92a6523d6cf1ad0ddcfc3aff96b07fb315af5f3c04b2278f5fd11964c76f179329dca8c8e +DIST apache-maven-3.1.1-bin.tar.gz 5494427 SHA256 077ed466455991d5abb4748a1d022e2d2a54dc4d557c723ecbacdc857c61d51b SHA512 507d340930cc32268128e8969742dbba34a0144f3e7a561b45f71e254ebff2e6f926fd5c7925081fc94995c3f5b4807caf2204ab70297374857bc66c582610a1 WHIRLPOOL 60aa84a2f6441deb005c41e00b4dbc790f8679d5387ffd6602d8008206718655784822816c9a9898cb9b09c75bb3b3d824c71150e4ac747bd0eb1dabe2bacdcd +DIST apache-maven-3.2.3-bin.tar.gz 6956162 SHA256 bf3f04aadee3a67158aebdfb0b4cb022063329d459d10fd6b4b02223e10aa8ed SHA512 9c211b17a8109939a776a4ad0e833ce9b301941eb0cfd4e8978634589ea48227cb979b5819c4b151184cff46bb44139c09477e904daa00ac769b0c756859f6f0 WHIRLPOOL 6a254dc8beb6d1d42299dd563da1eaeccff11bbfd18a122cb015ee28e55f59ae0b4e512a48b697fa09004edd8bae7dbef32bce24dbc9f5913b7cdd311a6ec6b3 +DIST apache-maven-3.2.5-bin.tar.gz 7956528 SHA256 8c190264bdf591ff9f1268dc0ad940a2726f9e958e367716a09b8aaa7e74a755 SHA512 0cdbf4c1e045ac7f96c176058f19ebb838bd46caadc4fb479e11eda67efbb66218fe67c370ddec6d2e4d91091ac9e81ff9eea8d64174cbe1e6d5f7e15962cfc5 WHIRLPOOL 79feb96c42dfd2235b0513ce50cf3d684224dcbccb290d2d80565648a6b30af8961b2e3d02d38818ca5c89386c5a25f2a8025e696279a339844535c2d2733f96 +DIST maven-1.1.tar.gz 7625074 SHA256 6913083d2db1d32ee5e18db7280be0f8ce36224aba3595690e85054f2ad5e731 SHA512 d08e6f4f7568caec718e82d1106ab01a63855061b5ff65134cdb25ba0a4eee875472bceaccffc1425bd0e57918f69f4e48ad2dd0098f2995ba55ad61c64424a0 WHIRLPOOL 2137afc57306d840d04a38a09f5b40d946d10f8216ebff4a3a0a385f475316266339f4b8d07b461a2004d487c6b74a68fc2db5f38cb831ed0947259f1cd08d48 diff --git a/dev-java/maven-bin/files/maven b/dev-java/maven-bin/files/maven new file mode 100755 index 000000000000..97f09f065f45 --- /dev/null +++ b/dev-java/maven-bin/files/maven @@ -0,0 +1,168 @@ +#!/bin/sh +# ---------------------------------------------------------------------------- +# Copyright 2001-2004 The Apache Software Foundation. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------- + +# Copyright (c) 2001-2002 The Apache Software Foundation. All rights +# reserved. + +FOREHEAD_VERSION=1.0-beta-5 + +if [ -z "$MAVEN_OPTS" ] ; then + MAVEN_OPTS="-Xmx256m" +fi + +if [ -f "$HOME/.mavenrc" ] ; then + . "$HOME/.mavenrc" +fi + +# OS specific support. $var _must_ be set to either true or false. +cygwin=false; +darwin=false; +case "`uname`" in + CYGWIN*) cygwin=true ;; + Darwin*) darwin=true + if [ -z "$JAVA_VERSION" ] ; then + JAVA_VERSION="CurrentJDK" + else + echo "Using Java version: $JAVA_VERSION" + fi + if [ -z "$JAVA_HOME" ] ; then + JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/${JAVA_VERSION}/Home + fi + ;; +esac + + # try a couple ways to find MAVEN_HOME + + if [ -z ${MAVEN_HOME} ] && [ -d /opt/maven ] ; then + MAVEN_HOME=/opt/maven + fi + + if [ -z ${MAVEN_HOME} ] && [ -d "$HOME/maven" ] ; then + MAVEN_HOME="$HOME/maven" + fi + + # try to load from env.d file + if [ -z ${MAVEN_HOME} ] && [ -f /etc/env.d/25maven ]; then + MAVEN_HOME=$(source /etc/env.d/25maven; echo ${MAVEN_HOME}) + fi + + # try to figure it out from how this script was invoked + if [ -z ${MAVEN_HOME} ]; then + ## resolve links - $0 may be a link to maven's home + PRG=$0 + progname=`basename $0` + saveddir=`pwd` + + # need this for relative symlinks + cd `dirname $PRG` + + while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '.*/.*' > /dev/null; then + PRG="$link" + else + PRG="`dirname $PRG`/$link" + fi + done + + MAVEN_HOME=`dirname "$PRG"`/.. + + # make it fully qualified + MAVEN_HOME=`cd "$MAVEN_HOME" && pwd` + + cd $saveddir + fi + +[ -z "${MAVEN_HOME}" ] && exit "Was unable to determine MAVEN_HOME" + +# For Cygwin, ensure paths are in UNIX format before anything is touched +if $cygwin ; then + [ -n "$MAVEN_HOME" ] && + MAVEN_HOME=`cygpath --unix "$MAVEN_HOME"` + [ -n "$MAVEN_HOME_LOCAL" ] && + MAVEN_HOME_LOCAL=`cygpath --unix "$MAVEN_HOME_LOCAL"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --unix "$JAVA_HOME"` + [ -n "$CLASSPATH" ] && + CLASSPATH=`cygpath --path --unix "$CLASSPATH"` +fi + +if [ -z "$JAVACMD" ] ; then + if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + else + JAVACMD=java + fi +fi + +if [ ! -x "$JAVACMD" ] ; then + echo "Error: JAVA_HOME is not defined correctly." + echo " We cannot execute $JAVACMD" + exit +fi + +if [ -z "$JAVA_HOME" ] ; then + echo "Warning: JAVA_HOME environment variable is not set." + echo " If build fails because sun.* classes could not be found" + echo " you will need to set the JAVA_HOME environment variable" + echo " to the installation directory of java." +fi + +MAVEN_ENDORSED="${JAVA_HOME}/lib/endorsed:${MAVEN_HOME}/lib/endorsed" + +# For Cygwin, switch paths to Windows format before running java +if $cygwin; then + [ -n "$MAVEN_HOME" ] && + MAVEN_HOME=`cygpath --path --windows "$MAVEN_HOME"` + [ -n "$MAVEN_HOME_LOCAL" ] && + MAVEN_HOME_LOCAL=`cygpath --path --windows "$MAVEN_HOME_LOCAL"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` + [ -n "$HOME" ] && + HOME=`cygpath --path --windows "$HOME"` + [ -n "$MAVEN_ENDORSED" ] && + MAVEN_ENDORSED=`cygpath --path --windows "$MAVEN_ENDORSED"` +fi + +# For Darwin, use classes.jar for TOOLS_JAR +TOOLS_JAR="${JAVA_HOME}/lib/tools.jar" +if $darwin; then + TOOLS_JAR="/System/Library/Frameworks/JavaVM.framework/Versions/${JAVA_VERSION}/Classes/classes.jar" +fi + +MAIN_CLASS=com.werken.forehead.Forehead +if [ -n "$MAVEN_HOME_LOCAL" ]; then + MAVEN_OPTS="$MAVEN_OPTS -Dmaven.home.local=${MAVEN_HOME_LOCAL}" +fi + +"$JAVACMD" \ + $MAVEN_OPTS \ + -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl \ + -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl \ + "-Djava.endorsed.dirs=${MAVEN_ENDORSED}" \ + -classpath "${MAVEN_HOME}/lib/forehead-${FOREHEAD_VERSION}.jar" \ + "-Dforehead.conf.file=${MAVEN_HOME}/bin/forehead.conf" \ + "-Dtools.jar=$TOOLS_JAR" \ + "-Dmaven.home=${MAVEN_HOME}" \ + $MAIN_CLASS "$@" + diff --git a/dev-java/maven-bin/maven-bin-1.1-r1.ebuild b/dev-java/maven-bin/maven-bin-1.1-r1.ebuild new file mode 100644 index 000000000000..264266860868 --- /dev/null +++ b/dev-java/maven-bin/maven-bin-1.1-r1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +MY_PN=${PN/-bin} +MY_PV=${PV/_/-} +MY_P=${MY_PN}-${MY_PV} +MY_MV="${PV%%.*}" + +DESCRIPTION="Project Management and Comprehension Tool for Java" +SRC_URI="mirror://apache/maven/maven-${MY_MV}/${PV}/binaries/${MY_P}.tar.gz" +HOMEPAGE="http://maven.apache.org/" +LICENSE="Apache-2.0" +SLOT="1.1" +KEYWORDS="amd64 ppc x86" +DEPEND=">=virtual/jdk-1.5" +RDEPEND=">=virtual/jdk-1.5" +IUSE="" + +S="${WORKDIR}/${MY_P}" +MAVEN=${PN}-${SLOT} +MAVEN_HOME="/usr/share/${MAVEN}" +MAVEN_BIN="${MAVEN_HOME}/bin" + +src_compile() { :; } + +src_install() { + dodir ${MAVEN_HOME} + insinto ${MAVEN_HOME} + doins -r bin lib *.xsd plugins + + dodir ${MAVEN_BIN} + exeinto ${MAVEN_BIN} + doexe "${FILESDIR}/${MY_PN}" + + dodir /usr/bin + dosym ${MAVEN_BIN}/${MY_PN} /usr/bin/${MY_PN}-${SLOT} || die sym failed +} diff --git a/dev-java/maven-bin/maven-bin-1.1-r3.ebuild b/dev-java/maven-bin/maven-bin-1.1-r3.ebuild new file mode 100644 index 000000000000..0579f16a7c07 --- /dev/null +++ b/dev-java/maven-bin/maven-bin-1.1-r3.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +MY_PN=${PN/-bin} +MY_PV=${PV/_/-} +MY_P=${MY_PN}-${MY_PV} +MY_MV="${PV%%.*}" + +DESCRIPTION="Project Management and Comprehension Tool for Java" +SRC_URI="mirror://apache/maven/maven-${MY_MV}/${PV}/binaries/${MY_P}.tar.gz" +HOMEPAGE="http://maven.apache.org/" + +LICENSE="Apache-2.0" +SLOT="1.1" +KEYWORDS="amd64 ppc x86" +IUSE="" + +DEPEND="|| ( app-eselect/eselect-java app-eselect/eselect-maven )" +RDEPEND=">=virtual/jdk-1.5 + ${DEPEND}" + +S="${WORKDIR}/${MY_P}" +MAVEN=${PN}-${SLOT} +MAVEN_HOME="/usr/share/${MAVEN}" +MAVEN_BIN="${MAVEN_HOME}/bin" + +src_install() { + dodir ${MAVEN_HOME} + insinto ${MAVEN_HOME} + doins -r bin lib *.xsd plugins + + dodir ${MAVEN_BIN} + exeinto ${MAVEN_BIN} + doexe "${FILESDIR}/${MY_PN}" + + dodir /usr/bin + dosym ${MAVEN_BIN}/${MY_PN} /usr/bin/mvn-${SLOT} +} + +pkg_postinst() { + eselect maven update mvn-${SLOT} +} + +pkg_postrm() { + eselect maven update +} diff --git a/dev-java/maven-bin/maven-bin-2.0.11-r2.ebuild b/dev-java/maven-bin/maven-bin-2.0.11-r2.ebuild new file mode 100644 index 000000000000..bde479968588 --- /dev/null +++ b/dev-java/maven-bin/maven-bin-2.0.11-r2.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit java-pkg-2 + +MY_PN=apache-${PN%%-bin} +MY_P="${MY_PN}-${PV}" +MY_MV="${PV%%.*}" + +DESCRIPTION="Project Management and Comprehension Tool for Java" +SRC_URI="mirror://apache/maven/maven-${MY_MV}/${PV}/binaries/${MY_P}-bin.tar.bz2" +HOMEPAGE="http://maven.apache.org/" + +LICENSE="Apache-2.0" +SLOT="2.0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +DEPEND="|| ( app-eselect/eselect-java app-eselect/eselect-maven )" +RDEPEND=">=virtual/jdk-1.4 + ${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +MAVEN=${PN}-${SLOT} +MAVEN_SHARE="/usr/share/${MAVEN}" + +java_prepare() { + rm -v "${S}"/bin/*.bat || die +} + +# TODO we should use jars from packages, instead of what is bundled +src_install() { + dodir "${MAVEN_SHARE}" + cp -Rp bin boot conf lib "${ED}/${MAVEN_SHARE}" || die "failed to copy" + + java-pkg_regjar "${ED}/${MAVEN_SHARE}"/lib/*.jar + + dodoc NOTICE.txt README.txt + + dodir /usr/bin + dosym "${MAVEN_SHARE}/bin/mvn" /usr/bin/mvn-${SLOT} + + # bug #342901 + echo "CONFIG_PROTECT=\"${MAVEN_SHARE}/conf\"" > "${T}/25${MAVEN}" || die + doenvd "${T}/25${MAVEN}" +} + +pkg_postinst() { + eselect maven update mvn-${SLOT} +} + +pkg_postrm() { + eselect maven update +} diff --git a/dev-java/maven-bin/maven-bin-2.0.11.ebuild b/dev-java/maven-bin/maven-bin-2.0.11.ebuild new file mode 100644 index 000000000000..8cdfc4202464 --- /dev/null +++ b/dev-java/maven-bin/maven-bin-2.0.11.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +inherit java-pkg-2 + +MY_PN=apache-${PN%%-bin} +MY_P="${MY_PN}-${PV}" +MY_MV="${PV%%.*}" + +DESCRIPTION="Project Management and Comprehension Tool for Java" +SRC_URI="mirror://apache/maven/maven-${MY_MV}/${PV}/binaries/${MY_P}-bin.tar.bz2" +HOMEPAGE="http://maven.apache.org/" +LICENSE="Apache-2.0" +SLOT="2.0" +KEYWORDS="amd64 ppc x86" + +RDEPEND=">=virtual/jdk-1.4 + app-eselect/eselect-maven" + +IUSE="" + +S="${WORKDIR}/${MY_P}" + +MAVEN=${PN}-${SLOT} +MAVEN_SHARE="/usr/share/${MAVEN}" + +java_prepare() { + rm -v "${S}"/bin/*.bat || die +} + +# TODO we should use jars from packages, instead of what is bundled +src_install() { + dodir "${MAVEN_SHARE}" + cp -Rp bin boot conf lib "${D}/${MAVEN_SHARE}" || die "failed to copy" + + java-pkg_regjar "${D}/${MAVEN_SHARE}"/lib/*.jar + + dodoc NOTICE.txt README.txt || die + + dodir /usr/bin + dosym "${MAVEN_SHARE}/bin/mvn" /usr/bin/mvn-${SLOT} + + # bug #342901 + echo "CONFIG_PROTECT=\"${MAVEN_SHARE}/conf\"" > "${T}/25${MAVEN}" || die + doenvd "${T}/25${MAVEN}" +} diff --git a/dev-java/maven-bin/maven-bin-2.2.1-r2.ebuild b/dev-java/maven-bin/maven-bin-2.2.1-r2.ebuild new file mode 100644 index 000000000000..4414b126b323 --- /dev/null +++ b/dev-java/maven-bin/maven-bin-2.2.1-r2.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit java-pkg-2 + +MY_PN=apache-${PN%%-bin} +MY_P="${MY_PN}-${PV}" +MY_MV="${PV%%.*}" + +DESCRIPTION="Project Management and Comprehension Tool for Java" +SRC_URI="mirror://apache/maven/maven-${MY_MV}/${PV}/binaries/${MY_P}-bin.tar.bz2" +HOMEPAGE="http://maven.apache.org/" + +LICENSE="Apache-2.0" +SLOT="2.2" +KEYWORDS="amd64 ppc x86" +IUSE="" + +DEPEND="|| ( app-eselect/eselect-java app-eselect/eselect-maven )" +RDEPEND=">=virtual/jdk-1.5 + ${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +MAVEN=${PN}-${SLOT} +MAVEN_SHARE="/usr/share/${MAVEN}" + +java_prepare() { + rm -v "${S}"/bin/*.bat || die +} + +# TODO we should use jars from packages, instead of what is bundled +src_install() { + dodir "${MAVEN_SHARE}" + cp -Rp bin boot conf lib "${ED}/${MAVEN_SHARE}" || die "failed to copy" + + java-pkg_regjar "${ED}/${MAVEN_SHARE}"/lib/*.jar + + dodoc NOTICE.txt README.txt + + dodir /usr/bin + dosym "${MAVEN_SHARE}/bin/mvn" /usr/bin/mvn-${SLOT} + + # bug #342901 + echo "CONFIG_PROTECT=\"${MAVEN_SHARE}/conf\"" > "${T}/25${MAVEN}" || die + doenvd "${T}/25${MAVEN}" +} + +pkg_postinst() { + eselect maven update mvn-${SLOT} +} + +pkg_postrm() { + eselect maven update +} diff --git a/dev-java/maven-bin/maven-bin-2.2.1.ebuild b/dev-java/maven-bin/maven-bin-2.2.1.ebuild new file mode 100644 index 000000000000..936a91af7e4d --- /dev/null +++ b/dev-java/maven-bin/maven-bin-2.2.1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit java-pkg-2 + +MY_PN=apache-${PN%%-bin} +MY_P="${MY_PN}-${PV}" +MY_MV="${PV%%.*}" + +DESCRIPTION="Project Management and Comprehension Tool for Java" +SRC_URI="mirror://apache/maven/maven-${MY_MV}/${PV}/binaries/${MY_P}-bin.tar.bz2" +HOMEPAGE="http://maven.apache.org/" +LICENSE="Apache-2.0" +SLOT="2.2" +KEYWORDS="amd64 ppc x86" + +RDEPEND=">=virtual/jdk-1.5 + app-eselect/eselect-maven" + +IUSE="" + +S="${WORKDIR}/${MY_P}" + +MAVEN=${PN}-${SLOT} +MAVEN_SHARE="/usr/share/${MAVEN}" + +src_unpack() { + unpack ${A} + + rm -v "${S}"/bin/*.bat || die +} + +# TODO we should use jars from packages, instead of what is bundled +src_install() { + dodir "${MAVEN_SHARE}" + cp -Rp bin boot conf lib "${D}/${MAVEN_SHARE}" || die "failed to copy" + + java-pkg_regjar "${D}/${MAVEN_SHARE}"/lib/*.jar + + dodoc NOTICE.txt README.txt || die + + dodir /usr/bin + dosym "${MAVEN_SHARE}/bin/mvn" /usr/bin/mvn-${SLOT} + + # bug #342901 + echo "CONFIG_PROTECT=\"${MAVEN_SHARE}/conf\"" > "${T}/25${MAVEN}" || die + doenvd "${T}/25${MAVEN}" +} diff --git a/dev-java/maven-bin/maven-bin-3.0.4-r1.ebuild b/dev-java/maven-bin/maven-bin-3.0.4-r1.ebuild new file mode 100644 index 000000000000..88f6ee5b4d80 --- /dev/null +++ b/dev-java/maven-bin/maven-bin-3.0.4-r1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit java-pkg-2 + +MY_PN=apache-${PN%%-bin} +MY_P="${MY_PN}-${PV}" +MY_MV="${PV%%.*}" + +DESCRIPTION="Project Management and Comprehension Tool for Java" +SRC_URI="mirror://apache/maven/maven-${MY_MV}/${PV}/binaries/${MY_P}-bin.tar.gz" +HOMEPAGE="http://maven.apache.org/" + +LICENSE="Apache-2.0" +SLOT="3.0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +DEPEND="|| ( app-eselect/eselect-java app-eselect/eselect-maven )" +RDEPEND=">=virtual/jdk-1.5 + ${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +MAVEN=${PN}-${SLOT} +MAVEN_SHARE="/usr/share/${MAVEN}" + +java_prepare() { + rm -v "${S}"/bin/*.bat || die + chmod 644 "${S}"/boot/*.jar "${S}"/lib/*.jar "${S}"/conf/settings.xml || die +} + +# TODO we should use jars from packages, instead of what is bundled +src_install() { + dodir "${MAVEN_SHARE}" + cp -Rp bin boot conf lib "${ED}/${MAVEN_SHARE}" || die "failed to copy" + + java-pkg_regjar "${ED}/${MAVEN_SHARE}"/lib/*.jar + + dodoc NOTICE.txt README.txt + + dodir /usr/bin + dosym "${MAVEN_SHARE}/bin/mvn" /usr/bin/mvn-${SLOT} + + # bug #342901 + echo "CONFIG_PROTECT=\"${MAVEN_SHARE}/conf\"" > "${T}/25${MAVEN}" || die + doenvd "${T}/25${MAVEN}" +} + +pkg_postinst() { + eselect maven update mvn-${SLOT} +} + +pkg_postrm() { + eselect maven update +} diff --git a/dev-java/maven-bin/maven-bin-3.1.0-r1.ebuild b/dev-java/maven-bin/maven-bin-3.1.0-r1.ebuild new file mode 100644 index 000000000000..10157f672493 --- /dev/null +++ b/dev-java/maven-bin/maven-bin-3.1.0-r1.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit java-pkg-2 + +MY_PN=apache-${PN%%-bin} +MY_PV=${PV/_alpha/-alpha-} +MY_P="${MY_PN}-${MY_PV}" +MY_MV="${PV%%.*}" + +DESCRIPTION="Project Management and Comprehension Tool for Java" +SRC_URI="mirror://apache/maven/maven-${MY_MV}/${PV}/binaries/${MY_P}-bin.tar.gz" +HOMEPAGE="http://maven.apache.org/" + +LICENSE="Apache-2.0" +SLOT="3.1" +KEYWORDS="~amd64 ~x86" + +# TODO: Needs further resolution: +# +# - https://bugs.gentoo.org/show_bug.cgi?id=472850 +# - https://bugs.gentoo.org/show_bug.cgi?id=477436 +# +DEPEND="|| ( app-eselect/eselect-java app-eselect/eselect-maven ) + || ( dev-java/commons-logging:0 dev-java/log4j:0 dev-java/avalon-logkit:2.0 ) + dev-java/avalon-framework:4.1 + dev-java/commons-io:1 + dev-java/juel:0 + dev-java/osgi-core-api:0 + java-virtuals/servlet-api:2.4" + +RDEPEND=">=virtual/jdk-1.5 + ${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +MAVEN=${PN}-${SLOT} +MAVEN_SHARE="/usr/share/${MAVEN}" + +java_prepare() { + rm -v "${S}"/bin/*.bat || die + + chmod 644 "${S}"/boot/*.jar "${S}"/lib/*.jar "${S}"/conf/settings.xml || die + + # Register jars. + java-pkg_getjars avalon-framework-4.1,commons-io-1,juel,osgi-core-api,servlet-api-2.4 > /dev/null + has_version dev-java/commons-logging:0 && java-pkg_getjars commons-logging > /dev/null + has_version dev-java/avalon-logkit:2.0 && java-pkg_getjars avalon-logkit-2.0 > /dev/null + has_version dev-java/log4j:0 && java-pkg_getjars log4j > /dev/null +} + +# TODO: We should use jars from packages, instead of what is bundled. +src_install() { + dodir "${MAVEN_SHARE}" + + cp -Rp bin boot conf lib "${ED}/${MAVEN_SHARE}" || die "failed to copy" + + java-pkg_regjar "${ED}/${MAVEN_SHARE}"/boot/*.jar + java-pkg_regjar "${ED}/${MAVEN_SHARE}"/lib/*.jar + + dodoc NOTICE.txt README.txt + + dodir /usr/bin + dosym "${MAVEN_SHARE}/bin/mvn" /usr/bin/mvn-${SLOT} + + # See bug #342901. + echo "CONFIG_PROTECT=\"${MAVEN_SHARE}/conf\"" > "${T}/25${MAVEN}" || die + doenvd "${T}/25${MAVEN}" +} + +pkg_postinst() { + eselect maven update mvn-${SLOT} +} + +pkg_postrm() { + eselect maven update +} diff --git a/dev-java/maven-bin/maven-bin-3.1.0.ebuild b/dev-java/maven-bin/maven-bin-3.1.0.ebuild new file mode 100644 index 000000000000..35cef940a0d1 --- /dev/null +++ b/dev-java/maven-bin/maven-bin-3.1.0.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit java-pkg-2 + +MY_PN=apache-${PN%%-bin} +MY_PV=${PV/_alpha/-alpha-} +MY_P="${MY_PN}-${MY_PV}" +MY_MV="${PV%%.*}" + +DESCRIPTION="Project Management and Comprehension Tool for Java" +SRC_URI="mirror://apache/maven/maven-${MY_MV}/${PV}/binaries/${MY_P}-bin.tar.gz" +HOMEPAGE="http://maven.apache.org/" + +LICENSE="Apache-2.0" +SLOT="3.1" +KEYWORDS="~amd64 ~x86" + +DEPEND="|| ( app-eselect/eselect-java app-eselect/eselect-maven ) + dev-java/avalon-framework:4.1 + dev-java/avalon-logkit:2.0 + dev-java/commons-io:1 + dev-java/juel:0 + dev-java/log4j:0 + dev-java/osgi-core-api:0 + java-virtuals/servlet-api:2.4" + +RDEPEND=">=virtual/jdk-1.5 + ${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +MAVEN=${PN}-${SLOT} +MAVEN_SHARE="/usr/share/${MAVEN}" + +java_prepare() { + rm -v "${S}"/bin/*.bat || die + + chmod 644 "${S}"/boot/*.jar "${S}"/lib/*.jar "${S}"/conf/settings.xml || die + + java-pkg_getjars avalon-framework-4.1,avalon-logkit-2.0,commons-io-1,juel,log4j,osgi-core-api,servlet-api-2.4 > /dev/null +} + +# TODO we should use jars from packages, instead of what is bundled +src_install() { + dodir "${MAVEN_SHARE}" + + cp -Rp bin boot conf lib "${ED}/${MAVEN_SHARE}" || die "failed to copy" + + java-pkg_regjar "${ED}/${MAVEN_SHARE}"/boot/*.jar + java-pkg_regjar "${ED}/${MAVEN_SHARE}"/lib/*.jar + + dodoc NOTICE.txt README.txt + + dodir /usr/bin + dosym "${MAVEN_SHARE}/bin/mvn" /usr/bin/mvn-${SLOT} + + # See bug #342901. + echo "CONFIG_PROTECT=\"${MAVEN_SHARE}/conf\"" > "${T}/25${MAVEN}" || die + doenvd "${T}/25${MAVEN}" +} + +pkg_postinst() { + eselect maven update mvn-${SLOT} +} + +pkg_postrm() { + eselect maven update +} diff --git a/dev-java/maven-bin/maven-bin-3.1.1.ebuild b/dev-java/maven-bin/maven-bin-3.1.1.ebuild new file mode 100644 index 000000000000..a2c003fd5f9a --- /dev/null +++ b/dev-java/maven-bin/maven-bin-3.1.1.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit java-pkg-2 + +MY_PN=apache-${PN%%-bin} +MY_PV=${PV/_alpha/-alpha-} +MY_P="${MY_PN}-${MY_PV}" +MY_MV="${PV%%.*}" + +DESCRIPTION="Project Management and Comprehension Tool for Java" +SRC_URI="mirror://apache/maven/maven-${MY_MV}/${PV}/binaries/${MY_P}-bin.tar.gz" +HOMEPAGE="http://maven.apache.org/" + +LICENSE="Apache-2.0" +SLOT="3.1" +KEYWORDS="~amd64 ~x86" + +# TODO: Needs further resolution: +# +# - https://bugs.gentoo.org/show_bug.cgi?id=472850 +# - https://bugs.gentoo.org/show_bug.cgi?id=477436 +# +DEPEND="|| ( app-eselect/eselect-java app-eselect/eselect-maven ) + || ( dev-java/commons-logging:0 dev-java/log4j:0 dev-java/avalon-logkit:2.0 ) + dev-java/aopalliance:1 + dev-java/avalon-framework:4.1 + dev-java/commons-cli:1 + dev-java/commons-io:1 + dev-java/javax-inject:0 + dev-java/jsoup:0 + dev-java/jsr250:0 + dev-java/juel:0 + dev-java/osgi-core-api:0 + java-virtuals/interceptor-api:0 + java-virtuals/servlet-api:2.4" + +RDEPEND=">=virtual/jdk-1.5 + ${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +MAVEN=${PN}-${SLOT} +MAVEN_SHARE="/usr/share/${MAVEN}" + +java_prepare() { + rm -v bin/*.bat lib/{aopalliance,commons-cli,javax.inject,jsr250}-*.jar || die + + chmod 644 boot/*.jar lib/*.jar conf/settings.xml || die + + # Symlink jars. + cd lib || die + java-pkg_jar-from aopalliance-1,avalon-framework-4.1,commons-cli-1,commons-io-1,interceptor-api,javax-inject,jsoup,jsr250,juel,osgi-core-api,servlet-api-2.4 + has_version dev-java/commons-logging:0 && java-pkg_jar-from commons-logging + has_version dev-java/avalon-logkit:2.0 && java-pkg_jar-from avalon-logkit-2.0 + has_version dev-java/log4j:0 && java-pkg_jar-from log4j +} + +# TODO: We should use jars from packages, instead of what is bundled. +src_install() { + dodir "${MAVEN_SHARE}" + + cp -Rp bin boot conf lib "${ED}/${MAVEN_SHARE}" || die "failed to copy" + + java-pkg_regjar "${ED}/${MAVEN_SHARE}"/boot/*.jar + java-pkg_regjar "${ED}/${MAVEN_SHARE}"/lib/*.jar + + dodoc NOTICE README.txt + + dodir /usr/bin + dosym "${MAVEN_SHARE}/bin/mvn" /usr/bin/mvn-${SLOT} + + # See bug #342901. + echo "CONFIG_PROTECT=\"${MAVEN_SHARE}/conf\"" > "${T}/25${MAVEN}" || die + doenvd "${T}/25${MAVEN}" +} + +pkg_postinst() { + eselect maven update mvn-${SLOT} +} + +pkg_postrm() { + eselect maven update +} diff --git a/dev-java/maven-bin/maven-bin-3.2.3.ebuild b/dev-java/maven-bin/maven-bin-3.2.3.ebuild new file mode 100644 index 000000000000..40c967e8112c --- /dev/null +++ b/dev-java/maven-bin/maven-bin-3.2.3.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit java-pkg-2 + +MY_PN=apache-${PN%%-bin} +MY_PV=${PV/_alpha/-alpha-} +MY_P="${MY_PN}-${MY_PV}" +MY_MV="${PV%%.*}" + +DESCRIPTION="Project Management and Comprehension Tool for Java" +SRC_URI="mirror://apache/maven/maven-${MY_MV}/${PV}/binaries/${MY_P}-bin.tar.gz" +HOMEPAGE="http://maven.apache.org/" + +LICENSE="Apache-2.0" +SLOT="3.2" +KEYWORDS="~amd64 ~x86" + +# TODO: Needs further resolution: +# +# - https://bugs.gentoo.org/show_bug.cgi?id=472850 +# - https://bugs.gentoo.org/show_bug.cgi?id=477436 +# +DEPEND="|| ( app-eselect/eselect-java app-eselect/eselect-maven ) + || ( dev-java/commons-logging:0 dev-java/log4j:0 dev-java/avalon-logkit:2.0 ) + dev-java/aopalliance:1 + dev-java/avalon-framework:4.1 + dev-java/commons-cli:1 + dev-java/commons-io:1 + dev-java/guava:14 + dev-java/javax-inject:0 + dev-java/jsoup:0 + dev-java/jsr250:0 + dev-java/juel:0 + dev-java/osgi-core-api:0 + java-virtuals/interceptor-api:0 + java-virtuals/servlet-api:2.4" + +RDEPEND=">=virtual/jdk-1.6 + ${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +MAVEN=${PN}-${SLOT} +MAVEN_SHARE="/usr/share/${MAVEN}" + +java_prepare() { + rm -fv \ + bin/*.bat \ + lib/{aopalliance,commons-cli,commons-io,guava,jsoup,javax.inject,jsr250}-*.jar || die + + chmod 644 boot/*.jar lib/*.jar conf/settings.xml || die + + # Symlink jars. + cd lib || die + java-pkg_jar-from aopalliance-1,avalon-framework-4.1,commons-cli-1,commons-io-1,guava-14,interceptor-api,javax-inject,jsoup,jsr250,juel,osgi-core-api,servlet-api-2.4 + has_version dev-java/commons-logging:0 && java-pkg_jar-from commons-logging + has_version dev-java/avalon-logkit:2.0 && java-pkg_jar-from avalon-logkit-2.0 + has_version dev-java/log4j:0 && java-pkg_jar-from log4j +} + +# TODO: We should use jars from packages, instead of what is bundled. +src_install() { + dodir "${MAVEN_SHARE}" + + cp -Rp bin boot conf lib "${ED}/${MAVEN_SHARE}" || die "failed to copy" + + java-pkg_regjar "${ED}/${MAVEN_SHARE}"/boot/*.jar + java-pkg_regjar "${ED}/${MAVEN_SHARE}"/lib/*.jar + + dodoc NOTICE README.txt + + dodir /usr/bin + dosym "${MAVEN_SHARE}/bin/mvn" /usr/bin/mvn-${SLOT} + + # See bug #342901. + echo "CONFIG_PROTECT=\"${MAVEN_SHARE}/conf\"" > "${T}/25${MAVEN}" || die + doenvd "${T}/25${MAVEN}" +} + +pkg_postinst() { + eselect maven update mvn-${SLOT} +} + +pkg_postrm() { + eselect maven update +} diff --git a/dev-java/maven-bin/maven-bin-3.2.5.ebuild b/dev-java/maven-bin/maven-bin-3.2.5.ebuild new file mode 100644 index 000000000000..601fe9bf10e4 --- /dev/null +++ b/dev-java/maven-bin/maven-bin-3.2.5.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit java-pkg-2 + +MY_PN=apache-${PN%%-bin} +MY_PV=${PV/_alpha/-alpha-} +MY_P="${MY_PN}-${MY_PV}" +MY_MV="${PV%%.*}" + +DESCRIPTION="Project Management and Comprehension Tool for Java" +SRC_URI="mirror://apache/maven/maven-${MY_MV}/${PV}/binaries/${MY_P}-bin.tar.gz" +HOMEPAGE="http://maven.apache.org/" + +LICENSE="Apache-2.0" +SLOT="3.2" +KEYWORDS="~amd64 ~x86" + +# TODO: Needs further resolution: +# +# - https://bugs.gentoo.org/show_bug.cgi?id=472850 +# - https://bugs.gentoo.org/show_bug.cgi?id=477436 +# +DEPEND="|| ( app-eselect/eselect-java app-eselect/eselect-maven ) +|| ( dev-java/commons-logging:0 dev-java/log4j:0 dev-java/avalon-logkit:2.0 ) +dev-java/aopalliance:1 +dev-java/avalon-framework:4.1 +dev-java/commons-cli:1 +dev-java/commons-io:1 +dev-java/javax-inject:0 +dev-java/jsoup:0 +dev-java/jsr250:0 +dev-java/juel:0 +dev-java/osgi-core-api:0 +java-virtuals/interceptor-api:0 +java-virtuals/servlet-api:2.4" + +RDEPEND=">=virtual/jdk-1.6 +>=virtual/jre-1.6 +${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +MAVEN=${PN}-${SLOT} +MAVEN_SHARE="/usr/share/${MAVEN}" + +java_prepare() { + rm -v bin/*.bat lib/{aopalliance,commons-cli,javax.inject,jsr250}-*.jar || die + + chmod 644 boot/*.jar lib/*.jar conf/settings.xml || die + + # Symlink jars. + cd lib || die + java-pkg_jar-from aopalliance-1,avalon-framework-4.1,commons-cli-1,commons-io-1,interceptor-api,javax-inject,jsoup,jsr250,juel,osgi-core-api,servlet-api-2.4 + has_version dev-java/commons-logging:0 && java-pkg_jar-from commons-logging + has_version dev-java/avalon-logkit:2.0 && java-pkg_jar-from avalon-logkit-2.0 + has_version dev-java/log4j:0 && java-pkg_jar-from log4j +} + +# TODO: We should use jars from packages, instead of what is bundled. +src_install() { + dodir "${MAVEN_SHARE}" + + cp -Rp bin boot conf lib "${ED}/${MAVEN_SHARE}" || die "failed to copy" + + java-pkg_regjar "${ED}/${MAVEN_SHARE}"/boot/*.jar + java-pkg_regjar "${ED}/${MAVEN_SHARE}"/lib/*.jar + + dodoc NOTICE README.txt + + dodir /usr/bin + dosym "${MAVEN_SHARE}/bin/mvn" /usr/bin/mvn-${SLOT} + + # See bug #342901. + echo "CONFIG_PROTECT=\"${MAVEN_SHARE}/conf\"" > "${T}/25${MAVEN}" || die + doenvd "${T}/25${MAVEN}" +} + +pkg_postinst() { + eselect maven update mvn-${SLOT} +} + +pkg_postrm() { + eselect maven update +} diff --git a/dev-java/maven-bin/metadata.xml b/dev-java/maven-bin/metadata.xml new file mode 100644 index 000000000000..a553df7d5aba --- /dev/null +++ b/dev-java/maven-bin/metadata.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>java</herd> + <longdescription>Maven is a Java project management and project comprehension tool. Maven is based on the concept of a project object model (POM) in that all the artifacts produced by Maven are a result of consulting a well defined model for your project. Builds, documentation, source metrics, and source cross-references are all controlled by your POM.</longdescription> +</pkgmetadata> |