diff options
author | Tom Wijsman <tomwij@gentoo.org> | 2013-05-29 11:34:30 +0000 |
---|---|---|
committer | Tom Wijsman <tomwij@gentoo.org> | 2013-05-29 11:34:30 +0000 |
commit | 3793e5b1e9a69945cb401b66bc667bee3d88f6a5 (patch) | |
tree | b4b150e81ede61f0ac774aae901b8e9970c6ca92 /dev-java/javax-inject/javax-inject-1-r1.ebuild | |
parent | Stable for amd64 wrt bug #471680 (diff) | |
download | gentoo-2-3793e5b1e9a69945cb401b66bc667bee3d88f6a5.tar.gz gentoo-2-3793e5b1e9a69945cb401b66bc667bee3d88f6a5.tar.bz2 gentoo-2-3793e5b1e9a69945cb401b66bc667bee3d88f6a5.zip |
Revision bump to use generated build.xml instead of bailing out due to QA violation.
(Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)
Diffstat (limited to 'dev-java/javax-inject/javax-inject-1-r1.ebuild')
-rw-r--r-- | dev-java/javax-inject/javax-inject-1-r1.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-java/javax-inject/javax-inject-1-r1.ebuild b/dev-java/javax-inject/javax-inject-1-r1.ebuild new file mode 100644 index 000000000000..4efa5d89288c --- /dev/null +++ b/dev-java/javax-inject/javax-inject-1-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/javax-inject/javax-inject-1-r1.ebuild,v 1.1 2013/05/29 11:34:30 tomwij Exp $ + +EAPI="5" + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-ant-2 + +MY_P=${PN/-/.}-${PV} + +DESCRIPTION="Dependency injection for Java (JSR-330)" +HOMEPAGE="http://code.google.com/p/atinject/" +SRC_URI="http://atinject.googlecode.com/files/${MY_P}-bundle.jar" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND=">=virtual/jdk-1.5 + app-arch/unzip" + +RDEPEND=">=virtual/jre-1.5" + +S="${WORKDIR}" + +src_unpack() { + unpack ${A} + + cd "${S}" + unzip -q ${MY_P}-sources.jar || die +} + +java_prepare() { + cp "${FILESDIR}"/${P}-build.xml build.xml || die + + sed -i 's/\(<mkdir dir="${maven.build.outputDir}"\/>\)/\1<javac srcdir="." destdir="${maven.build.outputDir}" \/>/g' build.xml || die +} + +src_install() { + java-pkg_newjar target/javax.inject-${PV}.jar + + use doc && java-pkg_dojavadoc target/api + use source && java-pkg_dosrc javax +} |