summaryrefslogtreecommitdiff
path: root/dev-java/snakeyaml
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-07-28 15:04:41 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-07-28 15:04:41 +0100
commite74494cd71c90a42f7cf78ec655c9c883a26c42a (patch)
tree06c91f279ebdf8ba4dcdab90385d7fb04a4d0e27 /dev-java/snakeyaml
parent35e8572a0d6310d3eac4be1600ef2de6cb6881ab (diff)
gentoo auto-resync : 28:07:2022 - 15:04:40
Diffstat (limited to 'dev-java/snakeyaml')
-rw-r--r--dev-java/snakeyaml/Manifest1
-rw-r--r--dev-java/snakeyaml/snakeyaml-1.30-r1.ebuild91
2 files changed, 92 insertions, 0 deletions
diff --git a/dev-java/snakeyaml/Manifest b/dev-java/snakeyaml/Manifest
index 5852eead8646..e897acf810ac 100644
--- a/dev-java/snakeyaml/Manifest
+++ b/dev-java/snakeyaml/Manifest
@@ -1,4 +1,5 @@
AUX snakeyaml-1.30-fix-test-check.patch 664 BLAKE2B add2f85384f819b30e9ee7af02b73b12ba406c24e63eb7408d9eadcc6f11d532dc635f5d6a3aa73bd09a6975941bb56b69a389c2c1b3edd37dbedcffd83a8bc2 SHA512 5f395fa1f79a9801de11a5e81244799511c88e689bf480e6099357dfbd6666ee8f19bb204adac47c1f6014e92f65476e5f0031b73268f8279cf6253cf6a387b1
DIST snakeyaml-1.30.tar.gz 402525 BLAKE2B 1d130ce8c5313b302463df11493a0fa845faf3921cd0b0a47f9db8d31f568f266f14a1543e33d77bf9e1b86c462ae4bba8e140339a6245341bdc05d76a1ccf07 SHA512 9ae09163d933e0899cf48ba0c80b5f01423847f1c18306859fa4c4002f0c909611df7096d494e04bb0f8f7d2bc5d1eb4f656e2f322941ddef642b0c23a351908
+EBUILD snakeyaml-1.30-r1.ebuild 3105 BLAKE2B 8ae609514769ab73f7fc18166eac00916e04806273b9fb94f7e72f15137c60511953ef4b56cd6ce79a55020355820346ce28b8781547e0fb0121628ebd00d312 SHA512 5b57b2948c1aa449bf9e360def0fe2ff351511bd6282d7f866a947e57995728b18692c3a32f90f16d92a32e16760e28e80d1b74cdc55f324db6cd742698c939f
EBUILD snakeyaml-1.30.ebuild 3143 BLAKE2B 3168587833152ded025e595d11391ada4fd9ffbca65429b3d59c23034103489190e02a56888372143ac32788c63ce39664c626f2855fd0603c0bdc6d5fce91bb SHA512 89a163deec9c2541d8358400f25d9b6793c2f2f150f4fb5cd7fd0aa90bba57fdb3fb4e359c552ba5c10ffb1d7e59719ff5a99496438b9e4b81dc1410734ff796
MISC metadata.xml 548 BLAKE2B b9d917044a58addef7e75a2714a1a2f70c6ac4db0b30469b93c034b5aca8cd834652c5446b42c99e6785c222667c523b6325341e8f35be342622ad1486411ba6 SHA512 bfb8134a7351f7d0fe4a6433a4655ad8baa207641cb9939591209d05c3caf2d92593891b4b2dced236bb2186d3e410c54ba28682251c5d5f1d5d590e4e94ee61
diff --git a/dev-java/snakeyaml/snakeyaml-1.30-r1.ebuild b/dev-java/snakeyaml/snakeyaml-1.30-r1.ebuild
new file mode 100644
index 000000000000..b61ad5b51877
--- /dev/null
+++ b/dev-java/snakeyaml/snakeyaml-1.30-r1.ebuild
@@ -0,0 +1,91 @@
+# 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:*
+"
+
+# https://bitbucket.org/snakeyaml/snakeyaml/pull-requests/7
+PATCHES=( "${FILESDIR}/snakeyaml-1.30-fix-test-check.patch" )
+DOCS=( README.md )
+
+S="${WORKDIR}/snakeyaml-snakeyaml-49227c24d741/"
+
+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_prepare() {
+ default
+ java-utils-2_src_prepare
+}
+
+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
+}