diff options
author | Hans de Graaff <graaff@gentoo.org> | 2019-06-02 08:00:40 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2019-06-02 08:01:20 +0200 |
commit | a72b6d41b1bddeb4c260ec74be5a3a76fdfdcc1f (patch) | |
tree | 9d7edc1cc3faf235d8b49b97518fb60e3d5d48c9 /dev-ruby/google-protobuf/google-protobuf-3.8.0.ebuild | |
parent | dev-ruby/pluggaloid: add 1.2.0 (diff) | |
download | gentoo-a72b6d41b1bddeb4c260ec74be5a3a76fdfdcc1f.tar.gz gentoo-a72b6d41b1bddeb4c260ec74be5a3a76fdfdcc1f.tar.bz2 gentoo-a72b6d41b1bddeb4c260ec74be5a3a76fdfdcc1f.zip |
dev-ruby/google-protobuf: add 3.8.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Package-Manager: Portage-2.3.66, Repoman-2.3.11
Diffstat (limited to 'dev-ruby/google-protobuf/google-protobuf-3.8.0.ebuild')
-rw-r--r-- | dev-ruby/google-protobuf/google-protobuf-3.8.0.ebuild | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/dev-ruby/google-protobuf/google-protobuf-3.8.0.ebuild b/dev-ruby/google-protobuf/google-protobuf-3.8.0.ebuild new file mode 100644 index 000000000000..5eefeb1f2412 --- /dev/null +++ b/dev-ruby/google-protobuf/google-protobuf-3.8.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +USE_RUBY="ruby24 ruby25 ruby26" + +RUBY_FAKEGEM_TASK_DOC="" +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.7.0 )" + +each_ruby_prepare() { + sed -i -e 's:../src/protoc:protoc: ; /^task :build/ s/:compile,//' 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 +} |