summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2012-01-26 16:42:40 +0000
committerMiroslav Šulc <fordfrog@gentoo.org>2012-01-26 16:42:40 +0000
commit5c3e2b1ea11f2ebbc16a07f1fed8a230cef5dc16 (patch)
tree71527e634ad1e8bbe596044a2051695107a4353d /dev-java/maven-bin
parentMaintain transmission too. (diff)
downloadgentoo-2-5c3e2b1ea11f2ebbc16a07f1fed8a230cef5dc16.tar.gz
gentoo-2-5c3e2b1ea11f2ebbc16a07f1fed8a230cef5dc16.tar.bz2
gentoo-2-5c3e2b1ea11f2ebbc16a07f1fed8a230cef5dc16.zip
dev-java/maven-bin: version bump
(Portage version: 2.1.10.44/cvs/Linux x86_64)
Diffstat (limited to 'dev-java/maven-bin')
-rw-r--r--dev-java/maven-bin/ChangeLog9
-rw-r--r--dev-java/maven-bin/maven-bin-3.0.4.ebuild60
2 files changed, 67 insertions, 2 deletions
diff --git a/dev-java/maven-bin/ChangeLog b/dev-java/maven-bin/ChangeLog
index 3355a68f93c9..cbda649a25f8 100644
--- a/dev-java/maven-bin/ChangeLog
+++ b/dev-java/maven-bin/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-java/maven-bin
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/maven-bin/ChangeLog,v 1.75 2011/12/14 15:43:49 sera Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/maven-bin/ChangeLog,v 1.76 2012/01/26 16:42:40 fordfrog Exp $
+
+*maven-bin-3.0.4 (26 Jan 2012)
+
+ 26 Jan 2012; Miroslav Šulc <fordfrog@gentoo.org> +maven-bin-3.0.4.ebuild:
+ Version bump
*maven-bin-3.0.3-r1 (14 Dec 2011)
*maven-bin-2.2.1-r1 (14 Dec 2011)
diff --git a/dev-java/maven-bin/maven-bin-3.0.4.ebuild b/dev-java/maven-bin/maven-bin-3.0.4.ebuild
new file mode 100644
index 000000000000..cba52aa09425
--- /dev/null
+++ b/dev-java/maven-bin/maven-bin-3.0.4.ebuild
@@ -0,0 +1,60 @@
+# 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-3.0.4.ebuild,v 1.1 2012/01/26 16:42:40 fordfrog Exp $
+
+EAPI="4"
+
+inherit java-pkg-2
+
+MY_PN=apache-${PN%%-bin}
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Project Management and Comprehension Tool for Java"
+SRC_URI="mirror://apache/maven/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-admin/eselect-maven"
+RDEPEND=">=virtual/jdk-1.5
+ ${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+MAVEN=${PN}-${SLOT}
+MAVEN_SHARE="/usr/share/${MAVEN}"
+
+src_unpack() {
+ unpack ${A}
+
+ 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
+}