commit: b5b626dac11558c37c4b7c1f0d201bff5273ac5b
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 7 03:55:35 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Apr 7 03:55:35 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5b626da
dev-libs/protobuf-c: add 1.5.2
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-libs/protobuf-c/Manifest | 1 +
dev-libs/protobuf-c/protobuf-c-1.5.2.ebuild | 56 +++++++++++++++++++++++++++++
2 files changed, 57 insertions(+)
diff --git a/dev-libs/protobuf-c/Manifest b/dev-libs/protobuf-c/Manifest
index 9d41680869dd..1a4bb605f4ce 100644
--- a/dev-libs/protobuf-c/Manifest
+++ b/dev-libs/protobuf-c/Manifest
@@ -2,3 +2,4 @@ DIST protobuf-c-1.4.1.tar.gz 513596 BLAKE2B
b5e87a3154863581b81790a26b6b522c2b3a
DIST protobuf-c-1.5.0.tar.gz 507251 BLAKE2B
7b428655901f4fd74b67b75419552e7c02065a5291aed4dcc1d55b98c986caa9ccf846eb5e98e0954420c3e5bea559b0078843e00daa7b5c63465eec21e28204
SHA512
175c9fc901cab88308730eea982dd62b1e0decdceb80aa53be163f17a440b4acecb834a784beab5cd71186413a322a323f4539758a8727ca51801cf92f9bd3da
DIST protobuf-c-1.5.1-protobuf-30.patch 57952 BLAKE2B
abd28312d438cacbc056751e265e74e8a987f8f4dceab28b6ef2b628696eed7624bc9d0ac0a67b58cb87383519212541f3e119dd4bb28553c2bd2c5e663ed5a8
SHA512
ae6e2cc0a8141d8143451a87a84ae9140d5e82817f2312025dd426d892c7aa3b5fc363e44f76486608322712eabccaa75afa06ff4bfb7829bb265ab27e11c611
DIST protobuf-c-1.5.1.tar.gz 531693 BLAKE2B
f3c8688e6d88999b24c1192a91fd96855233c811c9c87534983cca14d06158cf48f729775c529a182326c97c41184ef86fcc26e9ed706e49cf1e7994ed573b61
SHA512
35d4de5562b79056f46320552a27b8e476b92466d0a2f5c697f41b0e1c437bb0b0819c39f71accf942b74ecfcea64e42e0a1e67792eeff4a7e01fbafd84488b5
+DIST protobuf-c-1.5.2.tar.gz 532447 BLAKE2B
f6815319bad26095fe462b7a3da295594a853b131b565c7bc27d2d9ba1e51722ce8fefb408e37bc41b953de8ba51d4340b87a57fbb7163ce444e5aa2b99c9721
SHA512
78dc72988d7e8232c1b967849aa00939bc05ab7d39b86a8e2af005e38aa4ef4c9b03920d51fb5337399d980e65f35d11bd4742bea745a893ecc909f56a51c9ac
diff --git a/dev-libs/protobuf-c/protobuf-c-1.5.2.ebuild
b/dev-libs/protobuf-c/protobuf-c-1.5.2.ebuild
new file mode 100644
index 000000000000..d933a2563acd
--- /dev/null
+++ b/dev-libs/protobuf-c/protobuf-c-1.5.2.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# Check 'next' branch for backports.
+
+inherit autotools multilib-minimal
+
+MY_PV="${PV/_/-}"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="Protocol Buffers implementation in C"
+HOMEPAGE="https://github.com/protobuf-c/protobuf-c"
+SRC_URI="
+
https://github.com/${PN}/${PN}/releases/download/v${MY_PV}/${MY_P}.tar.gz
+"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="BSD-2"
+# Subslot == SONAME version
+SLOT="0/1.0.0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv
~sparc ~x86"
+IUSE="static-libs"
+
+BDEPEND="
+ >=dev-libs/protobuf-3:0
+ virtual/pkgconfig
+"
+DEPEND="
+ >=dev-libs/protobuf-3:0=[${MULTILIB_USEDEP}]"
+# NOTE
+# protobuf links to abseil-cpp libraries via it's .pc files.
+# To cause rebuild when the abseil-cpp version changes we add it to RDEPEND
only.
+RDEPEND="${DEPEND}
+ dev-cpp/abseil-cpp:=[${MULTILIB_USEDEP}]
+"
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+multilib_src_configure() {
+ local myeconfargs=(
+ $(use_enable static-libs static)
+ --enable-year2038
+ )
+
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
+}
+
+multilib_src_install_all() {
+ find "${ED}" -name '*.la' -type f -delete || die
+ einstalldocs
+}