1 |
commit: cf5d2a20529cc45d29b53b46436599bf2ed34372 |
2 |
Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org> |
3 |
AuthorDate: Fri May 28 01:00:00 2021 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 31 23:01:40 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf5d2a20 |
7 |
|
8 |
dev-java/protobuf-java: Version bump (3.16.0). |
9 |
|
10 |
Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache.Org> |
11 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
12 |
|
13 |
dev-java/protobuf-java/Manifest | 1 + |
14 |
dev-java/protobuf-java/protobuf-java-3.16.0.ebuild | 56 ++++++++++++++++++++++ |
15 |
2 files changed, 57 insertions(+) |
16 |
|
17 |
diff --git a/dev-java/protobuf-java/Manifest b/dev-java/protobuf-java/Manifest |
18 |
index 0737b49db14..42ad9a885e5 100644 |
19 |
--- a/dev-java/protobuf-java/Manifest |
20 |
+++ b/dev-java/protobuf-java/Manifest |
21 |
@@ -9,3 +9,4 @@ DIST protobuf-3.15.5.tar.gz 5283712 BLAKE2B 0da6255302014c885aee47d48344a75ee480 |
22 |
DIST protobuf-3.15.6.tar.gz 5284018 BLAKE2B 5895f618e233edd5744253821036857aa23f64b76ee3318b99f3530d9dd0c49cc8c386ef15c7394475c2bf0fa33fb631e481fa3fb927c2ab8a88af31234bd0b1 SHA512 673d61b492ce0e85f5c63f3fd7a0174737cc65f7871f79d24380bffa59ea1b312065137ecc63b0f4d4ffa3eb168a09e9c1129c21b0e6c5c3a8c2fabb2cecabb5 |
23 |
DIST protobuf-3.15.7.tar.gz 5284817 BLAKE2B 43821bb283a0c1f87930593046a5c55f6efae3f644337289fd438c0612a9b7ef9531b61e48940b74dc5d20253ee1b6a805b902284a442dec2efe8c79f82c5aad SHA512 2b18ccba1ff8a0623c52abed0e0674bc6cfa2cd10d49764031a47e68f654f54083f4a4f9e3a94d833a6808426904ee642f173641063e79cb41a61fc348d603ac |
24 |
DIST protobuf-3.15.8.tar.gz 5285277 BLAKE2B 798fc011ac03cdc2406acf5845c667d8482082044bdace06c2c1d02b5b1b69c1b1f30e29774180dc1801a1d21d62e2ce50325105859564a1e36d3fe478e64d8b SHA512 56fc6df2dae14eee0fb67dd4204fc1ec54a18d994a69c9e42c7888d0cd50d269d1c5e1445d74f0fa705850d4ac86a22d86781e09769a716e5c6f829b15b05592 |
25 |
+DIST protobuf-3.16.0.tar.gz 5299781 BLAKE2B 9ace02a6038c31b7393671fb2ccd6a4866a3f8b7d87d2bc8371f49d65b9180f10792ca2430a83449dfa7d785a1244dac23c20756414c9d1e7c7e871a8038b123 SHA512 0191e5a6a23d03f691e883e259f6d06a0ac8eef427455bc7d1cc70b6f0ed260e4ad8f360c836fd4bdc95ec0ca314c887cbf7acbcda60e03cdfe69e4cd275bff5 |
26 |
|
27 |
diff --git a/dev-java/protobuf-java/protobuf-java-3.16.0.ebuild b/dev-java/protobuf-java/protobuf-java-3.16.0.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..0c639fe2105 |
30 |
--- /dev/null |
31 |
+++ b/dev-java/protobuf-java/protobuf-java-3.16.0.ebuild |
32 |
@@ -0,0 +1,56 @@ |
33 |
+# Copyright 2008-2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI="7" |
37 |
+JAVA_PKG_IUSE="doc source" |
38 |
+ |
39 |
+inherit java-pkg-2 java-pkg-simple |
40 |
+ |
41 |
+if [[ "${PV}" == "9999" ]]; then |
42 |
+ inherit git-r3 |
43 |
+ |
44 |
+ EGIT_REPO_URI="https://github.com/protocolbuffers/protobuf" |
45 |
+ EGIT_SUBMODULES=() |
46 |
+fi |
47 |
+ |
48 |
+DESCRIPTION="Google's Protocol Buffers - Java bindings" |
49 |
+HOMEPAGE="https://developers.google.com/protocol-buffers/ https://github.com/protocolbuffers/protobuf" |
50 |
+if [[ "${PV}" == "9999" ]]; then |
51 |
+ SRC_URI="" |
52 |
+else |
53 |
+ SRC_URI="https://github.com/protocolbuffers/protobuf/archive/v${PV}.tar.gz -> protobuf-${PV}.tar.gz" |
54 |
+fi |
55 |
+ |
56 |
+LICENSE="BSD" |
57 |
+SLOT="0/27" |
58 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" |
59 |
+IUSE="" |
60 |
+ |
61 |
+BDEPEND="~dev-libs/protobuf-${PV} |
62 |
+ >=virtual/jdk-1.8:*" |
63 |
+DEPEND=">=virtual/jdk-1.8:*" |
64 |
+RDEPEND=">=virtual/jre-1.8:* |
65 |
+ !<dev-libs/protobuf-3[java(-)]" |
66 |
+ |
67 |
+S="${WORKDIR}/protobuf-${PV}/java" |
68 |
+ |
69 |
+if [[ "${PV}" == "9999" ]]; then |
70 |
+ EGIT_CHECKOUT_DIR="${WORKDIR}/protobuf-${PV}" |
71 |
+fi |
72 |
+ |
73 |
+src_prepare() { |
74 |
+ pushd "${WORKDIR}/protobuf-${PV}" > /dev/null || die |
75 |
+ eapply_user |
76 |
+ popd > /dev/null || die |
77 |
+ |
78 |
+ java-pkg-2_src_prepare |
79 |
+} |
80 |
+ |
81 |
+src_compile() { |
82 |
+ "${BROOT}/usr/bin/protoc" --java_out=core/src/main/java -I../src ../src/google/protobuf/descriptor.proto || die |
83 |
+ JAVA_SRC_DIR="core/src/main/java" JAVA_JAR_FILENAME="protobuf.jar" java-pkg-simple_src_compile |
84 |
+} |
85 |
+ |
86 |
+src_install() { |
87 |
+ JAVA_SRC_DIR="core/src/main/java" JAVA_JAR_FILENAME="protobuf.jar" java-pkg-simple_src_install |
88 |
+} |