summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2024-07-28 08:27:27 +0200
committerHans de Graaff <graaff@gentoo.org>2024-07-28 08:52:18 +0200
commit3f4d1e977fbc08beeb653e5444542e4a81b8aeaa (patch)
tree842ab54a383073c4282b78e2c63401ac0ee6e060 /dev-ruby/google-protobuf
parentdev-python/path: Bump to 17.0.0 (diff)
downloadgentoo-3f4d1e977fbc08beeb653e5444542e4a81b8aeaa.tar.gz
gentoo-3f4d1e977fbc08beeb653e5444542e4a81b8aeaa.tar.bz2
gentoo-3f4d1e977fbc08beeb653e5444542e4a81b8aeaa.zip
dev-ruby/google-protobuf: add 3.25.4
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/google-protobuf')
-rw-r--r--dev-ruby/google-protobuf/Manifest1
-rw-r--r--dev-ruby/google-protobuf/google-protobuf-3.25.4.ebuild39
2 files changed, 40 insertions, 0 deletions
diff --git a/dev-ruby/google-protobuf/Manifest b/dev-ruby/google-protobuf/Manifest
index d9db4ae1c0eb..f8340b20971a 100644
--- a/dev-ruby/google-protobuf/Manifest
+++ b/dev-ruby/google-protobuf/Manifest
@@ -1,2 +1,3 @@
DIST google-protobuf-3.21.12-ruby.tar.gz 5141502 BLAKE2B 2e57a401b6fc86dff2af54e3d1a32db87f6c54fed46e557964c01c2d87f333ca94dafbe2d7d9cf279ac67d53219ae0154c5a1ea5cb90cdcf72d3576cefc44653 SHA512 152f8441c325e808b942153c15e82fdb533d5273b50c25c28916ec568ada880f79242bb61ee332ac5fb0d20f21239ed6f8de02ef6256cc574b1fc354d002c6b0
DIST google-protobuf-3.24.4-ruby.tar.gz 5179247 BLAKE2B f3b53769f31a0fc9151e90b133c836127e745f9f0c591b0d4e476ab50a6b7ca21562169bdedcd6637961131ef39484d2c945dd83d01a3839cca7f0555144d3a8 SHA512 19b8aa89647fa14b4716cfeed289233bed65be2417d9f7e2b1082975a4753e5a1f091eb36ad7cff159d125b01bfe005e2911ebda896f15cba58299e340487518
+DIST google-protobuf-3.25.4-ruby.tar.gz 5879814 BLAKE2B 529c28b0568b5dee97b12102e2f960606e3cb65c7d5f53bcfbd4c22b93b30d3d9e1465c2ec537d480b756f74fc1cf3c7ad6e3cd3bdb2955010583d7666224816 SHA512 ff85dedd2e381fc18471c71bb2f0854210dfc65d53ad8105afd57b77cab7d47bad7569cb64547c85d9d7464697b67049acf6c0906757a01fb0519346eaa6ed72
diff --git a/dev-ruby/google-protobuf/google-protobuf-3.25.4.ebuild b/dev-ruby/google-protobuf/google-protobuf-3.25.4.ebuild
new file mode 100644
index 000000000000..e940d72afe23
--- /dev/null
+++ b/dev-ruby/google-protobuf/google-protobuf-3.25.4.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby31 ruby32 ruby33"
+
+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
+
+DESCRIPTION="Protocol Buffers are Google's data interchange format"
+HOMEPAGE="https://protobuf.dev/"
+SRC_URI="https://github.com/protocolbuffers/protobuf/archive/v${PV}.tar.gz -> ${P}-ruby.tar.gz"
+RUBY_S="protobuf-${PV}/ruby"
+
+LICENSE="BSD"
+SLOT="3"
+KEYWORDS="~amd64 ~arm64"
+
+DEPEND=" >=dev-libs/protobuf-3.25.0"
+
+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
+}