Gentoo Archives: gentoo-commits

From: "James Le Cuirot (chewi)" <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-java/xpp2: xpp2-2.1.10-r2.ebuild ChangeLog
Date: Tue, 23 Jun 2015 23:13:04
Message-Id: 20150623231246.5B34DA52@oystercatcher.gentoo.org
1 chewi 15/06/23 23:12:46
2
3 Modified: ChangeLog
4 Added: xpp2-2.1.10-r2.ebuild
5 Log:
6 EAPI bump and general rewrite in the new style. Tests added but they
7 sadly fail. I wish we could kill this but it's in a string of ancient
8 dependencies.
9
10 (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 9C6D7DE4)
11
12 Revision Changes Path
13 1.31 dev-java/xpp2/ChangeLog
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/xpp2/ChangeLog?rev=1.31&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/xpp2/ChangeLog?rev=1.31&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/xpp2/ChangeLog?r1=1.30&r2=1.31
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/dev-java/xpp2/ChangeLog,v
22 retrieving revision 1.30
23 retrieving revision 1.31
24 diff -u -r1.30 -r1.31
25 --- ChangeLog 27 Jun 2013 21:40:45 -0000 1.30
26 +++ ChangeLog 23 Jun 2015 23:12:46 -0000 1.31
27 @@ -1,6 +1,12 @@
28 # ChangeLog for dev-java/xpp2
29 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/dev-java/xpp2/ChangeLog,v 1.30 2013/06/27 21:40:45 aballier Exp $
31 +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
32 +# $Header: /var/cvsroot/gentoo-x86/dev-java/xpp2/ChangeLog,v 1.31 2015/06/23 23:12:46 chewi Exp $
33 +
34 +*xpp2-2.1.10-r2 (23 Jun 2015)
35 +
36 + 23 Jun 2015; James Le Cuirot <chewi@g.o> +xpp2-2.1.10-r2.ebuild:
37 + EAPI bump and general rewrite in the new style. Tests added but they sadly
38 + fail. I wish we could kill this but it's in a string of ancient dependencies.
39
40 27 Jun 2013; Alexis Ballier <aballier@g.o> xpp2-2.1.10-r1.ebuild:
41 keyword ~amd64-fbsd
42
43
44
45 1.1 dev-java/xpp2/xpp2-2.1.10-r2.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/xpp2/xpp2-2.1.10-r2.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/xpp2/xpp2-2.1.10-r2.ebuild?rev=1.1&content-type=text/plain
49
50 Index: xpp2-2.1.10-r2.ebuild
51 ===================================================================
52 # Copyright 1999-2015 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/dev-java/xpp2/xpp2-2.1.10-r2.ebuild,v 1.1 2015/06/23 23:12:46 chewi Exp $
55
56 EAPI=5
57 JAVA_PKG_IUSE="doc source"
58
59 inherit java-pkg-2 java-ant-2
60
61 MY_PN="PullParser"
62 MY_P="${MY_PN}${PV}"
63
64 DESCRIPTION="A streaming pull XML parser used to quickly process input elements"
65 HOMEPAGE="http://www.extreme.indiana.edu/xgws/xsoap/xpp/mxp1/index.html"
66 SRC_URI="http://www.extreme.indiana.edu/xgws/xsoap/xpp/download/${MY_PN}2/${MY_P}.tgz"
67
68 LICENSE="Apache-1.1 IBM"
69 SLOT="0"
70 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
71 IUSE="test"
72
73 # Some failures, partly because we haven't patched Xerces but probably
74 # also because this software is ancient. :(
75 RESTRICT="test"
76
77 CDEPEND="dev-java/xerces:2"
78 DEPEND=">=virtual/jdk-1.3
79 test? ( dev-java/junit:4 )
80 ${CDEPEND}"
81 RDEPEND=">=virtual/jre-1.3
82 ${CDEPEND}"
83
84 S="${WORKDIR}/${MY_P}"
85
86 EANT_GENTOO_CLASSPATH="xerces-2"
87 EANT_EXTRA_ARGS="-Dx2_present=true -Djunit.present=true"
88 EANT_BUILD_TARGET="intf intf_jar impl x2impl"
89 EANT_DOC_TARGET="api"
90 EANT_TEST_TARGET="junit"
91
92 java_prepare() {
93 rm -r build/ lib/ || die
94
95 # Our usual rewriting stomps over the existing classpath, which
96 # isn't helpful here.
97 sed -i -r \
98 -e 's/\bclasspath="/\0${gentoo.classpath}:/g' \
99 -e 's/\$\{java\.class\.path\}/${gentoo.classpath}/g' \
100 build.xml || die
101 }
102
103 src_install() {
104 local suffix
105
106 for suffix in "" -intf -standard -x2; do
107 java-pkg_newjar build/lib/${MY_PN}${suffix}-${PV}.jar ${MY_PN}${suffix}.jar
108 done
109
110 dodoc README.html
111 use doc && java-pkg_dojavadoc doc/api
112 use source && java-pkg_dosrc $(find src/java -name org -o -name javax)
113 }
114
115 src_test() {
116 java-pkg-2_src_test
117 }