summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-09-11 23:11:06 +0100
committerSam James <sam@gentoo.org>2024-09-11 23:12:25 +0100
commit470e544d6e3d1fa514eb23aac769ad9953379eff (patch)
tree5814d377d3d1699d3633f3217bd6902c27647f5b
parentapp-shells/bash: add 5.3_alpha_p20240911 (diff)
downloadgentoo-470e544d6e3d1fa514eb23aac769ad9953379eff.tar.gz
gentoo-470e544d6e3d1fa514eb23aac769ad9953379eff.tar.bz2
gentoo-470e544d6e3d1fa514eb23aac769ad9953379eff.zip
dev-ruby/grpc: respect MAKEOPTS
extconf.rb uses nproc otherwise. Bug: https://bugs.gentoo.org/921103 Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--dev-ruby/grpc/grpc-1.54.0.ebuild8
-rw-r--r--dev-ruby/grpc/grpc-1.59.2.ebuild8
2 files changed, 14 insertions, 2 deletions
diff --git a/dev-ruby/grpc/grpc-1.54.0.ebuild b/dev-ruby/grpc/grpc-1.54.0.ebuild
index 934ddf075b4a..931429078487 100644
--- a/dev-ruby/grpc/grpc-1.54.0.ebuild
+++ b/dev-ruby/grpc/grpc-1.54.0.ebuild
@@ -8,7 +8,7 @@ RUBY_FAKEGEM_EXTENSIONS=(src/ruby/ext/grpc/extconf.rb)
RUBY_FAKEGEM_EXTRAINSTALL="etc src"
RUBY_FAKEGEM_RECIPE_TEST="none"
-inherit ruby-fakegem
+inherit multiprocessing ruby-fakegem
DESCRIPTION="Send RPCs from Ruby using GRPC"
HOMEPAGE="https://github.com/grpc/grpc"
@@ -23,6 +23,12 @@ ruby_add_rdepend "
>=dev-ruby/google-protobuf-3.24.4
"
+each_ruby_configure() {
+ export GRPC_RUBY_BUILD_PROCS="$(makeopts_jobs)"
+
+ each_fakegem_configure
+}
+
each_ruby_install() {
# Remove all the "src" bits that are not needed
rm -rf src/core src/ruby/spec src/ruby/ext/grpc/{libs,objs} || die
diff --git a/dev-ruby/grpc/grpc-1.59.2.ebuild b/dev-ruby/grpc/grpc-1.59.2.ebuild
index 934ddf075b4a..931429078487 100644
--- a/dev-ruby/grpc/grpc-1.59.2.ebuild
+++ b/dev-ruby/grpc/grpc-1.59.2.ebuild
@@ -8,7 +8,7 @@ RUBY_FAKEGEM_EXTENSIONS=(src/ruby/ext/grpc/extconf.rb)
RUBY_FAKEGEM_EXTRAINSTALL="etc src"
RUBY_FAKEGEM_RECIPE_TEST="none"
-inherit ruby-fakegem
+inherit multiprocessing ruby-fakegem
DESCRIPTION="Send RPCs from Ruby using GRPC"
HOMEPAGE="https://github.com/grpc/grpc"
@@ -23,6 +23,12 @@ ruby_add_rdepend "
>=dev-ruby/google-protobuf-3.24.4
"
+each_ruby_configure() {
+ export GRPC_RUBY_BUILD_PROCS="$(makeopts_jobs)"
+
+ each_fakegem_configure
+}
+
each_ruby_install() {
# Remove all the "src" bits that are not needed
rm -rf src/core src/ruby/spec src/ruby/ext/grpc/{libs,objs} || die