summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Sennhauser <sera@gentoo.org>2012-06-12 12:14:04 +0000
committerRalph Sennhauser <sera@gentoo.org>2012-06-12 12:14:04 +0000
commit53ea2e443b24041c8cf43ec086557909745895be (patch)
tree8948e1f9a5f82b9901ddf40db355abf1c3998b53 /dev-java/maven-bin/maven-bin-1.1-r3.ebuild
parentFix bug #364923 with rev bump, thanks to Pinkbyte. Drop old. (diff)
downloadgentoo-2-53ea2e443b24041c8cf43ec086557909745895be.tar.gz
gentoo-2-53ea2e443b24041c8cf43ec086557909745895be.tar.bz2
gentoo-2-53ea2e443b24041c8cf43ec086557909745895be.zip
Add app-admin/eselect-java as preferred provider of eselect maven.
(Portage version: 2.1.10.62/cvs/Linux x86_64)
Diffstat (limited to 'dev-java/maven-bin/maven-bin-1.1-r3.ebuild')
-rw-r--r--dev-java/maven-bin/maven-bin-1.1-r3.ebuild48
1 files changed, 48 insertions, 0 deletions
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..d13130519202
--- /dev/null
+++ b/dev-java/maven-bin/maven-bin-1.1-r3.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/maven-bin/maven-bin-1.1-r3.ebuild,v 1.1 2012/06/12 12:14:04 sera Exp $
+
+EAPI="4"
+
+MY_PN=${PN/-bin}
+MY_PV=${PV/_/-}
+MY_P=${MY_PN}-${MY_PV}
+
+DESCRIPTION="Project Management and Comprehension Tool for Java"
+SRC_URI="mirror://apache/maven/binaries/${MY_P}.tar.gz"
+HOMEPAGE="http://maven.apache.org/"
+
+LICENSE="Apache-2.0"
+SLOT="1.1"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND="|| ( app-admin/eselect-java app-admin/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
+}