diff options
author | Ralph Sennhauser <sera@gentoo.org> | 2012-06-05 13:44:14 +0000 |
---|---|---|
committer | Ralph Sennhauser <sera@gentoo.org> | 2012-06-05 13:44:14 +0000 |
commit | 9896316d69f03e4418c0219e5cd74aa5f0e91dcc (patch) | |
tree | ffdc22de49373e5ad8fdde3875447c5f578c19e1 /dev-java | |
parent | Remove old. Mark correct version stable on amd64. (diff) | |
download | gentoo-2-9896316d69f03e4418c0219e5cd74aa5f0e91dcc.tar.gz gentoo-2-9896316d69f03e4418c0219e5cd74aa5f0e91dcc.tar.bz2 gentoo-2-9896316d69f03e4418c0219e5cd74aa5f0e91dcc.zip |
Rev and EAPI bump. Make better use of eclasses. Cleanup.
Drop deps on xalan, xerces, msv and xml-commons-external. Also solves slot
conflict with xml-commons-external. #419603
Replace jsr173 with virtual stax-api.
Don't let jre rdep leak into DEPEND, confuses vm switching code.
Disable one additionl test failing with jdk 7.
(Portage version: 2.1.10.62/cvs/Linux x86_64)
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/dom4j/ChangeLog | 12 | ||||
-rw-r--r-- | dev-java/dom4j/dom4j-1.6.1-r4.ebuild | 71 |
2 files changed, 82 insertions, 1 deletions
diff --git a/dev-java/dom4j/ChangeLog b/dev-java/dom4j/ChangeLog index aaffa37b4051..c9f47e17df9a 100644 --- a/dev-java/dom4j/ChangeLog +++ b/dev-java/dom4j/ChangeLog @@ -1,6 +1,16 @@ # ChangeLog for dev-java/dom4j # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/dom4j/ChangeLog,v 1.56 2012/04/15 18:47:52 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/dom4j/ChangeLog,v 1.57 2012/06/05 13:44:14 sera Exp $ + +*dom4j-1.6.1-r4 (05 Jun 2012) + + 05 Jun 2012; Ralph Sennhauser <sera@gentoo.org> +dom4j-1.6.1-r4.ebuild: + Rev and EAPI bump. Make better use of eclasses. Cleanup. + Drop deps on xalan, xerces, msv and xml-commons-external. Also solves slot + conflict with xml-commons-external. #419603 + Replace jsr173 with virtual stax-api. + Don't let jre rdep leak into DEPEND, confuses vm switching code. + Disable one additionl test failing with jdk 7. 15 Apr 2012; Mike Frysinger <vapier@gentoo.org> dom4j-1.6.1-r3.ebuild: Add back ia64 love #349020 by Dennis Schridde. diff --git a/dev-java/dom4j/dom4j-1.6.1-r4.ebuild b/dev-java/dom4j/dom4j-1.6.1-r4.ebuild new file mode 100644 index 000000000000..a3f646ef5084 --- /dev/null +++ b/dev-java/dom4j/dom4j-1.6.1-r4.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/dom4j/dom4j-1.6.1-r4.ebuild,v 1.1 2012/06/05 13:44:14 sera Exp $ + +EAPI=4 + +JAVA_PKG_IUSE="doc source test" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Java library for working with XML" +HOMEPAGE="http://dom4j.sourceforge.net/" +SRC_URI=" + mirror://sourceforge/dom4j/${P}.tar.gz + mirror://gentoo/${P}-java5.patch.bz2" + +LICENSE="dom4j" +SLOT="1" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +COMMON_DEP=" + dev-java/jaxme:0 + dev-java/relaxng-datatype:0 + dev-java/xpp2:0 + dev-java/xpp3:0 + dev-java/xsdlib:0 + java-virtuals/stax-api:0" +RDEPEND="${COMMON_DEP} + >=virtual/jre-1.5" +DEPEND="${COMMON_DEP} + >=virtual/jdk-1.5 + test? ( + dev-java/ant-junit:0 + dev-java/junitperf:0 + )" + +java_prepare() { + # Circular deps with jaxen #212993 + find -name '*.jar' -! -name jaxen-1.1-beta-6.jar -exec rm -v {} + || die + + # Add missing methods to compile on Java 5 #137970 + epatch "${WORKDIR}/${P}-java5.patch" +} + +JAVA_ANT_REWRITE_CLASSPATH="yes" +JAVA_ANT_CLASSPATH_TAGS+=" javadoc" + +EANT_BUILD_TARGET="clean package" +EANT_GENTOO_CLASSPATH="jaxme,relaxng-datatype,stax-api,xpp2,xpp3,xsdlib" +EANT_GENTOO_CLASSPATH_EXTRA="lib/jaxen-1.1-beta-6.jar" +EANT_EXTRA_ARGS="-Dbuild.javadocs=build/doc/api" + +EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH},junitperf" + +src_test() { + # Needs X11 + rm -v src/test/org/dom4j/bean/BeansTest.java || die + # Fails with a 1.6 JDK for some reason + rm -v src/test/org/dom4j/io/StaxTest.java || die + # Fails with a 1.7 JDK for some reason + rm -v src/test/org/dom4j/rule/RuleTest.java || die + + java-pkg-2_src_test +} + +src_install() { + java-pkg_dojar build/${PN}.jar + use doc && java-pkg_dojavadoc build/doc/api + use source && java-pkg_dosrc src/java/* +} |