1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 JAVA_PKG_IUSE="doc source"
8 inherit java-pkg-2 java-pkg-simple
10 DESCRIPTION="Yet another Java library for parsing and writing XML"
11 HOMEPAGE="http://dev2dev.bea.com/xml/stax.html"
12 SRC_URI="mirror://gentoo/${P}.jar"
14 LICENSE="bea.ri.jsr173"
16 KEYWORDS="amd64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
28 DOCS=( README.txt jsr173_1.0.pdf )
32 jar xvf "${DISTDIR}/${A}" || die "failed to unpack"
33 jar xvf "${P//-/_}_src.jar" || die "failed to unpack"
42 java-pkg-simple_src_install
43 use doc && einstalldocs