1 |
chewi 15/03/05 23:23:27 |
2 |
|
3 |
Added: jackson-dataformat-xml-2.5.1.ebuild metadata.xml |
4 |
ChangeLog |
5 |
Log: |
6 |
New package required by Log4j 2. It would be optional but we cannot |
7 |
yet skip dependencies at build time. Unfortunately the tests are quite |
8 |
explosive. A new Woodstox is possibly needed? |
9 |
|
10 |
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 9C6D7DE4) |
11 |
|
12 |
Revision Changes Path |
13 |
1.1 dev-java/jackson-dataformat-xml/jackson-dataformat-xml-2.5.1.ebuild |
14 |
|
15 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jackson-dataformat-xml/jackson-dataformat-xml-2.5.1.ebuild?rev=1.1&view=markup |
16 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jackson-dataformat-xml/jackson-dataformat-xml-2.5.1.ebuild?rev=1.1&content-type=text/plain |
17 |
|
18 |
Index: jackson-dataformat-xml-2.5.1.ebuild |
19 |
=================================================================== |
20 |
# Copyright 1999-2015 Gentoo Foundation |
21 |
# Distributed under the terms of the GNU General Public License v2 |
22 |
# $Header: /var/cvsroot/gentoo-x86/dev-java/jackson-dataformat-xml/jackson-dataformat-xml-2.5.1.ebuild,v 1.1 2015/03/05 23:23:27 chewi Exp $ |
23 |
|
24 |
EAPI="5" |
25 |
|
26 |
JAVA_PKG_IUSE="doc source" |
27 |
|
28 |
inherit java-pkg-2 java-pkg-simple |
29 |
|
30 |
DESCRIPTION="XML data format extension for Jackson" |
31 |
HOMEPAGE="https://github.com/FasterXML/jackson-dataformat-xml" |
32 |
SRC_URI="https://github.com/FasterXML/${PN}/archive/${P}.tar.gz" |
33 |
|
34 |
LICENSE="Apache-2.0" |
35 |
SLOT="2" |
36 |
KEYWORDS="~amd64" |
37 |
IUSE="test" |
38 |
RESTRICT="test" # Lots of failures, new Woodstox needed? |
39 |
|
40 |
CDEPEND="~dev-java/jackson-${PV}:${SLOT} |
41 |
~dev-java/jackson-annotations-${PV}:${SLOT} |
42 |
~dev-java/jackson-databind-${PV}:${SLOT} |
43 |
~dev-java/jackson-module-jaxb-annotations-${PV}:${SLOT} |
44 |
dev-java/stax2-api:0" |
45 |
RDEPEND=">=virtual/jre-1.5 |
46 |
${CDEPEND}" |
47 |
DEPEND=">=virtual/jdk-1.5 |
48 |
${CDEPEND} |
49 |
test? ( |
50 |
dev-java/hamcrest-core:1.3 |
51 |
dev-java/junit:4 |
52 |
)" |
53 |
|
54 |
S="${WORKDIR}/${PN}-${P}/src" |
55 |
JAVA_SRC_DIR="main/java" |
56 |
JAVA_GENTOO_CLASSPATH="jackson-${SLOT},jackson-annotations-${SLOT},jackson-databind-${SLOT},jackson-module-jaxb-annotations-${SLOT},stax2-api" |
57 |
|
58 |
java_prepare() { |
59 |
sed -e 's:@package@:com.fasterxml.jackson.dataformat.xml:g' \ |
60 |
-e "s:@projectversion@:${PV}:g" \ |
61 |
-e 's:@projectgroupid@:com.fasterxml.jackson.dataformat:g' \ |
62 |
-e 's:@projectartifactid@:jackson-dataformat-xml:g' \ |
63 |
"${S}/main/java/com/fasterxml/jackson/dataformat/xml/PackageVersion.java.in" \ |
64 |
> "${S}/main/java/com/fasterxml/jackson/dataformat/xml/PackageVersion.java" || die |
65 |
} |
66 |
|
67 |
src_install() { |
68 |
java-pkg-simple_src_install |
69 |
dodoc ../README.md ../release-notes/{CREDITS,VERSION} |
70 |
} |
71 |
|
72 |
src_test() { |
73 |
cd test/java || die |
74 |
|
75 |
local CP=".:../resources:${S}/${PN}.jar:$(java-pkg_getjars hamcrest-core-1.3,junit-4,${JAVA_GENTOO_CLASSPATH})" |
76 |
local TESTS=$(find * -name "Test*.java" ! -path "*/failing/*") |
77 |
TESTS="${TESTS//.java}" |
78 |
TESTS="${TESTS//\//.}" |
79 |
|
80 |
ejavac -cp "${CP}" -d . $(find * -name "*.java") |
81 |
ejunit4 -classpath "${CP}" ${TESTS} |
82 |
} |
83 |
|
84 |
|
85 |
|
86 |
1.1 dev-java/jackson-dataformat-xml/metadata.xml |
87 |
|
88 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jackson-dataformat-xml/metadata.xml?rev=1.1&view=markup |
89 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jackson-dataformat-xml/metadata.xml?rev=1.1&content-type=text/plain |
90 |
|
91 |
Index: metadata.xml |
92 |
=================================================================== |
93 |
<?xml version="1.0" encoding="UTF-8"?> |
94 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
95 |
<pkgmetadata> |
96 |
<herd>java</herd> |
97 |
<longdescription> |
98 |
This projects contains Jackson extension component for reading and writing XML encoded data. |
99 |
|
100 |
Further, the goal is to emulate how JAXB data-binding works with "Code-first" approach (that is, no support is added for "Schema-first" approach). Support for JAXB annotations is provided by JAXB annotation module; this module provides low-level abstractions (JsonParser, JsonGenerator, JsonFactory) as well as small number of higher level overrides needed to make data-binding work. |
101 |
</longdescription> |
102 |
</pkgmetadata> |
103 |
|
104 |
|
105 |
|
106 |
1.1 dev-java/jackson-dataformat-xml/ChangeLog |
107 |
|
108 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jackson-dataformat-xml/ChangeLog?rev=1.1&view=markup |
109 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jackson-dataformat-xml/ChangeLog?rev=1.1&content-type=text/plain |
110 |
|
111 |
Index: ChangeLog |
112 |
=================================================================== |
113 |
# ChangeLog for dev-java/jackson-dataformat-xml |
114 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
115 |
# $Header: /var/cvsroot/gentoo-x86/dev-java/jackson-dataformat-xml/ChangeLog,v 1.1 2015/03/05 23:23:27 chewi Exp $ |
116 |
|
117 |
*jackson-dataformat-xml-2.5.1 (05 Mar 2015) |
118 |
|
119 |
05 Mar 2015; James Le Cuirot <chewi@g.o> |
120 |
+jackson-dataformat-xml-2.5.1.ebuild, +metadata.xml: |
121 |
New package required by Log4j 2. It would be optional but we cannot yet skip |
122 |
dependencies at build time. Unfortunately the tests are quite explosive. A new |
123 |
Woodstox is possibly needed? |