1 # Copyright 1999-2019 Gentoo Authors
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
12 DESCRIPTION="A streaming pull XML parser used to quickly process input elements"
13 HOMEPAGE="http://www.extreme.indiana.edu/xgws/xsoap/xpp/mxp1/index.html"
14 SRC_URI="http://www.extreme.indiana.edu/xgws/xsoap/xpp/download/${MY_PN}2/${MY_P}.tgz"
16 LICENSE="Apache-1.1 IBM"
18 KEYWORDS="amd64 ~arm arm64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
21 # Some failures, partly because we haven't patched Xerces but probably
22 # also because this software is ancient. :(
25 CDEPEND="dev-java/xerces:2"
26 DEPEND=">=virtual/jdk-1.3
27 test? ( dev-java/junit:4 )
29 RDEPEND=">=virtual/jre-1.3
32 S="${WORKDIR}/${MY_P}"
34 EANT_GENTOO_CLASSPATH="xerces-2"
35 EANT_EXTRA_ARGS="-Dx2_present=true -Djunit.present=true"
36 EANT_BUILD_TARGET="intf intf_jar impl x2impl"
38 EANT_TEST_TARGET="junit"
41 rm -r build/ lib/ || die
43 # Our usual rewriting stomps over the existing classpath, which
46 -e 's/\bclasspath="/\0${gentoo.classpath}:/g' \
47 -e 's/\$\{java\.class\.path\}/${gentoo.classpath}/g' \
54 for suffix in "" -intf -standard -x2; do
55 java-pkg_newjar build/lib/${MY_PN}${suffix}-${PV}.jar ${MY_PN}${suffix}.jar
59 use doc && java-pkg_dojavadoc doc/api
60 use source && java-pkg_dosrc $(find src/java -name org -o -name javax)