dev-python/jibx: EAPI 5 bump. Removes java-virtual/stax-api dependency and fixes...
authorPatrice Clement <monsieurp@gentoo.org>
Mon, 28 Sep 2015 16:50:22 +0000 (16:50 +0000)
committerPatrice Clement <monsieurp@gentoo.org>
Mon, 28 Sep 2015 20:05:38 +0000 (20:05 +0000)
Package-Manager: portage-2.2.18
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
dev-java/jibx/jibx-1.1.5-r2.ebuild [new file with mode: 0644]

diff --git a/dev-java/jibx/jibx-1.1.5-r2.ebuild b/dev-java/jibx/jibx-1.1.5-r2.ebuild
new file mode 100644 (file)
index 0000000..facdf06
--- /dev/null
@@ -0,0 +1,57 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-ant-2 versionator
+
+MY_PV=$(replace_all_version_separators '_')
+
+DESCRIPTION="JiBX: Binding XML to Java Code"
+HOMEPAGE="http://jibx.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${PN}_${MY_PV}.zip"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~x64-macos ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris"
+IUSE=""
+
+CDEPEND="dev-java/dom4j:1
+       dev-java/ant-core:0
+       dev-java/bcel:0
+       dev-java/xpp3:0"
+
+DEPEND=">=virtual/jdk-1.6
+       app-arch/unzip
+       ${CDEPEND}"
+
+RDEPEND=">=virtual/jre-1.6
+       ${CDEPEND}"
+
+S="${WORKDIR}/${PN}"
+
+java_prepare() {
+       cd lib || die
+       rm -v *.jar || die
+       java-pkg_jar-from ant-core,bcel,dom4j-1,xpp3
+}
+
+EANT_BUILD_TARGET="small-jars"
+EANT_BUILD_XML="build/build.xml"
+
+src_install() {
+       java-pkg_dojar "${S}"/lib/${PN}*.jar
+
+       dodoc changes.txt docs/binding.dtd docs/binding.xsd
+       dohtml readme.html
+
+       use doc && {
+               java-pkg_dohtml -r docs/*
+               cp -R starter "${ED}/usr/share/doc/${PF}"
+               cp -R tutorial "${ED}/usr/share/doc/${PF}"
+       }
+
+       use source && java-pkg_dosrc build/src/* build/extras/*
+}