1 |
commit: 5dbef55facbeb1d4b20f1e56e111881e18dddd22 |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 25 23:00:32 2015 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 25 23:01:02 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5dbef55f |
7 |
|
8 |
dev-java/wstx: Bump Java version to 6 and remove tons of unneeded deps |
9 |
|
10 |
emma and xsdlib just plain aren't needed. stax and jaxp-virtual are |
11 |
included in Java 6. ant-nodeps and ant-trax are dummy packages. We |
12 |
should depend on ant-junit, not junit. |
13 |
|
14 |
Also update the homepage as Codehaus is dead. This old version is |
15 |
practically nowhere to be found except our mirrors. |
16 |
|
17 |
Package-Manager: portage-2.2.20.1 |
18 |
|
19 |
dev-java/wstx/wstx-3.2.9-r1.ebuild | 58 ++++++++++++++++++++++++++++++++++++++ |
20 |
1 file changed, 58 insertions(+) |
21 |
|
22 |
diff --git a/dev-java/wstx/wstx-3.2.9-r1.ebuild b/dev-java/wstx/wstx-3.2.9-r1.ebuild |
23 |
new file mode 100644 |
24 |
index 0000000..3cce75c |
25 |
--- /dev/null |
26 |
+++ b/dev-java/wstx/wstx-3.2.9-r1.ebuild |
27 |
@@ -0,0 +1,58 @@ |
28 |
+# Copyright 1999-2015 Gentoo Foundation |
29 |
+# Distributed under the terms of the GNU General Public License v2 |
30 |
+# $Id$ |
31 |
+ |
32 |
+EAPI="5" |
33 |
+ |
34 |
+JAVA_PKG_IUSE="doc source" |
35 |
+ |
36 |
+inherit java-pkg-2 java-ant-2 |
37 |
+ |
38 |
+DESCRIPTION="Woodstox is a high-performance validating namespace-aware XML-processor" |
39 |
+HOMEPAGE="https://github.com/FasterXML/woodstox" |
40 |
+SRC_URI="mirror://gentoo/${PN}-src-${PV}.zip" |
41 |
+LICENSE="Apache-2.0" |
42 |
+SLOT="3.2" |
43 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
44 |
+IUSE="test" |
45 |
+ |
46 |
+CDEPEND="dev-java/sax:0 |
47 |
+ dev-java/msv:0 |
48 |
+ dev-java/relaxng-datatype:0" |
49 |
+ |
50 |
+RDEPEND="${CDEPEND} |
51 |
+ >=virtual/jre-1.6" |
52 |
+ |
53 |
+DEPEND="${CDEPEND} |
54 |
+ >=virtual/jdk-1.6 |
55 |
+ app-arch/unzip |
56 |
+ test? ( dev-java/ant-junit:0 )" |
57 |
+ |
58 |
+EANT_BUILD_TARGET="jars" |
59 |
+EANT_DOC_TARGET="javadoc" |
60 |
+ |
61 |
+# Don't need to make a folder |
62 |
+S="${WORKDIR}" |
63 |
+ |
64 |
+JAVA_ANT_REWRITE_CLASSPATH="true" |
65 |
+ |
66 |
+java_prepare() { |
67 |
+ rm -v lib/msv/*.jar || die |
68 |
+ rm -v lib/*.jar || die |
69 |
+ |
70 |
+ # Get rid of a missing include. |
71 |
+ epatch "${FILESDIR}"/${P}-build.xml.patch |
72 |
+} |
73 |
+ |
74 |
+EANT_GENTOO_CLASSPATH="sax,msv,relaxng-datatype" |
75 |
+ |
76 |
+src_test(){ |
77 |
+ java-pkg-2_src_test |
78 |
+} |
79 |
+ |
80 |
+src_install() { |
81 |
+ java-pkg_newjar build/"${PN}"-api-"${PV}".jar "${PN}"-api.jar |
82 |
+ java-pkg_newjar build/"${PN}"-asl-"${PV}".jar "${PN}".jar |
83 |
+ use doc && java-pkg_dojavadoc build/javadoc |
84 |
+ use source && java-pkg_dosrc src |
85 |
+} |