diff options
author | Hans de Graaff <graaff@gentoo.org> | 2023-06-29 17:15:52 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2023-06-29 17:16:36 +0200 |
commit | fc7347448245ed01b80838d42dccb6feb35ecafd (patch) | |
tree | fd95c0446f98c3b71d5d89f44932658a1c7836da /dev-ruby/google-protobuf | |
parent | dev-ruby/rubyntlm: drop 0.6.3 (diff) | |
download | gentoo-fc7347448245ed01b80838d42dccb6feb35ecafd.tar.gz gentoo-fc7347448245ed01b80838d42dccb6feb35ecafd.tar.bz2 gentoo-fc7347448245ed01b80838d42dccb6feb35ecafd.zip |
dev-ruby/google-protobuf: add 3.21.12
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/google-protobuf')
-rw-r--r-- | dev-ruby/google-protobuf/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/google-protobuf/google-protobuf-3.21.12.ebuild | 39 |
2 files changed, 40 insertions, 0 deletions
diff --git a/dev-ruby/google-protobuf/Manifest b/dev-ruby/google-protobuf/Manifest index 29e07de8ed7b..1f5de0c92fd8 100644 --- a/dev-ruby/google-protobuf/Manifest +++ b/dev-ruby/google-protobuf/Manifest @@ -1 +1,2 @@ DIST google-protobuf-3.19.6-ruby.tar.gz 5299501 BLAKE2B 3121f76b95f83c5309ce49ce296b738eff7be9d3a5093c564fbe2339fb5f3729e406f1b44bfcc05feb0d31ab63838bb4f54685017977c73a33b91215a6776072 SHA512 8f92242f2be8e1bbfba41341c87709ad91ad83b8b3e3df88bb430411541d3399295f49291fd52b50e3487b0fce33181cb4d175685fd25aac72adfaee26a612d4 +DIST google-protobuf-3.21.12-ruby.tar.gz 5141502 BLAKE2B 2e57a401b6fc86dff2af54e3d1a32db87f6c54fed46e557964c01c2d87f333ca94dafbe2d7d9cf279ac67d53219ae0154c5a1ea5cb90cdcf72d3576cefc44653 SHA512 152f8441c325e808b942153c15e82fdb533d5273b50c25c28916ec568ada880f79242bb61ee332ac5fb0d20f21239ed6f8de02ef6256cc574b1fc354d002c6b0 diff --git a/dev-ruby/google-protobuf/google-protobuf-3.21.12.ebuild b/dev-ruby/google-protobuf/google-protobuf-3.21.12.ebuild new file mode 100644 index 000000000000..2a8dccfa37d3 --- /dev/null +++ b/dev-ruby/google-protobuf/google-protobuf-3.21.12.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby30 ruby31 ruby32" + +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" +IUSE="" + +DEPEND+=" test? ( >=dev-libs/protobuf-3.21.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 +} |