1 |
commit: d03832c00aee6e88e047b884c3749e2385b650f6 |
2 |
Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net> |
3 |
AuthorDate: Wed Apr 6 11:34:45 2022 +0000 |
4 |
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 27 08:57:14 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d03832c0 |
7 |
|
8 |
dev-java/xmlgraphics-commons: enable tests |
9 |
|
10 |
Bug: https://bugs.gentoo.org/832058 |
11 |
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/24989 |
13 |
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> |
14 |
|
15 |
dev-java/xmlgraphics-commons/metadata.xml | 11 ++-- |
16 |
.../xmlgraphics-commons-2.7-r1.ebuild | 70 ++++++++++++++++++++++ |
17 |
2 files changed, 77 insertions(+), 4 deletions(-) |
18 |
|
19 |
diff --git a/dev-java/xmlgraphics-commons/metadata.xml b/dev-java/xmlgraphics-commons/metadata.xml |
20 |
index 6021501589e0..4dcc12913cbb 100644 |
21 |
--- a/dev-java/xmlgraphics-commons/metadata.xml |
22 |
+++ b/dev-java/xmlgraphics-commons/metadata.xml |
23 |
@@ -1,8 +1,11 @@ |
24 |
<?xml version="1.0" encoding="UTF-8"?> |
25 |
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
26 |
<pkgmetadata> |
27 |
-<maintainer type="project"> |
28 |
- <email>java@g.o</email> |
29 |
- <name>Java</name> |
30 |
-</maintainer> |
31 |
+ <maintainer type="project"> |
32 |
+ <email>java@g.o</email> |
33 |
+ <name>Java</name> |
34 |
+ </maintainer> |
35 |
+ <upstream> |
36 |
+ <remote-id type="github">apache/xmlgraphics-commons</remote-id> |
37 |
+ </upstream> |
38 |
</pkgmetadata> |
39 |
|
40 |
diff --git a/dev-java/xmlgraphics-commons/xmlgraphics-commons-2.7-r1.ebuild b/dev-java/xmlgraphics-commons/xmlgraphics-commons-2.7-r1.ebuild |
41 |
new file mode 100644 |
42 |
index 000000000000..ad42da6ed305 |
43 |
--- /dev/null |
44 |
+++ b/dev-java/xmlgraphics-commons/xmlgraphics-commons-2.7-r1.ebuild |
45 |
@@ -0,0 +1,70 @@ |
46 |
+# Copyright 1999-2022 Gentoo Authors |
47 |
+# Distributed under the terms of the GNU General Public License v2 |
48 |
+ |
49 |
+# Skeleton command: |
50 |
+# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri mirror://apache/xmlgraphics/commons/source/2.7-src.tar.gz --slot 2 --keywords "~amd64 ~arm64 ~ppc64 ~x86" --ebuild xmlgraphics-commons-2.7.ebuild |
51 |
+ |
52 |
+EAPI=8 |
53 |
+ |
54 |
+JAVA_PKG_IUSE="doc source test" |
55 |
+MAVEN_ID="org.apache.xmlgraphics:xmlgraphics-commons:2.7" |
56 |
+JAVA_TESTING_FRAMEWORKS="junit-4" |
57 |
+ |
58 |
+inherit java-pkg-2 java-pkg-simple |
59 |
+ |
60 |
+DESCRIPTION="XML Graphics Commons" |
61 |
+HOMEPAGE="https://xmlgraphics.apache.org/commons/" |
62 |
+SRC_URI="mirror://apache/xmlgraphics/commons/source/${P}-src.tar.gz" |
63 |
+ |
64 |
+LICENSE="Apache-2.0" |
65 |
+SLOT="2" |
66 |
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" |
67 |
+ |
68 |
+# Common dependencies |
69 |
+# POM: pom.xml |
70 |
+# commons-io:commons-io:1.3.2 -> >=dev-java/commons-io-2.11.0:1 |
71 |
+# commons-logging:commons-logging:1.2 -> >=dev-java/commons-logging-1.2:0 |
72 |
+ |
73 |
+CP_DEPEND=" |
74 |
+ dev-java/commons-io:1 |
75 |
+ dev-java/commons-logging:0 |
76 |
+" |
77 |
+ |
78 |
+# Compile dependencies |
79 |
+# POM: pom.xml |
80 |
+# test? junit:junit:4.11 -> >=dev-java/junit-4.13.2:4 |
81 |
+# test? org.mockito:mockito-core:2.28.2 -> !!!suitable-mavenVersion-not-found!!! |
82 |
+# test? xml-resolver:xml-resolver:1.2 -> >=dev-java/xml-commons-resolver-1.2:0 |
83 |
+ |
84 |
+DEPEND="${CP_DEPEND} |
85 |
+ >=virtual/jdk-1.8:* |
86 |
+ test? ( |
87 |
+ dev-java/mockito:4 |
88 |
+ dev-java/xml-commons-resolver:0 |
89 |
+ )" |
90 |
+ |
91 |
+RDEPEND="${CP_DEPEND} |
92 |
+ >=virtual/jre-1.8:*" |
93 |
+ |
94 |
+S="${WORKDIR}/${P}" |
95 |
+ |
96 |
+JAVA_SRC_DIR="src/main/java" |
97 |
+JAVA_RESOURCE_DIRS="src/main/resources" |
98 |
+ |
99 |
+JAVA_TEST_GENTOO_CLASSPATH="junit-4,mockito-4,xml-commons-resolver" |
100 |
+JAVA_TEST_SRC_DIR="src/test/java" |
101 |
+JAVA_TEST_RESOURCE_DIRS="src/test/resources" |
102 |
+ |
103 |
+# There are test failures, bug #832058 |
104 |
+JAVA_TEST_EXCLUDES=( |
105 |
+ "org.apache.xmlgraphics.image.codec.tiff.TIFFImageEncoderTestCase" |
106 |
+ "org.apache.xmlgraphics.image.loader.impl.ImageLoaderImageIOTestCase" |
107 |
+ "org.apache.xmlgraphics.io.XmlSourceUtilTestCase" |
108 |
+ "org.apache.xmlgraphics.ps.dsc.ListenerTestCase" |
109 |
+ "org.apache.xmlgraphics.xmp.XMPParserTestCase" |
110 |
+) |
111 |
+ |
112 |
+src_install() { |
113 |
+ java-pkg-simple_src_install |
114 |
+ einstalldocs # https://bugs.gentoo.org/789582 |
115 |
+} |