commit:     e7dfd3146b3dcff051be274390a35f3802ed0e4e
Author:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Sun Nov 16 16:52:28 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Nov 28 03:20:26 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7dfd314

dev-ruby/google-protobuf: add 4.33.1

Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44654
Closes: https://github.com/gentoo/gentoo/pull/44654
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-ruby/google-protobuf/Manifest                  |  1 +
 .../google-protobuf/google-protobuf-4.33.1.ebuild  | 47 ++++++++++++++++++++++
 2 files changed, 48 insertions(+)

diff --git a/dev-ruby/google-protobuf/Manifest 
b/dev-ruby/google-protobuf/Manifest
index 23e8f705b5b4..5d3bbea8ead1 100644
--- a/dev-ruby/google-protobuf/Manifest
+++ b/dev-ruby/google-protobuf/Manifest
@@ -6,3 +6,4 @@ DIST protobuf-30.2.tar.gz 9506934 BLAKE2B 
3a7d6bfa38500b16b1ce52b244fd9448fe7be2
 DIST protobuf-31.1.tar.gz 9583956 BLAKE2B 
cd15fc6d25bee71681602cf97c19dc04de9900594b0c0648decf418bdcc0cf787315b2238c18cb0b1eaf7b163ddbbfb7853cc5cff635b4841fcb8b20d94825fd
 SHA512 
5bf730e37183defcb29cf4831128f536ad8bcdce2b2b46b297d95f3de4a037b9ff3b6c57df66a039256dcefd828ba9d43c32b01a7a82aa5c881a9ae12cadb643
 DIST protobuf-32.1.tar.gz 9676391 BLAKE2B 
f6c1faa260ecb57c0a1a5d4be7d56e431cac9e325a02b86d9eecd0318a0964618063db218a4720fcb1121614016f112ba00880a5b743a5c34f19f79ea4420735
 SHA512 
e7f8fe01912ba30cc7ce101beac1cfbd089bcb57b159a57d4d90cabd1b29d978ad322f0607e1b955617f035a6b68d4e7bc940fa4afa67d255a21f513a2c62172
 DIST protobuf-33.0.tar.gz 6872665 BLAKE2B 
5d456c000117b590dea5b7e721a8b8d00d9e7067ba2156f082e4959a17fcf8d4f2e306f90335aad97e1a94dfd2491544d67cb29670f0022034fde574140a8066
 SHA512 
2956270a81631895ab6ed8c3c2a22b353a461b0827ee17a1c569b24374307a8e2525a06db6728140bff759a40e47a1d2a291cfb34293b364fe279f10468f3cb9
+DIST protobuf-33.1.tar.gz 6865436 BLAKE2B 
101bf4a67fe0d08ab5f6b3c984193e8b031c521b374bd1bc134f9c2df90f995af73c7689de03d3b4b2d8ce77fc94392fc552942d158df9d2c65ce3e74ac47d0a
 SHA512 
c0b8bd54fe7bd287b2225c3e50e995bc0160d7c0a7712fd047325361613ffb917f4ab838933b1505b07d404e1adb80ea681503bdfc83ce9846d03f5539b481be

diff --git a/dev-ruby/google-protobuf/google-protobuf-4.33.1.ebuild 
b/dev-ruby/google-protobuf/google-protobuf-4.33.1.ebuild
new file mode 100644
index 000000000000..d8b4b7942825
--- /dev/null
+++ b/dev-ruby/google-protobuf/google-protobuf-4.33.1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby31 ruby32 ruby33 ruby34"
+
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+RUBY_FAKEGEM_EXTENSIONS=(ext/google/protobuf_c/extconf.rb)
+RUBY_FAKEGEM_EXTENSION_LIBDIR=lib/google
+
+inherit ruby-fakegem
+
+PROTOBUF_PV="$(ver_cut 2-)"
+
+DESCRIPTION="Protocol Buffers are Google's data interchange format"
+HOMEPAGE="https://protobuf.dev/";
+SRC_URI="
+       
https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOBUF_PV}/${PN##google-}-${PROTOBUF_PV}.tar.gz
+"
+RUBY_S="protobuf-${PROTOBUF_PV}/ruby"
+
+LICENSE="BSD"
+SLOT="0/$(ver_cut 1-3)"
+KEYWORDS="~amd64 ~arm64"
+IUSE="test"
+
+DEPEND=">=dev-libs/protobuf-${PROTOBUF_PV}"
+
+ruby_add_bdepend "test? ( dev-ruby/json dev-ruby/test-unit )"
+
+all_ruby_prepare() {
+       sed -e '/extensiontask/ s:^:#:' \
+               -e '/ExtensionTask/,/^  end/ s:^:#:' \
+               -e 's:../src/protoc:protoc:' \
+               -e 's/:compile,//' \
+               -e '/:test/ s/:build,//' \
+               -i Rakefile || die
+}
+
+each_ruby_prepare() {
+       ${RUBY} -S rake genproto || die
+       ${RUBY} -S rake copy_third_party || die
+}

Reply via email to