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, 21 Oct 2018 08:58:27
Message-Id: 1540112295.53efb60932d6f627fc8f6e036d479656ee04fb0f.graaff@gentoo
1 commit: 53efb60932d6f627fc8f6e036d479656ee04fb0f
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 21 08:57:49 2018 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 21 08:58:15 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53efb609
7
8 dev-ruby/google-protobuf: initial import of 3.6.1
9
10 New dependency for cucumber-messages, which in turn
11 is a new dependency for dev-ruby/gherkin.
12
13 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
14 Package-Manager: Portage-2.3.49, Repoman-2.3.11
15
16 dev-ruby/google-protobuf/Manifest | 1 +
17 .../google-protobuf/google-protobuf-3.6.1.ebuild | 37 ++++++++++++++++++++++
18 dev-ruby/google-protobuf/metadata.xml | 8 +++++
19 3 files changed, 46 insertions(+)
20
21 diff --git a/dev-ruby/google-protobuf/Manifest b/dev-ruby/google-protobuf/Manifest
22 new file mode 100644
23 index 00000000000..77f6714b99f
24 --- /dev/null
25 +++ b/dev-ruby/google-protobuf/Manifest
26 @@ -0,0 +1 @@
27 +DIST google-protobuf-3.6.1-ruby.tar.gz 4485582 BLAKE2B 546c49759df784018459809b9db692c5c94aef5d717183af5cd9edd96b4c658e759f23950cdcd5dddceaaad06ea1de2a2357b9fa8c496ed5d538fc5920174da0 SHA512 1bc175d24b49de1b1e41eaf39598194e583afffb924c86c8d2e569d935af21874be76b2cbd4d9655a1d38bac3d4cd811de88bc2c72d81bad79115e69e5b0d839
28
29 diff --git a/dev-ruby/google-protobuf/google-protobuf-3.6.1.ebuild b/dev-ruby/google-protobuf/google-protobuf-3.6.1.ebuild
30 new file mode 100644
31 index 00000000000..bc07705fb0c
32 --- /dev/null
33 +++ b/dev-ruby/google-protobuf/google-protobuf-3.6.1.ebuild
34 @@ -0,0 +1,37 @@
35 +# Copyright 1999-2018 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=6
39 +USE_RUBY="ruby23 ruby24 ruby25"
40 +
41 +RUBY_FAKEGEM_TASK_DOC=""
42 +RUBY_FAKEGEM_EXTRADOC="README.md"
43 +
44 +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
45 +
46 +inherit ruby-fakegem
47 +
48 +DESCRIPTION="Protocol Buffers are Google's data interchange format"
49 +HOMEPAGE="https://developers.google.com/protocol-buffers"
50 +SRC_URI="https://github.com/protocolbuffers/protobuf/archive/v${PV}.tar.gz -> ${P}-ruby.tar.gz"
51 +RUBY_S="protobuf-${PV}/ruby"
52 +
53 +LICENSE="BSD"
54 +SLOT="3"
55 +KEYWORDS="~amd64"
56 +IUSE=""
57 +
58 +DEPEND+=" test? ( dev-libs/protobuf )"
59 +
60 +each_ruby_prepare() {
61 + sed -i -e 's:../src/protoc:protoc: ; /^task :build/ s/:compile,//' Rakefile || die
62 +}
63 +
64 +each_ruby_configure() {
65 + ${RUBY} -Cext/google/protobuf_c extconf.rb
66 +}
67 +
68 +each_ruby_compile() {
69 + emake -Cext/google/protobuf_c V=1
70 + cp ext/google/protobuf_c/protobuf_c.so lib/google/ || die
71 +}
72
73 diff --git a/dev-ruby/google-protobuf/metadata.xml b/dev-ruby/google-protobuf/metadata.xml
74 new file mode 100644
75 index 00000000000..28ab0c15f20
76 --- /dev/null
77 +++ b/dev-ruby/google-protobuf/metadata.xml
78 @@ -0,0 +1,8 @@
79 +<?xml version="1.0" encoding="UTF-8"?>
80 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
81 +<pkgmetadata>
82 +<maintainer type="project">
83 + <email>ruby@g.o</email>
84 + <name>Gentoo Ruby Project</name>
85 +</maintainer>
86 +</pkgmetadata>