1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 JAVA_PKG_IUSE="doc source"
8 inherit java-pkg-2 java-ant-2 eutils
13 DESCRIPTION="JGoodies Common Library"
14 HOMEPAGE="http://www.jgoodies.com/"
15 SRC_URI="http://www.jgoodies.com/download/libraries/${MY_PN}/${MY_P}.zip"
22 DEPEND=">=virtual/jdk-1.5
24 RDEPEND=">=virtual/jre-1.5"
27 # Remove the packaged jars
28 find . -name "*.jar" -delete || die "rm failed"
32 # it does not like unset ${build.compiler.executable}
33 # feel free to fix if you want jikes back
34 java-pkg_filter-compiler jikes
35 # not setting the bootcp breaks ecj, javac apparently ignores nonsense
36 eant -Dbuild.boot.classpath="$(java-config -g BOOTCLASSPATH)" jar
40 java-pkg_dojar build/${PN}.jar
42 dodoc RELEASE-NOTES.txt README.html || die
44 use doc && java-pkg_dohtml -r docs/*
45 use source && java-pkg_dosrc src/core/com