1 |
commit: 3f221c72f1b42e3d482a4fdfaa3705c5f6f1015c |
2 |
Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net> |
3 |
AuthorDate: Mon Jun 20 08:23:02 2022 +0000 |
4 |
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 29 09:19:18 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f221c72 |
7 |
|
8 |
dev-java/reflections: lift to >=virtual/jdk-11:* |
9 |
|
10 |
Bug: https://bugs.gentoo.org/853136 |
11 |
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/25993 |
13 |
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> |
14 |
|
15 |
dev-java/reflections/reflections-0.9.12-r3.ebuild | 99 +++++++++++++++++++++++ |
16 |
1 file changed, 99 insertions(+) |
17 |
|
18 |
diff --git a/dev-java/reflections/reflections-0.9.12-r3.ebuild b/dev-java/reflections/reflections-0.9.12-r3.ebuild |
19 |
new file mode 100644 |
20 |
index 000000000000..bcec9edaeaee |
21 |
--- /dev/null |
22 |
+++ b/dev-java/reflections/reflections-0.9.12-r3.ebuild |
23 |
@@ -0,0 +1,99 @@ |
24 |
+# Copyright 1999-2022 Gentoo Authors |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+# Skeleton command: |
28 |
+# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri https://github.com/ronmamo/reflections/archive/0.9.12.tar.gz --slot 0 --keywords "~amd64 ~arm ~arm64 ~ppc64 ~x86" --ebuild reflections-0.9.12.ebuild |
29 |
+ |
30 |
+EAPI=8 |
31 |
+ |
32 |
+JAVA_PKG_IUSE="doc source test" |
33 |
+MAVEN_ID="org.reflections:reflections:0.9.12" |
34 |
+JAVA_TESTING_FRAMEWORKS="junit-4" |
35 |
+ |
36 |
+inherit java-pkg-2 java-pkg-simple |
37 |
+ |
38 |
+DESCRIPTION="Reflections - a Java runtime metadata analysis" |
39 |
+HOMEPAGE="https://github.com/ronmamo/reflections" |
40 |
+SRC_URI="https://github.com/ronmamo/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="WTFPL-2 BSD-2" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
45 |
+ |
46 |
+# Common dependencies |
47 |
+# POM: pom.xml |
48 |
+# com.google.code.gson:gson:2.8.6 -> >=dev-java/gson-2.8.8:2.6 |
49 |
+# org.dom4j:dom4j:2.1.1 -> >=dev-java/dom4j-2.1.3:1 |
50 |
+# org.javassist:javassist:3.26.0-GA -> !!!suitable-mavenVersion-not-found!!! |
51 |
+# org.slf4j:slf4j-api:1.7.30 -> >=dev-java/slf4j-api-1.7.30:0 |
52 |
+# org.slf4j:slf4j-simple:1.7.24 -> >=dev-java/slf4j-simple-1.7.30:0 |
53 |
+ |
54 |
+CP_DEPEND=" |
55 |
+ dev-java/dom4j:1 |
56 |
+ dev-java/gson:2.9 |
57 |
+ dev-java/javassist:3 |
58 |
+ dev-java/slf4j-api:0 |
59 |
+ dev-java/slf4j-simple:0 |
60 |
+" |
61 |
+ |
62 |
+# Compile dependencies |
63 |
+# POM: pom.xml |
64 |
+# javax.servlet:servlet-api:2.5 -> java-virtuals/servlet-api:2.5 |
65 |
+# POM: pom.xml |
66 |
+# test? junit:junit:4.13 -> >=dev-java/junit-4.13.2:4 |
67 |
+ |
68 |
+DEPEND=" |
69 |
+ dev-java/tomcat-servlet-api:2.5 |
70 |
+ >=virtual/jdk-11:* |
71 |
+ ${CP_DEPEND} |
72 |
+" |
73 |
+ |
74 |
+RDEPEND=" |
75 |
+ >=virtual/jre-1.8:* |
76 |
+ ${CP_DEPEND}" |
77 |
+ |
78 |
+S="${WORKDIR}/${P}" |
79 |
+ |
80 |
+JAVA_CLASSPATH_EXTRA="tomcat-servlet-api-2.5" |
81 |
+JAVA_SRC_DIR=( "src/main/java" ) |
82 |
+ |
83 |
+JAVA_TEST_GENTOO_CLASSPATH="junit-4" |
84 |
+JAVA_TEST_SRC_DIR=( "src/test/java" ) |
85 |
+JAVA_TEST_RESOURCE_DIRS=( "src/test/resources" ) |
86 |
+JAVA_TEST_EXCLUDES=( |
87 |
+ # Upstream does not run this test |
88 |
+ "org.reflections.TestModel" |
89 |
+ # 1) testMethodParameterNames(org.reflections.ReflectionsCollectTest) |
90 |
+ # org.reflections.ReflectionsException: Scanner MethodParameterNamesScanner was not configured |
91 |
+ # at org.reflections.Store.get(Store.java:39) |
92 |
+ # at org.reflections.Store.get(Store.java:61) |
93 |
+ # at org.reflections.Store.get(Store.java:46) |
94 |
+ # at org.reflections.Reflections.getMethodParamNames(Reflections.java:579) |
95 |
+ # at org.reflections.ReflectionsTest.testMethodParameterNames(ReflectionsTest.java:239) |
96 |
+ org.reflections.ReflectionsCollectTest |
97 |
+ # 2) testMethodParameterNames(org.reflections.ReflectionsParallelTest) |
98 |
+ # org.reflections.ReflectionsException: Scanner MethodParameterNamesScanner was not configured |
99 |
+ # at org.reflections.Store.get(Store.java:39) |
100 |
+ # at org.reflections.Store.get(Store.java:61) |
101 |
+ # at org.reflections.Store.get(Store.java:46) |
102 |
+ # at org.reflections.Reflections.getMethodParamNames(Reflections.java:579) |
103 |
+ # at org.reflections.ReflectionsTest.testMethodParameterNames(ReflectionsTest.java:239) |
104 |
+ org.reflections.ReflectionsParallelTest |
105 |
+ # 3) testMethodParameterNames(org.reflections.ReflectionsTest) |
106 |
+ # org.reflections.ReflectionsException: Scanner MethodParameterNamesScanner was not configured |
107 |
+ # at org.reflections.Store.get(Store.java:39) |
108 |
+ # at org.reflections.Store.get(Store.java:61) |
109 |
+ # at org.reflections.Store.get(Store.java:46) |
110 |
+ # at org.reflections.Reflections.getMethodParamNames(Reflections.java:579) |
111 |
+ # at org.reflections.ReflectionsTest.testMethodParameterNames(ReflectionsTest.java:239) |
112 |
+ org.reflections.ReflectionsTest |
113 |
+ # |
114 |
+ # https://github.com/ronmamo/reflections/issues/277#issuecomment-927152981 |
115 |
+ # scanner was not configured exception - this is a known issue in 0.9.12, a simple workaround is to |
116 |
+ # check if the getStore() contains index for the scanner before querying. next version 0.10 fixes this. |
117 |
+) |
118 |
+ |
119 |
+src_install() { |
120 |
+ default # https://bugs.gentoo.org/789582 |
121 |
+ java-pkg-simple_src_install |
122 |
+} |