commit:     c92318c51cc262798a880fe233f5a3071063dd52
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sun Jul  6 04:59:18 2025 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sun Jul  6 04:59:18 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c92318c5

dev-ruby/zstd-ruby: add 1.5.7.0

Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/zstd-ruby/Manifest                 |  1 +
 dev-ruby/zstd-ruby/zstd-ruby-1.5.7.0.ebuild | 44 +++++++++++++++++++++++++++++
 2 files changed, 45 insertions(+)

diff --git a/dev-ruby/zstd-ruby/Manifest b/dev-ruby/zstd-ruby/Manifest
index 042eadc59b1d..7645db319c0c 100644
--- a/dev-ruby/zstd-ruby/Manifest
+++ b/dev-ruby/zstd-ruby/Manifest
@@ -1 +1,2 @@
 DIST zstd-ruby-1.5.6.6.tar.gz 1956988 BLAKE2B 
66e9d5e077dd9a721f185c61f5859a12e1b6b57144a413f5e7875121d5d475fa5d349c57bcfd5b8b8f696b7e87a8423b9756ef15a3ba7fbbbf3463dda4320c65
 SHA512 
396264d16f9c66ec1edd1db9a99b08d31a7ad71c19dbbc61abd5c4e21b957c87ca1c3daedaebbf22098f8ae544de12331b79ffe06548a5cdbdd199141c9f9984
+DIST zstd-ruby-1.5.7.0.tar.gz 1971147 BLAKE2B 
9f308d1988d9e38067640169acd5431f5a92a9c8f2e58a19b3e0fc05d64ef76c207f8b065bac50fd69f14cfd0e996642bd9554a2cc6c3bc81a8af1d9ec4ff9af
 SHA512 
fb51b9baaa5e27e8af35f7d0a94998ccf3a3d3bd2472099fa8d0e6ef3a7e97fee7a3be7e96e0e897ee5a7805127a2aefe525b130e14d24fc5561efc8cc3763cc

diff --git a/dev-ruby/zstd-ruby/zstd-ruby-1.5.7.0.ebuild 
b/dev-ruby/zstd-ruby/zstd-ruby-1.5.7.0.ebuild
new file mode 100644
index 000000000000..4cf3933c4330
--- /dev/null
+++ b/dev-ruby/zstd-ruby/zstd-ruby-1.5.7.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby32 ruby33 ruby34"
+
+# This gem includes a bundled version of app-arch/zstd. It requires
+# features that are only available with a statically linked zstd library
+# (e.g. ZSTD_SKIPPABLEHEADERSIZE) and changing the build system to build
+# against a statically linked app-arch/zstd does not seem worth it.
+
+RUBY_FAKEGEM_BINWRAP=""
+RUBY_FAKEGEM_EXTRADOC="README.md"
+RUBY_FAKEGEM_EXTENSIONS=(ext/zstdruby/extconf.rb)
+RUBY_FAKEGEM_EXTENSION_LIBDIR="lib/zstd-ruby"
+RUBY_FAKEGEM_GEMSPEC="zstd-ruby.gemspec"
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Ruby binding for zstd (Zstandard - Fast real-time compression 
algorithm)."
+HOMEPAGE="https://github.com/SpringMT/zstd-ruby";
+SRC_URI="https://github.com/SpringMT/zstd-ruby/archive/refs/tags/v${PV}.tar.gz 
-> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64 ~ppc64"
+
+all_ruby_prepare() {
+       sed -e 's/git ls-files -z/find * -print0/' \
+               -i ${RUBY_FAKEGEM_GEMSPEC}
+
+       # Removing the -O3 optimization flag causes the test suite to hang
+       # consuming CPU.
+       # sed -e '/CFLAGS/ s/-O3//' \ -i
+       # ext/zstdruby/extconf.rb || die
+
+       sed -e '/bundler/ s:^:#:' \
+               -i spec/spec_helper.rb || die
+
+       sed -e '/pry/ s:^:#:' \
+               -i spec/zstd-ruby-stream_reader_spec.rb || die
+}

Reply via email to