summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2022-01-19 13:25:05 +0100
committerMiroslav Šulc <fordfrog@gentoo.org>2022-01-20 11:20:46 +0100
commit58a7960bc20f87e27f6c8865f64d88a5b6eaa07f (patch)
tree2cf755433e2de0a7bc732bb23ec86e2948ab98d1 /dev-java/gson
parentprofiles/targets/desktop/plasma: drop obsolete egl-wayland mask (diff)
downloadgentoo-58a7960bc20f87e27f6c8865f64d88a5b6eaa07f.tar.gz
gentoo-58a7960bc20f87e27f6c8865f64d88a5b6eaa07f.tar.bz2
gentoo-58a7960bc20f87e27f6c8865f64d88a5b6eaa07f.zip
dev-java/gson: exclude 1 test if vm_version="1.8"
Closes: https://bugs.gentoo.org/820338 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/23869 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/gson')
-rw-r--r--dev-java/gson/gson-2.8.8.ebuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/dev-java/gson/gson-2.8.8.ebuild b/dev-java/gson/gson-2.8.8.ebuild
index b01f741b2d88..ae03a8f412f6 100644
--- a/dev-java/gson/gson-2.8.8.ebuild
+++ b/dev-java/gson/gson-2.8.8.ebuild
@@ -13,8 +13,9 @@ JAVA_TESTING_FRAMEWORKS="junit-4"
inherit java-pkg-2 java-pkg-simple
DESCRIPTION="Gson JSON library"
-HOMEPAGE="https://github.com/google/gson/gson"
+HOMEPAGE="https://github.com/google/gson"
SRC_URI="https://github.com/google/${PN}/archive/${PN}-parent-${PV}.tar.gz -> ${P}-sources.tar.gz"
+
LICENSE="Apache-2.0"
SLOT="2.6"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
@@ -54,3 +55,11 @@ 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"
}
+
+src_test() {
+ local vm_version="$(java-config -g PROVIDES_VERSION)"
+ if [[ "${vm_version}" == "1.8" ]] ; then
+ JAVA_TEST_EXCLUDES+=( "com.google.gson.JsonArrayTest" )
+ fi
+ java-pkg-simple_src_test
+}