Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/xstream/
Date: Fri, 25 Sep 2015 23:23:11
Message-Id: 1443223347.375b1578abc8fe67c08778d963356d9c496df015.chewi@gentoo
1 commit: 375b1578abc8fe67c08778d963356d9c496df015
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 25 23:22:27 2015 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 25 23:22:27 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=375b1578
7
8 dev-java/xstream: Remove the tests so we can last-rite dev-java/stax
9
10 The tests were completely broken anyway. Also update the HOMEPAGE and
11 SRC_URI as Codehaus is dead.
12
13 Package-Manager: portage-2.2.20.1
14
15 dev-java/xstream/xstream-1.3.1-r4.ebuild | 59 ++++++++++++++++++++++++++++++++
16 1 file changed, 59 insertions(+)
17
18 diff --git a/dev-java/xstream/xstream-1.3.1-r4.ebuild b/dev-java/xstream/xstream-1.3.1-r4.ebuild
19 new file mode 100644
20 index 0000000..bd8cd61
21 --- /dev/null
22 +++ b/dev-java/xstream/xstream-1.3.1-r4.ebuild
23 @@ -0,0 +1,59 @@
24 +# Copyright 1999-2015 Gentoo Foundation
25 +# Distributed under the terms of the GNU General Public License v2
26 +# $Id$
27 +
28 +EAPI=5
29 +
30 +JAVA_PKG_IUSE="doc source"
31 +
32 +inherit java-pkg-2 java-ant-2
33 +
34 +DESCRIPTION="A text-processing Java classes that serialize objects to XML and back again"
35 +HOMEPAGE="http://x-stream.github.io"
36 +SRC_URI="http://repo.maven.apache.org/maven2/com/thoughtworks/${PN}/${PN}-distribution/${PV}/${PN}-distribution-${PV}-src.zip"
37 +LICENSE="BSD"
38 +SLOT="0"
39 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
40 +
41 +# By default, these tests exit successfully on failure. Chewi has fixed
42 +# that below but it's probably because they blow up spectacularly on
43 +# every VM he has tried. They also depend on classes unique to the
44 +# Codehaus StAX implementation (dev-java/stax), which has now been
45 +# last-rited, so we no longer bother to support them at all.
46 +RESTRICT="test"
47 +
48 +CDEPEND="dev-java/cglib:3
49 + dev-java/dom4j:1
50 + dev-java/jdom:1.0
51 + dev-java/joda-time:0
52 + dev-java/xom:0
53 + dev-java/xpp3:0
54 + dev-java/xml-commons-external:1.3
55 + dev-java/jettison:0"
56 +
57 +RDEPEND=">=virtual/jre-1.6
58 + ${CDEPEND}"
59 +
60 +DEPEND=">=virtual/jdk-1.6
61 + app-arch/unzip
62 + ${CDEPEND}"
63 +
64 +S="${WORKDIR}/${P}/${PN}"
65 +
66 +JAVA_ANT_REWRITE_CLASSPATH="true"
67 +EANT_GENTOO_CLASSPATH="xpp3,jdom-1.0,xom,dom4j-1,joda-time,cglib-3,xml-commons-external-1.3,jettison"
68 +EANT_BUILD_TARGET="benchmark:compile jar"
69 +EANT_EXTRA_ARGS="-Dversion=${PV} -Djunit.haltonfailure=true"
70 +
71 +java_prepare() {
72 + rm -v lib/*.jar || die
73 + rm -rfv lib/jdk1.3 || die
74 +}
75 +
76 +src_install(){
77 + java-pkg_newjar target/${P}.jar
78 + java-pkg_newjar target/${PN}-benchmark-${PV}.jar ${PN}-benchmark.jar
79 +
80 + use doc && java-pkg_dojavadoc target/javadoc
81 + use source && java-pkg_dosrc src/java/com
82 +}