diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2022-09-05 20:08:26 +0200 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2022-09-06 10:20:19 +0200 |
commit | 27e3c02d10c1eae2bf8489ed83252520868d3c9d (patch) | |
tree | 89a95f868cc102cfcaa8479a4a11b784ac717d3f /dev-java | |
parent | dev-java/joda-time: add 2.11.0 (diff) | |
download | gentoo-27e3c02d10c1eae2bf8489ed83252520868d3c9d.tar.gz gentoo-27e3c02d10c1eae2bf8489ed83252520868d3c9d.tar.bz2 gentoo-27e3c02d10c1eae2bf8489ed83252520868d3c9d.zip |
dev-java/snakeyaml: add 1.31
Bug: https://bugs.gentoo.org/868621
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/26872
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/snakeyaml/Manifest | 1 | ||||
-rw-r--r-- | dev-java/snakeyaml/snakeyaml-1.31.ebuild | 86 |
2 files changed, 87 insertions, 0 deletions
diff --git a/dev-java/snakeyaml/Manifest b/dev-java/snakeyaml/Manifest index 9fabc3068f10..6e4530b6dd01 100644 --- a/dev-java/snakeyaml/Manifest +++ b/dev-java/snakeyaml/Manifest @@ -1 +1,2 @@ DIST snakeyaml-1.30.tar.gz 402525 BLAKE2B 1d130ce8c5313b302463df11493a0fa845faf3921cd0b0a47f9db8d31f568f266f14a1543e33d77bf9e1b86c462ae4bba8e140339a6245341bdc05d76a1ccf07 SHA512 9ae09163d933e0899cf48ba0c80b5f01423847f1c18306859fa4c4002f0c909611df7096d494e04bb0f8f7d2bc5d1eb4f656e2f322941ddef642b0c23a351908 +DIST snakeyaml-1.31.tar.gz 407514 BLAKE2B 88d600aae5ba7dc5e1877a020082878e20fff7a30d9ff799d358e53e96da01bc8478bd5966c1058de186198d6ef10431480f8b2644d5fdb7e87dca462d9addee SHA512 e5c56cb4ad8ee68e41da63351f39be48ef9ceb50239580d1de1f7a331d66d92fd9aa9b26b4ba6dcb9db6c5acc682c7c2098b3468d32e73bdd2dbf4d07bcc5c55 diff --git a/dev-java/snakeyaml/snakeyaml-1.31.ebuild b/dev-java/snakeyaml/snakeyaml-1.31.ebuild new file mode 100644 index 000000000000..1b37722f47ac --- /dev/null +++ b/dev-java/snakeyaml/snakeyaml-1.31.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Skeleton command: +# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri https://bitbucket.org/snakeyaml/snakeyaml/get/snakeyaml-1.31.tar.gz --slot 0 --keywords "~amd64 ~arm ~arm64 ~ppc64 ~x86" --ebuild snakeyaml-1.31.ebuild + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="org.yaml:snakeyaml:1.31" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="YAML 1.1 parser and emitter for Java" +HOMEPAGE="https://bitbucket.org/snakeyaml/snakeyaml" +SRC_URI="https://bitbucket.org/${PN}/${PN}/get/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" + +# Compile dependencies +# POM: pom.xml +# test? joda-time:joda-time:2.10.1 -> >=dev-java/joda-time-2.10.14:0 +# test? junit:junit:4.13.1 -> >=dev-java/junit-4.13.2:4 +# test? org.apache.velocity:velocity-engine-core:2.3 -> >=dev-java/velocity-2.3:0 +# test? org.projectlombok:lombok:1.18.22 -> !!!groupId-not-found!!! + +DEPEND=" + >=virtual/jdk-1.8:* + test? ( + dev-java/velocity:0 + dev-java/joda-time:0 + ) +" + +RDEPEND=">=virtual/jre-1.8:*" + +S="${WORKDIR}/snakeyaml-snakeyaml-04401a88fa9b" + +JAVA_SRC_DIR="src/main/java" +JAVA_AUTOMATIC_MODULE_NAME="org.yaml.snakeyaml" + +JAVA_TEST_GENTOO_CLASSPATH="joda-time,junit-4,velocity" +JAVA_TEST_SRC_DIR="src/test/java" +JAVA_TEST_RESOURCE_DIRS="src/test/resources" + +src_test() { + export EnvironmentKey1="EnvironmentValue1" + export EnvironmentEmpty="" + + # Not packaged org.projectlombok:lombok - https://bugs.gentoo.org/868684 + rm src/test/java/org/yaml/snakeyaml/env/EnvLombokTest.java || die # Tests run: 1 + rm src/test/java/org/yaml/snakeyaml/issues/issue387/YamlExecuteProcessContextTest.java || die # Tests run: 1 + rm src/test/java/org/yaml/snakeyaml/env/ApplicationProperties.java || die # No tests + + # There were 2 failures: - https://bugs.gentoo.org/868681 + # 1) yamlClassInYAMLCL(org.yaml.snakeyaml.issues.issue318.ContextClassLoaderTest) + # java.lang.ClassNotFoundException: org.yaml.snakeyaml.Yaml + # at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:476) + # at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589) + # at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) + # at org.yaml.snakeyaml.issues.issue318.ContextClassLoaderTest.yamlClassInYAMLCL(ContextClassLoaderTest.java:127) + # 2) domainInDifferentConstructor(org.yaml.snakeyaml.issues.issue318.ContextClassLoaderTest) + # java.lang.ClassNotFoundException: org.yaml.snakeyaml.Yaml + # at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:476) + # at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589) + # at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) + # at org.yaml.snakeyaml.issues.issue318.ContextClassLoaderTest.domainInDifferentConstructor(ContextClassLoaderTest.java:135) + + pushd src/test/java || die + local JAVA_TEST_RUN_ONLY=$(find * -name "*Test.java" \ + ! -name "StressTest.java" \ + ! -name "ParallelTest.java" \ + ! -name "AbstractTest.java" \ + ! -name "PyImportTest.java" \ + ! -name "ContextClassLoaderTest.java" \ + ) + popd + + JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//.java}" + JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//\//.}" + + java-pkg-simple_src_test +} |