1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 JAVA_PKG_IUSE="doc source"
9 inherit eutils java-pkg-2 java-ant-2
13 DESCRIPTION="An XML-Java binding tool"
14 HOMEPAGE="http://xmlbeans.apache.org/"
15 SRC_URI="mirror://gentoo/${MY_P}.tar.bz2"
19 KEYWORDS="~amd64 ~arm ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
25 RDEPEND="${COMMON_DEPEND}
27 DEPEND="${COMMON_DEPEND}
30 S="${WORKDIR}/${MY_P}/v1"
33 epatch "${FILESDIR}/xml-xmlbeans-gentoo.patch"
34 java-ant_rewrite-classpath build.xml
36 cd "${S}"/external/lib
37 #TODO: includes and old copy named oldxbean.jar
38 #that probably should not be used
41 java-pkg_jar-from jaxen-1.1 jaxen.jar jaxen-1.1-beta-2.jar
42 java-pkg_filter-compiler jikes
46 eant xbean.jar $(use_doc docs) \
47 -Dgentoo.classpath=$(java-pkg_getjars ant-core)
50 # Tests always seem to fail #100895
53 java-pkg_dojar build/lib/xbean*.jar
55 dodoc CHANGES.txt NOTICE.txt README.txt
57 java-pkg_dojavadoc build/docs/reference
58 java-pkg_dohtml -r docs
60 use source && java-pkg_dosrc src/*