dev-java/jackson-dataformat-yaml: add 2.20.0

Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Part-of: https://github.com/gentoo/gentoo/pull/44063
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
This commit is contained in:
Volkmar W. Pogatzki
2025-05-20 08:09:15 +02:00
committed by Miroslav Šulc
parent a0038366ca
commit 613bdca38a
2 changed files with 53 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST jackson-dataformats-text-2.13.4.tar.gz 3530892 BLAKE2B 3cbfcbbd33aeac67476caa453b77c19a1da88a9fb9482360bf427af3f41d689a04fc1ecb28d4424c5bfd7436979f1b03c215ca88a0064338f53dfd169f288562 SHA512 792f416c7cabd639b42bd93205e55328ace53c093e59d57eeaedc27a61358527515031c70dd503702471a13237f6389ca118e453da0ab002e20a531885d58a11
DIST jackson-dataformats-text-2.20.0.tar.gz 4733336 BLAKE2B 1bc69498e41bebe85b8df257410cc83100464772717df6180d4cecb6a29e1d82804e231a5257115a09bd50f9c83c57733f663323f9e0bc093cfadbde80bc554c SHA512 64e220406fff60f336712b05e6611fed6a34ca9b87c7989f6ed88232e71b5c80b70373e94066161ef1857b411ddc0089325d43ec45df2a11cbb72997218871d8

View File

@@ -0,0 +1,52 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
JAVA_PKG_IUSE="doc source test"
JAVA_TESTING_FRAMEWORKS="junit-jupiter"
inherit java-pkg-2 java-pkg-simple junit5
DESCRIPTION="Support for reading and writing YAML-encoded data via Jackson abstractions"
HOMEPAGE="https://github.com/FasterXML/jackson-dataformats-text"
SRC_URI="https://github.com/FasterXML/jackson-dataformats-text/archive/jackson-dataformats-text-${PV}.tar.gz"
S="${WORKDIR}/jackson-dataformats-text-jackson-dataformats-text-${PV}/yaml"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="
~dev-java/jackson-annotations-$(ver_cut 1-2):0
~dev-java/jackson-core-${PV}:0
~dev-java/jackson-databind-${PV}:0
>=dev-java/snakeyaml-2.5:0
>=virtual/jdk-11:*
test? ( dev-java/fastdoubleparser:0 )
"
RDEPEND="
>=virtual/jre-1.8:*
"
DOCS=( README.md release-notes/{CREDITS,VERSION} )
JAVA_CLASSPATH_EXTRA="jackson-annotations jackson-core jackson-databind snakeyaml"
JAVA_INTERMEDIATE_JAR_NAME="com.fasterxml.jackson.dataformat.yaml"
JAVA_RELEASE_SRC_DIRS=( ["9"]="src/moditect" )
JAVA_RESOURCE_DIRS="src/main/resources"
JAVA_SRC_DIR="src/main/java"
JAVA_TEST_GENTOO_CLASSPATH="fastdoubleparser junit-5"
JAVA_TEST_RESOURCE_DIRS="src/test/resources"
JAVA_TEST_SRC_DIR="src/test/java"
src_prepare() {
java-pkg-2_src_prepare
sed -e 's:@package@:com.fasterxml.jackson.dataformat.yaml:g' \
-e "s:@projectversion@:${PV}:g" \
-e 's:@projectgroupid@:com.fasterxml.jackson.dataformat:g' \
-e "s:@projectartifactid@:${PN}:g" \
"${JAVA_SRC_DIR}/com/fasterxml/jackson/dataformat/yaml/PackageVersion.java.in" \
> "${JAVA_SRC_DIR}/com/fasterxml/jackson/dataformat/yaml/PackageVersion.java" || die
}