From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C24DD158090 for ; Wed, 11 May 2022 13:36:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D729CE087E; Wed, 11 May 2022 13:36:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B70BEE087E for ; Wed, 11 May 2022 13:36:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B6ECF34185E for ; Wed, 11 May 2022 13:36:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E65043B8 for ; Wed, 11 May 2022 13:36:31 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1652276177.908691da1cd5fc82983f37fce2541525aca48337.flow@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/gson/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-java/gson/Manifest dev-java/gson/gson-2.9.0.ebuild X-VCS-Directories: dev-java/gson/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: 908691da1cd5fc82983f37fce2541525aca48337 X-VCS-Branch: master Date: Wed, 11 May 2022 13:36:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 83173643-04d5-49a9-b6c9-eecade5d759d X-Archives-Hash: 260c44a8a7d736132ba5b6bbb68e7a6a commit: 908691da1cd5fc82983f37fce2541525aca48337 Author: Volkmar W. Pogatzki pogatzki net> AuthorDate: Mon May 9 10:57:14 2022 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Wed May 11 13:36:17 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=908691da dev-java/gson: add 2.9.0 Signed-off-by: Volkmar W. Pogatzki pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/25443 Signed-off-by: Florian Schmaus gentoo.org> dev-java/gson/Manifest | 1 + dev-java/gson/gson-2.9.0.ebuild | 63 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/dev-java/gson/Manifest b/dev-java/gson/Manifest index 9a396043ab0c..439250dc98ed 100644 --- a/dev-java/gson/Manifest +++ b/dev-java/gson/Manifest @@ -1 +1,2 @@ DIST gson-2.8.8-sources.tar.gz 393941 BLAKE2B ebdd1088a069eea58e5ea4e2eddea0d42064c53f7284778b1b7217c8bc7abeb7e14350e19d838af1d94f78c5c38aca6de0f37674b022f0e528ed65eef803c3f1 SHA512 f90ad679c99c5e9a6ee9e397e59ab1d7d94a9c82366902b808addc40ebbab101fdba7fc83e4666c4f35e52d8b127e6f901e65072a7de210496466074dcd043c5 +DIST gson-2.9.0.tar.gz 350309 BLAKE2B f17f7a7410744b14cb79c979b35c7f3c46a3d9e922722c41893b872013319a1bd06d81526e8380055aafa47524bfcc50e02629d1c5994e1f9f81df4391a9c651 SHA512 25e57f0e3cbff7e4d33070d250ba4ecf1c659380bce07863c52a3b30edd0ba88c923e55b0f38098b5ce3827a74a21c4d41f9de02f6a84da771ae39fd823667d3 diff --git a/dev-java/gson/gson-2.9.0.ebuild b/dev-java/gson/gson-2.9.0.ebuild new file mode 100644 index 000000000000..f5694762cc65 --- /dev/null +++ b/dev-java/gson/gson-2.9.0.ebuild @@ -0,0 +1,63 @@ +# 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://github.com/google/gson/archive/gson-parent-2.9.0.tar.gz --slot 2.6 --keywords "~amd64 ~arm ~arm64 ~ppc64 ~x86" --ebuild gson-2.9.0.ebuild + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="com.google.code.gson:gson:2.9.0" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Gson JSON library" +HOMEPAGE="https://github.com/google/gson" +SRC_URI="https://github.com/google/${PN}/archive/${PN}-parent-${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="2.6" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" + +DEPEND=" + virtual/jdk:11 +" + +# Set to jre-11:* since jre-1.8:* causes errors: +# error: Invalid SafeVarargs annotation. Instance method assertIterationOrder(Iterable,T...) is not final. +# in src/test/java/com/google/gson/internal/LinkedTreeMapTest.java:164: +RDEPEND=" + >=virtual/jre-11:* +" + +S="${WORKDIR}/${PN}-${PN}-parent-${PV}/${PN}" + +JAVA_SRC_DIR=( + "src/main/java" + "src/main/java-templates" +) + +JAVA_TEST_GENTOO_CLASSPATH="junit-4" +JAVA_TEST_SRC_DIR="src/test/java" +JAVA_TEST_RESOURCE_DIRS=( + "src/test/resources" +) + +JAVA_TEST_EXCLUDES=( + # requires the test class to be obfuscated using proguard which we do not have atm + "com.google.gson.functional.EnumWithObfuscatedTest" + # FAILURES!!! + # Tests run: 1090, Failures: 3 + # testComGoogleGsonAnnotationsPackage(com.google.gson.regression.OSGiTest) + # junit.framework.AssertionFailedError: Cannot find com.google.gson OSGi bundle manifest + "com.google.gson.regression.OSGiTest" + # testSerializeInternalImplementationObject(com.google.gson.functional.ReflectionAccessTest) + # java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $ + "com.google.gson.functional.ReflectionAccessTest" +) + +src_prepare() { + default + sed -i "s/\${project.version}/${PV}/g" src/main/java-templates/com/google/gson/internal/GsonBuildConfig.java || die "Failed to set version" +}