Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/xerces/
Date: Wed, 02 Dec 2015 16:26:19
Message-Id: 1449073534.14834cb8733b545f2cf564ea09b0ae3a6d4fd413.monsieurp@gentoo
1 commit: 14834cb8733b545f2cf564ea09b0ae3a6d4fd413
2 Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 2 16:25:34 2015 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 2 16:25:34 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14834cb8
7
8 dev-java/xerces: EAPI 5 version bump.
9
10 Package-Manager: portage-2.2.20.1
11 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
12
13 dev-java/xerces/xerces-2.11.0-r1.ebuild | 62 +++++++++++++++++++++++++++++++++
14 1 file changed, 62 insertions(+)
15
16 diff --git a/dev-java/xerces/xerces-2.11.0-r1.ebuild b/dev-java/xerces/xerces-2.11.0-r1.ebuild
17 new file mode 100644
18 index 0000000..935e6dd
19 --- /dev/null
20 +++ b/dev-java/xerces/xerces-2.11.0-r1.ebuild
21 @@ -0,0 +1,62 @@
22 +# Copyright 1999-2015 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +# $Id$
25 +
26 +EAPI=5
27 +JAVA_PKG_IUSE="doc examples source"
28 +
29 +inherit eutils versionator java-pkg-2 java-ant-2
30 +
31 +DIST_PN="Xerces-J"
32 +SRC_PV="$(replace_all_version_separators _ )"
33 +DESCRIPTION="The next generation of high performance, fully compliant XML parsers in the Apache Xerces family"
34 +HOMEPAGE="http://xml.apache.org/xerces2-j/index.html"
35 +SRC_URI="mirror://apache/${PN}/j/${DIST_PN}-src.${PV}.tar.gz"
36 +
37 +LICENSE="Apache-2.0"
38 +SLOT="2"
39 +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
40 +IUSE=""
41 +
42 +# they are missing from the upstream tarball"
43 +RESTRICT="test"
44 +
45 +CDEPEND="
46 + dev-java/xml-commons-external:1.4
47 + >=dev-java/xml-commons-resolver-1.2:0"
48 +
49 +RDEPEND="
50 + ${CDEPEND}
51 + >=virtual/jre-1.6"
52 +
53 +DEPEND="
54 + ${CDEPEND}
55 + >=virtual/jdk-1.6
56 + >=dev-java/xjavac-20110814:1"
57 +
58 +S="${WORKDIR}/${PN}-${SRC_PV}"
59 +
60 +java_prepare() {
61 + epatch "${FILESDIR}/${P}-build.xml.patch"
62 +}
63 +
64 +JAVA_ANT_REWRITE_CLASSPATH="yes"
65 +JAVA_ANT_CLASSPATH_TAGS+=" javadoc"
66 +
67 +EANT_ANT_TASKS="xjavac-1"
68 +EANT_GENTOO_CLASSPATH="xml-commons-resolver,xml-commons-external-1.4"
69 +EANT_DOC_TARGET="javadocs"
70 +# known small bug - javadocs use custom taglets, which come as bundled jar in
71 +# xerces-J-tools.${PV}.tar.gz. Should find the taglets source instead.
72 +EANT_EXTRA_ARGS="-Dadditional.param="
73 +
74 +src_install() {
75 + java-pkg_dojar build/xercesImpl.jar
76 +
77 + dodoc README NOTICE
78 + dohtml Readme.html
79 +
80 + use doc && java-pkg_dojavadoc build/docs/javadocs/xerces2
81 + use examples && java-pkg_doexamples samples
82 + use source && java-pkg_dosrc src/org
83 +}