1 # Copyright 1999-2015 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
11 DESCRIPTION="API exposing the Chain of Responsability design pattern - by the ASF"
12 HOMEPAGE="http://commons.apache.org/proper/commons-chain/"
13 SRC_URI="mirror://apache/commons/chain/source/${MY_P}.zip"
17 KEYWORDS="~amd64 ~x86"
19 # Too many missing imports from javax.servlet.* which cause the
20 # "compile-tests" target to fail compiling.
21 # I gave up on it after wasting nearly half a day.
26 CDEPEND="dev-java/commons-digester:0
28 dev-java/portletapi:2.0
29 dev-java/commons-logging:0
30 java-virtuals/servlet-api:3.0"
32 RDEPEND=">=virtual/jre-1.6
35 DEPEND=">=virtual/jdk-1.6
38 S="${WORKDIR}/${MY_P}"
40 JAVA_ANT_REWRITE_CLASSPATH="true"
41 EANT_GENTOO_CLASSPATH="
49 EANT_BUILD_TARGET="package"
50 EANT_BUILD_XML="build.xml"
53 cp "${FILESDIR}"/${P}-build.xml build.xml
57 java-pkg_newjar "${S}"/target/${P}.jar commons-chain.jar
60 java-pkg_dohtml -r "${S}"/target/site/apidocs/
64 java-pkg_dosrc "${S}"/src/*