commit:     16d74f65623c43b2f1d5c718beb5dcbb8962ad09
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 10 07:43:45 2021 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sun Jan 10 07:51:20 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16d74f65

dev-ruby/google-protobuf: add 3.13.0

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/google-protobuf/Manifest                  |  1 +
 .../google-protobuf/google-protobuf-3.13.0.ebuild  | 40 ++++++++++++++++++++++
 2 files changed, 41 insertions(+)

diff --git a/dev-ruby/google-protobuf/Manifest 
b/dev-ruby/google-protobuf/Manifest
index 47f1f134213..daade92d0fc 100644
--- a/dev-ruby/google-protobuf/Manifest
+++ b/dev-ruby/google-protobuf/Manifest
@@ -1,2 +1,3 @@
 DIST google-protobuf-3.11.4-ruby.tar.gz 5140799 BLAKE2B 
97b450c0623593efe6a42b66582ff183344b8831689e6a5b4d36096dbd57c33da9569bbf26578536aaf73ecd866ac0588b6cb7d55a6a9b9a6e840d4c57099001
 SHA512 
777bbb0e9e2375eaebe6b8c87abd660bac70ee469c9ad00dd25917b82d7fb5bbe33cf87f0d69c90e19d55c07a7285ec20974ba4768623ce9ccfadf147fd5e261
 DIST google-protobuf-3.12.4-ruby.tar.gz 5310348 BLAKE2B 
2630941672963165467221843c10079a0ed966f2fdfcbc970b0b41e1ed3c7f78734496c1fbd3ec509c68999a14f637fff267b309cf82a8acf2bb5a948484f79b
 SHA512 
c5d24502b9a6be0a606a19213186fe462e0de6830547003636f0897781f36d0bd7e4e7d9689d96390a0399ce04b6438cda3a0fe6f97f0feb700a110e90beef0c
+DIST google-protobuf-3.13.0-ruby.tar.gz 5277913 BLAKE2B 
168aaa5beef83be675cd2543ca8efeaf5174f5e7fd861a056b04b01c8c781dc7b1fcbd05068ae89f051dfacfdc47c34b19cc33c8d09dd3212d3827746e3408f2
 SHA512 
514efa65fc8a36bc0791e6d39bdfb07b2689e9c2a4b82536c657859b800e7bc1e1a0ae86a7ee33f30c43a473a49b5c346ce830ac0057b6da104ed37f90b8b0fd

diff --git a/dev-ruby/google-protobuf/google-protobuf-3.13.0.ebuild 
b/dev-ruby/google-protobuf/google-protobuf-3.13.0.ebuild
new file mode 100644
index 00000000000..c61f42fc155
--- /dev/null
+++ b/dev-ruby/google-protobuf/google-protobuf-3.13.0.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+USE_RUBY="ruby25 ruby26 ruby27 ruby30"
+
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Protocol Buffers are Google's data interchange format"
+HOMEPAGE="https://developers.google.com/protocol-buffers";
+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.12.0 )"
+
+all_ruby_prepare() {
+       sed -e '/extensiontask/ s:^:#:' \
+               -e '/ExtensionTask/,/^  end/ s:^:#:' \
+               -e 's:../src/protoc:protoc:' \
+               -e 's/:compile,//' \
+               -i Rakefile || die
+}
+
+each_ruby_configure() {
+       ${RUBY} -Cext/google/protobuf_c extconf.rb
+}
+
+each_ruby_compile() {
+       emake -Cext/google/protobuf_c V=1
+       cp ext/google/protobuf_c/protobuf_c.so lib/google/ || die
+}

Reply via email to