blob: 1e2255dbf97f81a4e5f32390b8367c845171f835 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/cglib/cglib-2.0.2.ebuild,v 1.7 2005/07/15 17:52:17 axxo Exp $
inherit java-pkg
DESCRIPTION="cglib is a Dynamic Java byte code generator"
HOMEPAGE="http://cglib.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${PN}-src-${PV}.jar"
RDEPEND=">=virtual/jre-1.3
dev-java/asm"
DEPEND=">=virtual/jdk-1.3
${RDEPEND}
>=dev-java/ant-1.4"
LICENSE="LGPL-2"
SLOT="2"
KEYWORDS="x86 ~ppc amd64"
IUSE="jikes doc"
S=${WORKDIR}
src_unpack() {
cd ${S}
jar xf ${DISTDIR}/${A} || die "unpack failed"
cd ${S}
echo "j2ee.jar.base.dir=${JAVA_HOME}" > build.properties
}
src_compile() {
local antflags="jar"
use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
use doc && antflags="${antflags} javadoc"
#use junit && antflags="${antflags} test"
ant ${antflags} || die "compilation failed"
}
src_install() {
java-pkg_newjar dist/${PN}-full-${PV}.jar ${PN}-full.jar
dodoc README NOTICE
use doc && java-pkg_dohtml -r build/apidocs/*
}
|