Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/guava/
Date: Wed, 19 Jan 2022 02:37:02
Message-Id: 1642559806.db6f1ad5edce356930cecb857d94a4fd58c7e9ee.sam@gentoo
1 commit: db6f1ad5edce356930cecb857d94a4fd58c7e9ee
2 Author: Jeffrey Lin <jeffrey <AT> icurse <DOT> nl>
3 AuthorDate: Sat Jun 19 03:58:45 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 19 02:36:46 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db6f1ad5
7
8 dev-java/guava: add 30.1.1
9
10 Going back to SLOT 0 as upstream claims "APIs without `@Beta` will
11 remain binary-compatible for the indefinite future." [1]
12
13 [1]: https://github.com/google/guava#important-warnings
14
15 Bug: https://bugs.gentoo.org/760111
16 Closes: https://bugs.gentoo.org/809974
17 Signed-off-by: Jeffrey Lin <jeffrey <AT> icurse.nl>
18 Closes: https://github.com/gentoo/gentoo/pull/21318
19 Signed-off-by: Sam James <sam <AT> gentoo.org>
20
21 dev-java/guava/Manifest | 1 +
22 dev-java/guava/guava-30.1.1.ebuild | 58 ++++++++++++++++++++++++++++++++++++++
23 2 files changed, 59 insertions(+)
24
25 diff --git a/dev-java/guava/Manifest b/dev-java/guava/Manifest
26 index 0b9dae4eb856..23aa60425858 100644
27 --- a/dev-java/guava/Manifest
28 +++ b/dev-java/guava/Manifest
29 @@ -1 +1,2 @@
30 DIST guava-20.0.tar.gz 2522092 BLAKE2B 2ca76a71d0c169b80bfaa3e9847b2e465c57aabc0a67622a69519808fa8455146228747dc20e999ebc20ef7cd5fec1cfa82f6c025e9378011619cfedbc2c7d6c SHA512 e89eee8e66502f208878af286c660393712b12fb37647ec70719ca7c5184686c8dc5fc59d45c1813d792ecad9421e2c077dab075f76b1907c04f9f6e80567ac9
31 +DIST guava-30.1.1.tar.gz 5404546 BLAKE2B 818ef4b17c4f0c8e92c327f046434a3bb428ac35d6e95edd6d6be558c755d138a8ac7f8ad2032073cad131890d8f838e896fff84ba217f8305be8bd65c619a48 SHA512 23b30d886a3200b8f998897ca7bc424b2d223a4fecb03ab644e08a989a85f008e30ef093055e6305c4148a1eb8919c407e35d19f492c5b189830bd115e9484f2
32
33 diff --git a/dev-java/guava/guava-30.1.1.ebuild b/dev-java/guava/guava-30.1.1.ebuild
34 new file mode 100644
35 index 000000000000..fef771e0e062
36 --- /dev/null
37 +++ b/dev-java/guava/guava-30.1.1.ebuild
38 @@ -0,0 +1,58 @@
39 +# Copyright 1999-2021 Gentoo Authors
40 +# Distributed under the terms of the GNU General Public License v2
41 +
42 +# Skeleton command:
43 +# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri https://codeload.github.com/google/guava/tar.gz/refs/tags/v30.1.1 --slot 0 --keywords "" --ebuild guava-30.1.1.ebuild
44 +
45 +EAPI=7
46 +
47 +JAVA_PKG_IUSE="doc source"
48 +#JAVA_TESTING_FRAMEWORKS="junit-5"
49 +MAVEN_ID="com.google.guava:guava:${PV}-jre"
50 +
51 +inherit java-pkg-2 java-pkg-simple
52 +
53 +DESCRIPTION="A collection of Google's core Java libraries"
54 +HOMEPAGE="https://github.com/google/guava"
55 +SRC_URI="https://codeload.github.com/google/guava/tar.gz/v${PV} -> ${P}.tar.gz"
56 +LICENSE="Apache-2.0"
57 +SLOT="0"
58 +KEYWORDS="~amd64"
59 +
60 +# Common dependencies
61 +# POM: pom.xml
62 +# com.google.code.findbugs:jsr305:3.0.2 -> !!!groupId-not-found!!!
63 +# com.google.errorprone:error_prone_annotations:2.5.1 -> >=dev-java/error-prone-annotations-2.7.1:0
64 +# com.google.guava:failureaccess:1.0.1 -> >=dev-java/failureaccess-30.1.1:0
65 +# com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava -> !!!artifactId-not-found!!!
66 +# com.google.j2objc:j2objc-annotations:1.3 -> !!!groupId-not-found!!!
67 +# org.checkerframework:checker-qual:3.8.0 -> >=dev-java/checker-framework-qual-3.14.0:0
68 +
69 +CDEPEND="
70 + >=dev-java/error-prone-annotations-2.7.1:0
71 + >=dev-java/failureaccess-30.1.1:0
72 + dev-java/jsr305:0
73 +"
74 +
75 +DEPEND="
76 + >=dev-java/checker-framework-qual-3.14.0:0
77 + dev-java/j2objc-annotations:0
78 + >=virtual/jdk-1.8:*
79 + ${CDEPEND}
80 +"
81 +
82 +RDEPEND=">=virtual/jre-1.8:*
83 + ${CDEPEND}
84 +"
85 +
86 +S="${WORKDIR}/${P}"
87 +
88 +JAVA_GENTOO_CLASSPATH="error-prone-annotations,failureaccess,jsr305"
89 +
90 +src_configure() {
91 + JAVA_GENTOO_CLASSPATH_EXTRA="$(java-pkg_getjars --build-only checker-framework-qual,j2objc-annotations)"
92 +}
93 +
94 +JAVA_SRC_DIR="${PN}/src"
95 +
96 +JAVA_TEST_SRC_DIR="${PN}-tests/"