You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-java/javax-inject/javax-inject-1.ebuild

35 lines
816 B

# 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.ebuild,v 1.1 2013/03/26 04:17:41 radhermit Exp $
EAPI=5
JAVA_PKG_IUSE="doc source"
inherit java-pkg-2 java-pkg-simple
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"
RDEPEND=">=virtual/jre-1.5"
DEPEND=">=virtual/jdk-1.5
app-arch/unzip"
src_unpack() {
unpack ${A}
cd "${S}"
unzip -q ${MY_P}-sources.jar || die
}
src_install() {
java-pkg_dojar ${PN}.jar
use doc && java-pkg_dojavadoc target/api
use source && java-pkg_dosrc javax
}