Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/google-protobuf/
Date: Sun, 02 Jun 2019 06:01:32
Message-Id: 1559455280.a72b6d41b1bddeb4c260ec74be5a3a76fdfdcc1f.graaff@gentoo
1 commit: a72b6d41b1bddeb4c260ec74be5a3a76fdfdcc1f
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 2 06:00:40 2019 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 2 06:01:20 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a72b6d41
7
8 dev-ruby/google-protobuf: add 3.8.0
9
10 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
11 Package-Manager: Portage-2.3.66, Repoman-2.3.11
12
13 dev-ruby/google-protobuf/Manifest | 1 +
14 .../google-protobuf/google-protobuf-3.8.0.ebuild | 37 ++++++++++++++++++++++
15 2 files changed, 38 insertions(+)
16
17 diff --git a/dev-ruby/google-protobuf/Manifest b/dev-ruby/google-protobuf/Manifest
18 index 77f6714b99f..20b307b5951 100644
19 --- a/dev-ruby/google-protobuf/Manifest
20 +++ b/dev-ruby/google-protobuf/Manifest
21 @@ -1 +1,2 @@
22 DIST google-protobuf-3.6.1-ruby.tar.gz 4485582 BLAKE2B 546c49759df784018459809b9db692c5c94aef5d717183af5cd9edd96b4c658e759f23950cdcd5dddceaaad06ea1de2a2357b9fa8c496ed5d538fc5920174da0 SHA512 1bc175d24b49de1b1e41eaf39598194e583afffb924c86c8d2e569d935af21874be76b2cbd4d9655a1d38bac3d4cd811de88bc2c72d81bad79115e69e5b0d839
23 +DIST google-protobuf-3.8.0-ruby.tar.gz 4934577 BLAKE2B 4b86ab216e8a8b2c99c3620da9417c0562498e9d4dbf4957db186f51c62b0ed73b1322635a076b2d4054e015bdf6c8c50cc7fd0cb78d24a93b29d2a5b48f66fe SHA512 ba27c64e5193cd4a144bf0c9dc0d195fbbe6e580aaca01960362f0f185074588ca40046d3bcea76e1deae7508b722f6c5be484ea957122ae8e98229c7c3a4ad2
24
25 diff --git a/dev-ruby/google-protobuf/google-protobuf-3.8.0.ebuild b/dev-ruby/google-protobuf/google-protobuf-3.8.0.ebuild
26 new file mode 100644
27 index 00000000000..5eefeb1f241
28 --- /dev/null
29 +++ b/dev-ruby/google-protobuf/google-protobuf-3.8.0.ebuild
30 @@ -0,0 +1,37 @@
31 +# Copyright 1999-2019 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +USE_RUBY="ruby24 ruby25 ruby26"
36 +
37 +RUBY_FAKEGEM_TASK_DOC=""
38 +RUBY_FAKEGEM_EXTRADOC="README.md"
39 +
40 +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
41 +
42 +inherit ruby-fakegem
43 +
44 +DESCRIPTION="Protocol Buffers are Google's data interchange format"
45 +HOMEPAGE="https://developers.google.com/protocol-buffers"
46 +SRC_URI="https://github.com/protocolbuffers/protobuf/archive/v${PV}.tar.gz -> ${P}-ruby.tar.gz"
47 +RUBY_S="protobuf-${PV}/ruby"
48 +
49 +LICENSE="BSD"
50 +SLOT="3"
51 +KEYWORDS="~amd64"
52 +IUSE=""
53 +
54 +DEPEND+=" test? ( >=dev-libs/protobuf-3.7.0 )"
55 +
56 +each_ruby_prepare() {
57 + sed -i -e 's:../src/protoc:protoc: ; /^task :build/ s/:compile,//' Rakefile || die
58 +}
59 +
60 +each_ruby_configure() {
61 + ${RUBY} -Cext/google/protobuf_c extconf.rb
62 +}
63 +
64 +each_ruby_compile() {
65 + emake -Cext/google/protobuf_c V=1
66 + cp ext/google/protobuf_c/protobuf_c.so lib/google/ || die
67 +}