blob: 5222b26382900aa81b79c41234d678dd7f9910e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/guice/guice-3.0-r1.ebuild,v 1.3 2015/06/13 11:37:25 ago Exp $
EAPI="5"
JAVA_PKG_IUSE="source"
inherit java-pkg-2 java-ant-2
DESCRIPTION="Guice is a lightweight dependency injection framework for Java 5 and above"
HOMEPAGE="http://code.google.com/p/google-guice/"
SRC_URI="http://google-guice.googlecode.com/files/${P}-src.zip"
LICENSE="Apache-2.0"
SLOT="3"
KEYWORDS="amd64 x86"
IUSE=""
COMMON_DEPEND="dev-java/aopalliance:1
dev-java/javax-inject:0
dev-java/asm:3
dev-java/cglib:3"
RDEPEND=">=virtual/jre-1.6
${COMMON_DEPEND}"
DEPEND=">=virtual/jdk-1.6
${COMMON_DEPEND}"
RESTRICT="test"
S="${WORKDIR}/${P}-src/"
JAVA_PKG_BSFIX_NAME="build.xml common.xml servlet/build.xml"
JAVA_ANT_REWRITE_CLASSPATH="yes"
EANT_GENTOO_CLASSPATH="aopalliance-1,asm-3,cglib-3,javax-inject"
java_prepare() {
find . -name '*.jar' -exec rm -v {} + || die
find . -name '*.class' -exec rm -v {} + || die
epatch "${FILESDIR}"/${PV}-common.xml.patch
epatch "${FILESDIR}"/${PV}-build.xml.patch
}
src_install() {
java-pkg_dojar build/${PN}.jar
use source && java-pkg_dosrc core/src/com
}
|