From: "Miroslav Šulc" <fordfrog@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/icu4j/
Date: Fri, 25 Oct 2024 08:10:10 +0000 (UTC) [thread overview]
Message-ID: <1729843802.7eda99ad838a3e351e0e8eedf2613ec8ef1f4a26.fordfrog@gentoo> (raw)
commit: 7eda99ad838a3e351e0e8eedf2613ec8ef1f4a26
Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Thu Oct 24 17:56:48 2024 +0000
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Fri Oct 25 08:10:02 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7eda99ad
dev-java/icu4j: add 76.1
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/38836/commits/9fc7fc60257eae6a1471e687462ecffa0c45de24
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
dev-java/icu4j/Manifest | 1 +
dev-java/icu4j/icu4j-76.1.ebuild | 205 +++++++++++++++++++++++++++++++++++++++
2 files changed, 206 insertions(+)
diff --git a/dev-java/icu4j/Manifest b/dev-java/icu4j/Manifest
index 95e67ccfac14..756db281af1b 100644
--- a/dev-java/icu4j/Manifest
+++ b/dev-java/icu4j/Manifest
@@ -1 +1,2 @@
DIST icu4j-75.1.tar.gz 65866291 BLAKE2B ae9a2a8f9bf6f38a08c46c4c3695fa4096c831beab1af5b654e86c9d681eb32be727930aeb1fd866fe9f93a96abe807fd353d108b5fe7a4d8203ee33cc16d971 SHA512 08f8fce8a4dd85706d9f7c57fd021ba15c403ab2da33d9a122d7cb441e0e148deebf245a661e4ef53a30bfa8b7622c63035946fd8966be3927af322275b87ca3
+DIST icu4j-76.1.tar.gz 67524828 BLAKE2B 949b6b69e2201ba5b4538766d25e72a8d98daeb8b1bf376966a6f410febee8c75c031ce9e52a0e4908d5d01f4d0120526ac84178603ee3968c1a399fc0a7959c SHA512 b92e05f3b5022992dfc7881542ed957dc9a1bc0b86f28fa6123dd4ab295e2a91686672193017acc0e0b659c37c944a1d2222e4881d7c65046a1df9dfaa925f12
diff --git a/dev-java/icu4j/icu4j-76.1.ebuild b/dev-java/icu4j/icu4j-76.1.ebuild
new file mode 100644
index 000000000000..f643f2f3ef08
--- /dev/null
+++ b/dev-java/icu4j/icu4j-76.1.ebuild
@@ -0,0 +1,205 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source test"
+MAVEN_PROVIDES="
+ com.ibm.icu:icu4j:${PV}
+ com.ibm.icu:icu4j-charset:${PV}
+ com.ibm.icu:icu4j-localespi:${PV}
+"
+JAVA_TESTING_FRAMEWORKS="junit-4"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="A set of Java libraries providing Unicode and Globalization support"
+HOMEPAGE="https://icu.unicode.org"
+SRC_URI="https://github.com/unicode-org/icu/archive/release-${PV/./-}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/icu-release-${PV/./-}/icu4j/main"
+
+LICENSE="icu"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64"
+
+DEPEND="
+ >=virtual/jdk-1.8:*
+ test? (
+ dev-java/gson:0
+ dev-java/junitparams:0
+ )
+"
+
+RDEPEND=">=virtual/jre-1.8:*"
+
+DOCS=( ../../{CONTRIBUTING,README,SECURITY}.md )
+HTML_DOCS=( ../{APIChangeReport,readme}.html )
+
+src_prepare() {
+ java-pkg-2_src_prepare
+ # There was 1 failure:
+ # 1) test(com.ibm.icu.dev.test.message2.CoreTest)
+ # java.io.FileNotFoundException: Test data directory does not exist:
+ # tried /var/tmp/portage/dev-java/icu4j-76.1/work/testdata/message2
+ # and /var/tmp/portage/dev-java/icu4j-76.1/work/testdata/message2
+ # at com.ibm.icu.dev.test.message2.TestUtils.getTestFile(TestUtils.java:212)
+ # at com.ibm.icu.dev.test.message2.TestUtils.jsonReader(TestUtils.java:194)
+ # at com.ibm.icu.dev.test.message2.CoreTest.test(CoreTest.java:52)
+ cp -r ../..{,/..}/testdata || die
+}
+
+src_compile() {
+ JAVA_GENTOO_CLASSPATH_EXTRA="icu4j.jar:icu4j-charset.jar:icu4j-localespi.jar"
+
+ einfo "Compiling icu4j.jar"
+ JAVA_AUTOMATIC_MODULE_NAME="com.ibm.icu"
+ JAVA_JAR_FILENAME="icu4j.jar"
+ JAVA_MAIN_CLASS="com.ibm.icu.util.VersionInfo"
+ JAVA_RESOURCE_DIRS=(
+ collate/src/main/resources
+ core/src/main/resources
+ currdata/src/main/resources
+ langdata/src/main/resources
+ regiondata/src/main/resources
+ translit/src/main/resources
+ )
+ JAVA_SRC_DIR=(
+ collate/src/main/java
+ core/src/main/java
+ currdata/src/main/java
+ langdata/src/main/java
+ regiondata/src/main/java
+ translit/src/main/java
+ )
+ java-pkg-simple_src_compile
+ rm -r target || die
+
+ einfo "Compiling icu4j-charset.jar"
+ JAVA_AUTOMATIC_MODULE_NAME="com.ibm.icu.charset"
+ JAVA_JAR_FILENAME="icu4j-charset.jar"
+ JAVA_MAIN_CLASS=""
+ JAVA_RESOURCE_DIRS=( charset/src/main/resources )
+ JAVA_SRC_DIR=( charset/src/main/java )
+ java-pkg-simple_src_compile
+ rm -r target || die
+
+ einfo "Compiling icu4j-localespi.jar"
+ JAVA_AUTOMATIC_MODULE_NAME="com.ibm.icu.localespi"
+ JAVA_JAR_FILENAME="icu4j-localespi.jar"
+ JAVA_RESOURCE_DIRS=( localespi/src/main/resources )
+ JAVA_SRC_DIR=( localespi/src/main/java )
+ java-pkg-simple_src_compile
+ rm -r target || die
+
+ einfo "Generating javadocs"
+ JAVADOC_SRC_DIRS=(
+ collate/src/main/java
+ core/src/main/java
+ currdata/src/main/java
+ langdata/src/main/java
+ regiondata/src/main/java
+ translit/src/main/java
+ charset/src/main/java
+ localespi/src/main/java
+ )
+ use doc && ejavadoc
+}
+
+src_test () {
+ # TZ needed for some tests in com/ibm/icu/dev/test/format/DateFormatTest
+ export LC_ALL="en_US.UTF-8" TZ="US/Pacific"
+
+ JAVA_TEST_EXTRA_ARGS="-Djava.locale.providers=CLDR,COMPAT,SPI"
+ JAVA_TEST_GENTOO_CLASSPATH="gson,junit-4,junitparams"
+
+ einfo "Compiling framework-tests.jar"
+ JAVA_AUTOMATIC_MODULE_NAME="com.ibm.icu.framework"
+ JAVA_JAR_FILENAME="framework-tests.jar"
+ JAVA_MAIN_CLASS="com.ibm.icu.dev.test.TestAll"
+ JAVA_RESOURCE_DIRS=( framework/src/test/resources )
+ JAVA_SRC_DIR=( framework/src/test/java )
+ java-pkg-simple_src_compile
+ JAVA_GENTOO_CLASSPATH_EXTRA+=":framework-tests.jar"
+
+ einfo "Testing core aka icu4j.jar"
+ JAVA_TEST_RESOURCE_DIRS="core/src/test/resources"
+ JAVA_TEST_SRC_DIR="core/src/test/java"
+ pushd "${JAVA_TEST_SRC_DIR}" || die
+ # exclude invalid tests, not run by "mvn test"
+ local JAVA_TEST_RUN_ONLY=$(find * \
+ -name "*Test*.java" \
+ ! -name "ChineseTestCase.java" \
+ ! -name "DataDrivenNumberFormatTestUtility.java" \
+ ! -name "*Helper.java" \
+ ! -name "ModuleTest.java" \
+ ! -name "*Sample.java" \
+ ! -name "TestCase.java" \
+ ! -name "*TestData*.java" \
+ ! -name "*TestFmwk.java" \
+ ! -name "TestMessages.java" \
+ ! -name "TestUtils.java" \
+ ! -name "DefaultTestProperties.java" \
+ ! -name "MF2Test.java" \
+ ! -name "TestBoilerplate.java" \
+ )
+ popd
+ JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//.java}"
+ JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//\//.}"
+ java-pkg-simple_src_test
+
+ einfo "Creating core-tests.jar"
+ jar cvf core-tests.jar -C target/test-classes . || die
+ JAVA_GENTOO_CLASSPATH_EXTRA+=":core-tests.jar"
+ JAVA_TEST_RUN_ONLY=""
+
+ einfo "Testing collate"
+ JAVA_TEST_RESOURCE_DIRS="collate/src/test/resources"
+ JAVA_TEST_SRC_DIR="collate/src/test/java"
+ java-pkg-simple_src_test
+
+ einfo "Testing translit"
+ JAVA_TEST_EXCLUDES=(
+ # Invalid test classes, No runnable methods
+ com.ibm.icu.dev.test.TestBoilerplate
+ com.ibm.icu.dev.test.translit.TestUtility
+ )
+ JAVA_TEST_RESOURCE_DIRS="translit/src/test/resources"
+ JAVA_TEST_SRC_DIR="translit/src/test/java"
+ java-pkg-simple_src_test
+
+ einfo "Testing charset"
+ JAVA_TEST_RESOURCE_DIRS=""
+ JAVA_TEST_SRC_DIR="charset/src/test/java"
+ java-pkg-simple_src_test
+
+ einfo "Testing common_tests"
+ # "mvn test" runs only 90 tests here, Gentoo runs 99 but 9 of them fail.
+ # coverage tests fail because test handlers for the parametrized tests
+ # are not defined so the tests are broken and cannot succeed
+ JAVA_TEST_EXCLUDES=( com.ibm.icu.dev.test.serializable.CoverageTest )
+ JAVA_TEST_RESOURCE_DIRS=""
+ JAVA_TEST_SRC_DIR="common_tests/src/test/java"
+ java-pkg-simple_src_test
+
+ einfo "Testing localespi"
+ JAVA_TEST_RESOURCE_DIRS=""
+ JAVA_TEST_SRC_DIR="localespi/src/test/java"
+ # Invalid test classes, No runnable methods
+ JAVA_TEST_EXCLUDES=( com.ibm.icu.dev.test.localespi.TestUtil )
+ # https://bugs.gentoo.org/827212, "mvn test" does not run it at all
+ local vm_version="$(java-config -g PROVIDES_VERSION)"
+ if [[ "${vm_version}" != "1.8" ]] ; then
+ java-pkg-simple_src_test
+ fi
+}
+
+src_install() {
+ JAVA_JAR_FILENAME="icu4j.jar"
+ java-pkg-simple_src_install
+ java-pkg_dojar "icu4j-charset.jar"
+ java-pkg_dojar "icu4j-localespi.jar"
+
+ if use source; then
+ java-pkg_dosrc */src/main/java/*
+ fi
+}
next reply other threads:[~2024-10-25 8:10 UTC|newest]
Thread overview: 56+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-25 8:10 Miroslav Šulc [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-10-26 7:23 [gentoo-commits] repo/gentoo:master commit in: dev-java/icu4j/ Miroslav Šulc
2024-05-26 8:47 Miroslav Šulc
2024-05-26 8:45 Miroslav Šulc
2024-05-17 6:56 Arthur Zamarin
2024-05-16 4:17 Arthur Zamarin
2024-05-16 4:17 Arthur Zamarin
2024-04-16 8:02 Miroslav Šulc
2024-01-19 12:44 Miroslav Šulc
2024-01-19 10:47 Sam James
2024-01-19 10:47 Sam James
2024-01-19 10:07 Sam James
2024-01-19 10:07 Sam James
2024-01-06 21:52 Miroslav Šulc
2024-01-06 8:16 Sam James
2024-01-06 8:11 Sam James
2024-01-06 8:11 Sam James
2023-12-20 9:12 Miroslav Šulc
2023-12-07 12:42 Miroslav Šulc
2023-10-28 8:23 Miroslav Šulc
2023-10-27 12:30 Sam James
2023-10-27 12:22 Sam James
2023-10-22 18:56 Miroslav Šulc
2023-09-27 6:58 Miroslav Šulc
2022-11-24 7:19 Miroslav Šulc
2022-11-23 14:12 Jakov Smolić
2022-11-21 6:24 Miroslav Šulc
2022-11-20 7:23 Sam James
2022-11-20 7:23 Sam James
2022-11-20 7:23 Sam James
2022-10-21 3:59 Miroslav Šulc
2022-10-04 4:31 Miroslav Šulc
2022-05-09 8:17 Miroslav Šulc
2022-05-09 8:01 Jakov Smolić
2022-05-09 8:01 Jakov Smolić
2022-05-09 7:33 Jakov Smolić
2022-05-09 7:33 Jakov Smolić
2022-04-09 5:11 Miroslav Šulc
2022-01-02 10:57 Miroslav Šulc
2021-12-22 18:47 Arthur Zamarin
2021-12-01 19:00 Sam James
2021-11-26 7:53 Miroslav Šulc
2021-11-25 4:14 Sam James
2021-11-25 4:14 Sam James
2021-11-25 4:14 Sam James
2021-11-25 4:14 Sam James
2021-11-23 7:50 Miroslav Šulc
2021-11-21 16:31 Miroslav Šulc
2021-11-11 9:07 Miroslav Šulc
2021-11-10 17:10 Miroslav Šulc
2020-07-20 1:10 Sam James
2017-07-13 18:32 Alexis Ballier
2016-11-13 15:52 Sebastian Pipping
2016-02-26 13:28 James Le Cuirot
2015-10-02 10:34 Patrice Clement
2015-08-28 21:34 Manuel Rüger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1729843802.7eda99ad838a3e351e0e8eedf2613ec8ef1f4a26.fordfrog@gentoo \
--to=fordfrog@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox