1 |
commit: 423793ac6cf485acbb1bac97b0b0ed43a54800ad |
2 |
Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net> |
3 |
AuthorDate: Fri Apr 9 17:41:56 2021 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 10 11:18:46 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=423793ac |
7 |
|
8 |
dev-java/slf4j-simple: remove test restiction |
9 |
|
10 |
Copy MultithreadedInitializationTest.java |
11 |
from slf4j-api |
12 |
|
13 |
Package-Manager: Portage-3.0.17, Repoman-3.0.2 |
14 |
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net> |
15 |
Closes: https://github.com/gentoo/gentoo/pull/20305 |
16 |
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> |
17 |
|
18 |
.../slf4j-simple/slf4j-simple-1.7.30-r1.ebuild | 74 ++++++++++++++++++++++ |
19 |
1 file changed, 74 insertions(+) |
20 |
|
21 |
diff --git a/dev-java/slf4j-simple/slf4j-simple-1.7.30-r1.ebuild b/dev-java/slf4j-simple/slf4j-simple-1.7.30-r1.ebuild |
22 |
new file mode 100644 |
23 |
index 00000000000..3313f9adff1 |
24 |
--- /dev/null |
25 |
+++ b/dev-java/slf4j-simple/slf4j-simple-1.7.30-r1.ebuild |
26 |
@@ -0,0 +1,74 @@ |
27 |
+# Copyright 1999-2021 Gentoo Authors |
28 |
+# Distributed under the terms of the GNU General Public License v2 |
29 |
+ |
30 |
+# Skeleton command: |
31 |
+# java-ebuilder --generate-ebuild --workdir . --pom slf4j-v_1.7.30/slf4j-simple/pom.xml --download-uri https://github.com/qos-ch/slf4j/archive/refs/tags/v_1.7.30.tar.gz --slot 0 --keywords "~amd64 ~arm64 ~ppc64 ~x86" --ebuild slf4j-simple-1.7.30.ebuild |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+JAVA_PKG_IUSE="doc source test" |
36 |
+MAVEN_ID="org.slf4j:slf4j-simple:1.7.30" |
37 |
+JAVA_TESTING_FRAMEWORKS="junit-4" |
38 |
+ |
39 |
+inherit java-pkg-2 java-pkg-simple |
40 |
+ |
41 |
+DESCRIPTION="SLF4J Simple binding" |
42 |
+HOMEPAGE="https://www.slf4j.org" |
43 |
+SRC_URI="https://github.com/qos-ch/slf4j/archive/refs/tags/v_${PV}.tar.gz -> slf4j-${PV}-sources.tar.gz" |
44 |
+ |
45 |
+LICENSE="MIT" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" |
48 |
+ |
49 |
+# Common dependencies |
50 |
+# POM: slf4j-v_${PV}/${PN}/pom.xml |
51 |
+# org.slf4j:slf4j-api:1.7.30 -> >=dev-java/slf4j-api-1.7.30:0 |
52 |
+ |
53 |
+CDEPEND=" |
54 |
+ >=dev-java/slf4j-api-1.7.30:0 |
55 |
+" |
56 |
+ |
57 |
+# Compile dependencies |
58 |
+# POM: slf4j-v_${PV}/${PN}/pom.xml |
59 |
+# test? junit:junit:4.12 -> >=dev-java/junit-4.12:4 |
60 |
+# test? org.slf4j:slf4j-api:1.7.30 -> >=dev-java/slf4j-api-1.7.30:0 |
61 |
+ |
62 |
+DEPEND=" |
63 |
+ >=virtual/jdk-1.8:* |
64 |
+ ${CDEPEND} |
65 |
+ test? ( |
66 |
+ >=dev-java/slf4j-api-1.7.30:0 |
67 |
+ ) |
68 |
+" |
69 |
+ |
70 |
+RDEPEND=" |
71 |
+ >=virtual/jre-1.8:* |
72 |
+ ${CDEPEND} |
73 |
+" |
74 |
+ |
75 |
+S="${WORKDIR}/slf4j-v_${PV}/${PN}" |
76 |
+ |
77 |
+JAVA_GENTOO_CLASSPATH="slf4j-api" |
78 |
+JAVA_SRC_DIR="src/main/java" |
79 |
+JAVA_RESOURCE_DIRS="src/main/resources" |
80 |
+ |
81 |
+JAVA_TEST_GENTOO_CLASSPATH="junit-4,slf4j-api" |
82 |
+JAVA_TEST_SRC_DIR="src/test/java" |
83 |
+JAVA_TEST_RESOURCE_DIRS="src/test/resources" |
84 |
+ |
85 |
+JAVA_TEST_EXCLUDES=( |
86 |
+ # java.lang.InstantiationException |
87 |
+ "org.slf4j.helpers.MultithreadedInitializationTest" |
88 |
+ |
89 |
+ # java.lang.AssertionError: 1284 < 1263+16 |
90 |
+ "org.slf4j.helpers.SimpleLoggerMultithreadedInitializationTest" |
91 |
+) |
92 |
+ |
93 |
+src_prepare() { |
94 |
+ default |
95 |
+ java-pkg_clean |
96 |
+ cp "../slf4j-api/src/test/java/org/slf4j/helpers/MultithreadedInitializationTest.java" \ |
97 |
+ "${JAVA_TEST_SRC_DIR}/org/slf4j/helpers/" || die |
98 |
+ cp "../slf4j-api/src/test/java/org/slf4j/LoggerAccessingThread.java" \ |
99 |
+ "${JAVA_TEST_SRC_DIR}/org/slf4j/" || die |
100 |
+} |