diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2022-03-18 22:50:42 +0100 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2022-03-25 09:32:23 +0100 |
commit | a77bfe0e1aea86bdb3c2b49eba2422a0f759f269 (patch) | |
tree | 6c1fda9c55c7bed74a4d759182a00f3bd5fd778a /dev-java/snakeyaml/snakeyaml-1.30.ebuild | |
parent | dev-java/jackson-module-jakarta-xmlbind: Bump to 2.13.2 (diff) | |
download | gentoo-a77bfe0e1aea86bdb3c2b49eba2422a0f759f269.tar.gz gentoo-a77bfe0e1aea86bdb3c2b49eba2422a0f759f269.tar.bz2 gentoo-a77bfe0e1aea86bdb3c2b49eba2422a0f759f269.zip |
dev-java/snakeyaml: Bump to 1.30
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'dev-java/snakeyaml/snakeyaml-1.30.ebuild')
-rw-r--r-- | dev-java/snakeyaml/snakeyaml-1.30.ebuild | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/dev-java/snakeyaml/snakeyaml-1.30.ebuild b/dev-java/snakeyaml/snakeyaml-1.30.ebuild new file mode 100644 index 000000000000..97e755428cc8 --- /dev/null +++ b/dev-java/snakeyaml/snakeyaml-1.30.ebuild @@ -0,0 +1,88 @@ +# 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.30.tar.gz --slot 0 --keywords "~amd64 ~arm ~arm64 ~ppc64 ~x86" --ebuild snakeyaml-1.30.ebuild + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="org.yaml:snakeyaml:1.30" +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.10:0 +# test? junit:junit:4.13.1 -> >=dev-java/junit-4.13.2:4 +# test? org.apache.velocity:velocity:1.6.2 -> !!!artifactId-not-found!!! + +DEPEND=" + >=virtual/jdk-1.8:* + test? ( + dev-java/velocity:0 + dev-java/joda-time:0 + ) +" + +RDEPEND=" + >=virtual/jre-1.8:* +" + +DOCS=( README.md ) + +S="${WORKDIR}/snakeyaml-snakeyaml-49227c24d741/" + +JAVA_SRC_DIR="src/main/java" + +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="" + + # There were 2 failures: + # 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 +} + +src_install() { + default # https://bugs.gentoo.org/789582 + java-pkg-simple_src_install +} |