Mercurial > hg > portage
changeset 189:81a205c65822
local ebuild for Maven 2.0.11 until it's in portage
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Thu, 11 Mar 2010 12:16:26 +0100 |
parents | 53e0b4793285 |
children | bbdf36664885 |
files | dev-java/maven-bin/Manifest dev-java/maven-bin/maven-bin-2.0.11.ebuild |
diffstat | 2 files changed, 46 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dev-java/maven-bin/Manifest Thu Mar 11 12:16:26 2010 +0100 @@ -0,0 +1,2 @@ +DIST apache-maven-2.0.11-bin.tar.bz2 2104711 RMD160 f74e8421518a38f300982ecd404f99376c007e53 SHA1 a4f36630522f45566ea0220776de20d5ddff69ce SHA256 f8e91b43def9b78d01f0ad8374644aa737365144dea04a97f9503ac0011ad39c +EBUILD maven-bin-2.0.11.ebuild 1064 RMD160 c32c350051a9ad337c994f5fcce36376450644ed SHA1 7d92d5f974c1362df160698519061a75c6712722 SHA256 648283e29efc08aa1c5abf51df848f2c392235ac92fb1b76634624305000a88b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dev-java/maven-bin/maven-bin-2.0.11.ebuild Thu Mar 11 12:16:26 2010 +0100 @@ -0,0 +1,44 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/maven-bin/maven-bin-2.0.10-r1.ebuild,v 1.2 2009/10/26 08:01:29 volkmar Exp $ + +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.bz2" +HOMEPAGE="http://maven.apache.org/" +LICENSE="Apache-2.0" +SLOT="2.0" +KEYWORDS="~amd64 ~ppc ~x86" + +RDEPEND=">=virtual/jdk-1.4 + app-admin/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} +}