1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 JAVA_PKG_IUSE="doc source"
7 inherit java-pkg-2 java-ant-2
10 DESCRIPTION="API exposing the Chain of Responsability design pattern - by the ASF"
11 HOMEPAGE="http://commons.apache.org/proper/commons-chain/"
12 SRC_URI="mirror://apache/commons/chain/source/${MY_P}.zip"
18 # Too many missing imports from javax.servlet.* which causes the
19 # "compile-tests" target to fail compiling.
20 # I gave up on them after wasting nearly half a day.
25 CDEPEND="dev-java/commons-digester:0
27 dev-java/portletapi:2.0
28 dev-java/commons-logging:0
29 java-virtuals/servlet-api:3.0"
31 RDEPEND=">=virtual/jre-1.6
34 DEPEND=">=virtual/jdk-1.6
37 S="${WORKDIR}/${MY_P}"
39 JAVA_ANT_REWRITE_CLASSPATH="true"
40 EANT_GENTOO_CLASSPATH="
48 EANT_BUILD_TARGET="package"
49 EANT_BUILD_XML="build.xml"
52 cp "${FILESDIR}"/${P}-build.xml build.xml
56 java-pkg_newjar "${S}"/target/${P}.jar commons-chain.jar
59 java-pkg_dohtml -r "${S}"/target/site/apidocs/
63 java-pkg_dosrc "${S}"/src/*