blob: b2a0de08cc0265a3e95146b6ce5614e6532137e1 (
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
51
52
53
54
55
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/cglib/cglib-2.1.3.ebuild,v 1.17 2009/12/28 14:39:02 betelgeuse Exp $
EAPI=2
JAVA_PKG_IUSE="doc source"
inherit eutils java-pkg-2 java-ant-2
MY_PV=${PV/1./1_}
DESCRIPTION="cglib is a powerful, high performance and quality Code Generation Library."
SRC_URI="mirror://sourceforge/${PN}/${PN}-src-${MY_PV}.jar"
HOMEPAGE="http://cglib.sourceforge.net"
LICENSE="Apache-2.0"
SLOT="2.1"
KEYWORDS="amd64 ppc ~ppc64 x86"
COMMON_DEP="dev-java/asm:1.5
dev-java/aspectwerkz:2
dev-java/ant-core"
RDEPEND=">=virtual/jre-1.4
${COMMON_DEP}"
DEPEND=">=virtual/jdk-1.4
app-arch/unzip
dev-java/jarjar
${COMMON_DEP}"
IUSE=""
S=${WORKDIR}
java_prepare() {
# needed for ecj-3.5
java-ant_rewrite-bootclasspath auto
cd "${S}/lib"
rm -v *.jar || die
java-pkg_jar-from asm-1.5
java-pkg_jar-from aspectwerkz-2
java-pkg_jar-from ant-core ant.jar
}
EANT_FILTER_COMPILER="ecj-3.3"
EANT_ANT_TASKS="jarjar-1"
# Does not work against our current version of aspectwerkz
# https://bugs.gentoo.org/show_bug.cgi?id=183997
RESTRICT="test"
src_install() {
java-pkg_newjar dist/${PN}-${MY_PV}.jar
java-pkg_newjar dist/${PN}-nodep-${MY_PV}.jar ${PN}-nodep.jar
dodoc NOTICE README || die
use doc && java-pkg_dojavadoc docs/
use source && java-pkg_dosrc src/proxy/net
}
|