1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 inherit java-pkg-2 java-ant-2
12 S="${WORKDIR}/${MY_P}"
14 DESCRIPTION="Code generator for Hamcrest's library of matchers for building test expressions"
15 HOMEPAGE="https://github.com/hamcrest"
16 SRC_URI="https://${MY_PN}.googlecode.com/files/${MY_P}.tgz"
20 KEYWORDS="~amd64 ~ppc64 ~x86"
22 CDEPEND="dev-java/qdox:1.6"
24 DEPEND=">=virtual/jdk-1.5
25 userland_GNU? ( sys-apps/findutils )
28 RDEPEND=">=virtual/jre-1.5
31 EANT_BUILD_TARGET="generator"
32 EANT_TEST_TARGET="unit-test"
33 EANT_EXTRA_ARGS="-Dversion=${PV}"
34 EANT_GENTOO_CLASSPATH_EXTRA="${S}/build/temp/${PN}-${PV}-nodeps.jar"
37 epatch "${FILESDIR}"/${PV}-build.xml.patch
39 find -iname "*.jar" -exec rm -v {} + || die "Unable to remove bundled JAR files"
41 # These jars must be symlinked. Specifying them using gentoo.classpath
43 java-pkg_jar-from --into lib/generator qdox-1.6 qdox.jar qdox-1.6.1.jar
47 java-pkg_newjar build/temp/${PN}-${PV}-nodeps.jar ${PN}.jar
49 dodoc README.txt CHANGES.txt
51 use source && java-pkg_dosrc ${PN}/src/main/java/org