1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 JAVA_PKG_IUSE="doc examples source test"
8 inherit java-pkg-2 java-ant-2
10 DESCRIPTION="cglib is a powerful, high performance and quality Code Generation Library"
11 HOMEPAGE="https://github.com/cglib/cglib"
12 SRC_URI="mirror://sourceforge/${PN}/${PN}-src-${PV}.jar"
16 KEYWORDS="amd64 ~arm64 ppc64 x86"
20 COMMON_DEP="dev-java/asm:4
22 RDEPEND=">=virtual/jre-1.6
24 DEPEND=">=virtual/jdk-1.6
25 test? ( dev-java/junit:4 )
30 JAVA_ANT_REWRITE_CLASSPATH="yes"
31 EANT_GENTOO_CLASSPATH="asm-4 ant-core"
34 find . -iname '*.jar' -delete || die
36 # Get rid of some parts in XML.
37 epatch "${FILESDIR}"/${P}-build.xml.patch
41 java-pkg_newjar dist/${P}.jar ${PN}.jar
44 java-pkg_dojavadoc docs
48 java-pkg_dosrc src/proxy/net
52 java-pkg_doexamples --subdir samples src/proxy/samples