1 |
chewi 15/03/05 23:29:13 |
2 |
|
3 |
Added: jackson-dataformat-yaml-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. |
8 |
|
9 |
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 9C6D7DE4) |
10 |
|
11 |
Revision Changes Path |
12 |
1.1 dev-java/jackson-dataformat-yaml/jackson-dataformat-yaml-2.5.1.ebuild |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jackson-dataformat-yaml/jackson-dataformat-yaml-2.5.1.ebuild?rev=1.1&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jackson-dataformat-yaml/jackson-dataformat-yaml-2.5.1.ebuild?rev=1.1&content-type=text/plain |
16 |
|
17 |
Index: jackson-dataformat-yaml-2.5.1.ebuild |
18 |
=================================================================== |
19 |
# Copyright 1999-2015 Gentoo Foundation |
20 |
# Distributed under the terms of the GNU General Public License v2 |
21 |
# $Header: /var/cvsroot/gentoo-x86/dev-java/jackson-dataformat-yaml/jackson-dataformat-yaml-2.5.1.ebuild,v 1.1 2015/03/05 23:29:13 chewi Exp $ |
22 |
|
23 |
EAPI="5" |
24 |
|
25 |
JAVA_PKG_IUSE="doc source" |
26 |
|
27 |
inherit java-pkg-2 java-pkg-simple |
28 |
|
29 |
DESCRIPTION="YAML data format extension for Jackson" |
30 |
HOMEPAGE="https://github.com/FasterXML/jackson-dataformat-yaml" |
31 |
SRC_URI="https://github.com/FasterXML/${PN}/archive/${P}.tar.gz" |
32 |
|
33 |
LICENSE="Apache-2.0" |
34 |
SLOT="2" |
35 |
KEYWORDS="~amd64" |
36 |
IUSE="test" |
37 |
|
38 |
CDEPEND="~dev-java/jackson-${PV}:${SLOT} |
39 |
~dev-java/jackson-databind-${PV}:${SLOT} |
40 |
dev-java/snakeyaml:0" |
41 |
RDEPEND=">=virtual/jre-1.5 |
42 |
${CDEPEND}" |
43 |
DEPEND=">=virtual/jdk-1.5 |
44 |
${CDEPEND} |
45 |
test? ( |
46 |
~dev-java/jackson-annotations-${PV}:${SLOT} |
47 |
dev-java/junit:4 |
48 |
)" |
49 |
|
50 |
S="${WORKDIR}/${PN}-${P}/src" |
51 |
JAVA_SRC_DIR="main/java" |
52 |
JAVA_GENTOO_CLASSPATH="jackson-${SLOT},jackson-databind-${SLOT},snakeyaml" |
53 |
|
54 |
java_prepare() { |
55 |
sed -e 's:@package@:com.fasterxml.jackson.dataformat.yaml:g' \ |
56 |
-e "s:@projectversion@:${PV}:g" \ |
57 |
-e 's:@projectgroupid@:com.fasterxml.jackson.dataformat:g' \ |
58 |
-e 's:@projectartifactid@:jackson-dataformat-yaml:g' \ |
59 |
"${S}/main/java/com/fasterxml/jackson/dataformat/yaml/PackageVersion.java.in" \ |
60 |
> "${S}/main/java/com/fasterxml/jackson/dataformat/yaml/PackageVersion.java" || die |
61 |
|
62 |
# Requires OPS4J Pax Exam, which isn't packaged yet. |
63 |
rm "${S}/test/java/com/fasterxml/jackson/dataformat/yaml/failsafe/OSGiIT.java" || die |
64 |
} |
65 |
|
66 |
src_install() { |
67 |
java-pkg-simple_src_install |
68 |
dodoc ../README.md ../release-notes/{CREDITS,VERSION} |
69 |
} |
70 |
|
71 |
src_test() { |
72 |
cd test/java || die |
73 |
|
74 |
local CP=".:../resources:${S}/${PN}.jar:$(java-pkg_getjars jackson-annotations-${SLOT},junit-4,${JAVA_GENTOO_CLASSPATH})" |
75 |
local TESTS=$(find * -name "*Test*.java" ! -name "*TestBase*" ! -path "*/failing/*") |
76 |
TESTS="${TESTS//.java}" |
77 |
TESTS="${TESTS//\//.}" |
78 |
|
79 |
ejavac -cp "${CP}" -d . $(find * -name "*.java") |
80 |
ejunit4 -classpath "${CP}" ${TESTS} |
81 |
} |
82 |
|
83 |
|
84 |
|
85 |
1.1 dev-java/jackson-dataformat-yaml/metadata.xml |
86 |
|
87 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jackson-dataformat-yaml/metadata.xml?rev=1.1&view=markup |
88 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jackson-dataformat-yaml/metadata.xml?rev=1.1&content-type=text/plain |
89 |
|
90 |
Index: metadata.xml |
91 |
=================================================================== |
92 |
<?xml version="1.0" encoding="UTF-8"?> |
93 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
94 |
<pkgmetadata> |
95 |
<herd>java</herd> |
96 |
<longdescription>This project contains Jackson extension component for reading and writing YAML encoded data. SnakeYAML library is used for low-level YAML parsing. This project adds necessary abstractions on top to make things work with other Jackson functionality.</longdescription> |
97 |
</pkgmetadata> |
98 |
|
99 |
|
100 |
|
101 |
1.1 dev-java/jackson-dataformat-yaml/ChangeLog |
102 |
|
103 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jackson-dataformat-yaml/ChangeLog?rev=1.1&view=markup |
104 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/jackson-dataformat-yaml/ChangeLog?rev=1.1&content-type=text/plain |
105 |
|
106 |
Index: ChangeLog |
107 |
=================================================================== |
108 |
# ChangeLog for dev-java/jackson-dataformat-yaml |
109 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
110 |
# $Header: /var/cvsroot/gentoo-x86/dev-java/jackson-dataformat-yaml/ChangeLog,v 1.1 2015/03/05 23:29:13 chewi Exp $ |
111 |
|
112 |
*jackson-dataformat-yaml-2.5.1 (05 Mar 2015) |
113 |
|
114 |
05 Mar 2015; James Le Cuirot <chewi@g.o> |
115 |
+jackson-dataformat-yaml-2.5.1.ebuild, +metadata.xml: |
116 |
New package required by Log4j 2. It would be optional but we cannot yet skip |
117 |
dependencies at build time. |