mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-05 12:38:09 -07:00
dev-ruby/google-protobuf: add 4.34.2
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> Part-of: https://codeberg.org/gentoo/gentoo/pulls/635 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -8,3 +8,4 @@ DIST protobuf-32.1.tar.gz 9676391 BLAKE2B f6c1faa260ecb57c0a1a5d4be7d56e431cac9e
|
||||
DIST protobuf-33.0.tar.gz 6872665 BLAKE2B 5d456c000117b590dea5b7e721a8b8d00d9e7067ba2156f082e4959a17fcf8d4f2e306f90335aad97e1a94dfd2491544d67cb29670f0022034fde574140a8066 SHA512 2956270a81631895ab6ed8c3c2a22b353a461b0827ee17a1c569b24374307a8e2525a06db6728140bff759a40e47a1d2a291cfb34293b364fe279f10468f3cb9
|
||||
DIST protobuf-33.1.tar.gz 6865436 BLAKE2B 101bf4a67fe0d08ab5f6b3c984193e8b031c521b374bd1bc134f9c2df90f995af73c7689de03d3b4b2d8ce77fc94392fc552942d158df9d2c65ce3e74ac47d0a SHA512 c0b8bd54fe7bd287b2225c3e50e995bc0160d7c0a7712fd047325361613ffb917f4ab838933b1505b07d404e1adb80ea681503bdfc83ce9846d03f5539b481be
|
||||
DIST protobuf-33.4.tar.gz 6887338 BLAKE2B cb92bbce07ea457f3bc809ac74a892c90c925e950c5fe58e8071320f578409226d95236b688fe153612e0ec4774bc6361629319e7a8c087fa31ce5e7f918f04e SHA512 96b1f048cccf188a17ff308d144fa55c931e14522bf077e835c17fa344050bd762f0bbb0a4efed35fe5ea9bdeaf0fbe346ca8fbabcbdb0a3ee727eac77ccb9fd
|
||||
DIST protobuf-34.2.tar.gz 7036403 BLAKE2B 71c584454fb26fec1b2972feca614219960e184b064dbb0c3397d5b112b645f577ab20f92cc7a2e9412cc855d3c102f5ab4f7d5d5d71052930bb45ab34dcad5a SHA512 a79027ea37cb223107825e027dbe93a5960ffd77cd21908ee47f1a4a6fd90ff7fdbb6515c2b630d41d14dfb721e2b52c4f2591a7e6dd40ca3d098a62ee28fe57
|
||||
|
||||
47
dev-ruby/google-protobuf/google-protobuf-4.34.2.ebuild
Normal file
47
dev-ruby/google-protobuf/google-protobuf-4.34.2.ebuild
Normal file
@@ -0,0 +1,47 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
USE_RUBY="ruby32 ruby33 ruby34 ruby40"
|
||||
|
||||
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
|
||||
|
||||
PROTOBUF_PV="$(ver_cut 2-)"
|
||||
|
||||
DESCRIPTION="Protocol Buffers are Google's data interchange format"
|
||||
HOMEPAGE="https://protobuf.dev/"
|
||||
SRC_URI="
|
||||
https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOBUF_PV}/${PN##google-}-${PROTOBUF_PV}.tar.gz
|
||||
"
|
||||
RUBY_S="protobuf-${PROTOBUF_PV}/ruby"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/$(ver_cut 1-3)"
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
IUSE="test"
|
||||
|
||||
DEPEND=">=dev-libs/protobuf-${PROTOBUF_PV}"
|
||||
|
||||
ruby_add_bdepend "test? ( dev-ruby/json dev-ruby/test-unit )"
|
||||
|
||||
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
|
||||
${RUBY} -S rake copy_third_party || die
|
||||
}
|
||||
Reference in New Issue
Block a user