diff options
author | 2024-08-07 06:05:44 +0200 | |
---|---|---|
committer | 2024-08-08 10:02:47 +0200 | |
commit | a74a6ca1f27ff39d00ab8720cb25c19930987640 (patch) | |
tree | 536af5cf5758930433975b519a32b4f0a24d9447 /dev-java | |
parent | dev-util/wayland-scanner: destabilize 1.23.0 for ~ppc, ~ppc64, ~sparc, ~x86 (diff) | |
download | gentoo-a74a6ca1f27ff39d00ab8720cb25c19930987640.tar.gz gentoo-a74a6ca1f27ff39d00ab8720cb25c19930987640.tar.bz2 gentoo-a74a6ca1f27ff39d00ab8720cb25c19930987640.zip |
dev-java/protobuf-java: 3.23.0-r1 adjust dependency on dev-cpp/abseil-cpp #937461
Also removes the system-protoc USE flag since the corresponding version of
dev-libs/protobuf has been removed.
Closes: https://bugs.gentoo.org/937461
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/37719/commits/8345fc4e42f4b1873bdab45a731a00c6de071b76
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/protobuf-java/protobuf-java-3.23.0-r1.ebuild (renamed from dev-java/protobuf-java/protobuf-java-3.23.0.ebuild) | 33 |
1 files changed, 7 insertions, 26 deletions
diff --git a/dev-java/protobuf-java/protobuf-java-3.23.0.ebuild b/dev-java/protobuf-java/protobuf-java-3.23.0-r1.ebuild index abeb3464f5e4..6059bd156b76 100644 --- a/dev-java/protobuf-java/protobuf-java-3.23.0.ebuild +++ b/dev-java/protobuf-java/protobuf-java-3.23.0-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 2008-2023 Gentoo Authors +# Copyright 2008-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -21,7 +21,6 @@ S="${WORKDIR}/protobuf-${PV#3.}" LICENSE="BSD" SLOT="0" KEYWORDS="amd64 ~arm ~arm64 ppc64 x86 ~amd64-linux ~x86-linux ~x64-macos" -IUSE="system-protoc" DEPEND=" >=virtual/jdk-1.8:* @@ -31,10 +30,9 @@ DEPEND=" ) " RDEPEND=">=virtual/jre-1.8:*" - BDEPEND=" - system-protoc? ( ~dev-libs/protobuf-${PV#3.}:0 ) - !system-protoc? ( >=dev-cpp/abseil-cpp-20230125.2 ) + >=dev-cpp/abseil-cpp-20230125.2 + <dev-cpp/abseil-cpp-20240116.2 " PATCHES=( @@ -50,20 +48,11 @@ JAVA_TEST_GENTOO_CLASSPATH="guava,junit-4,mockito-4" JAVA_TEST_SRC_DIR="java/core/src/test/java" run-protoc() { - if use system-protoc; then - protoc $1 - else - "${BUILD_DIR}"/protoc $1 - fi + "${BUILD_DIR}"/protoc $1 } src_prepare() { - # If the corrsponding version of system-protoc is not available we build protoc locally - if use system-protoc; then - : - else - cmake_src_prepare - fi + cmake_src_prepare java-pkg-2_src_prepare mkdir "${JAVA_RESOURCE_DIRS}" || die @@ -104,19 +93,11 @@ src_configure() { -Dprotobuf_BUILD_TESTS=OFF -Dprotobuf_ABSL_PROVIDER=package ) - if use system-protoc; then - : - else - cmake_src_configure - fi + cmake_src_configure } src_compile() { - if use system-protoc; then - : - else - cmake_src_compile - fi + cmake_src_compile einfo "Run protoc to generate sources" run-protoc \ |