diff options
| -rw-r--r-- | dev-ruby/nio4r/Manifest | 1 | ||||
| -rw-r--r-- | dev-ruby/nio4r/nio4r-2.7.5.ebuild | 38 |
2 files changed, 39 insertions, 0 deletions
diff --git a/dev-ruby/nio4r/Manifest b/dev-ruby/nio4r/Manifest index 3f55b0396c9a..9fced8ba9d80 100644 --- a/dev-ruby/nio4r/Manifest +++ b/dev-ruby/nio4r/Manifest @@ -1 +1,2 @@ DIST nio4r-2.7.4.tar.gz 123192 BLAKE2B 263b061945dbdd1c36d951ff0bdf6ffe5193a730bd1924933fcff4150c574a5164ba7a59f0a040d71cba108ea08085ac9351635179974c03b5f8731583288e99 SHA512 5f89cddf3e772f05c10ab2ce7fbffd9b878ac129bc0adb7be5e35a67c7b17748a5722e784a19dace2308006bcbc7eaef70a49f9f58771faa0d97758742703338 +DIST nio4r-2.7.5.tar.gz 123129 BLAKE2B 0452afa49abc1167c76026266ae991770a8300ebad1a5e70ad415f819fd58e1169c9aad64fdfa9010e5b7a94965b5573f9eec1c77aa7f5115103d28ea0e47458 SHA512 f9dd3bd86d1d565b3f9df5a6ae45ba24345c1d59d8f9fd240ad98b5e6b4615601ceb1343b2642a998f9ff3fe82fb81af138ba37d8068649d20f95868752831f2 diff --git a/dev-ruby/nio4r/nio4r-2.7.5.ebuild b/dev-ruby/nio4r/nio4r-2.7.5.ebuild new file mode 100644 index 000000000000..385ae1790e8c --- /dev/null +++ b/dev-ruby/nio4r/nio4r-2.7.5.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby32 ruby33 ruby34" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +RUBY_FAKEGEM_RECIPE_DOC="" +RUBY_FAKEGEM_EXTRADOC="releases.md readme.md" + +RUBY_FAKEGEM_EXTENSIONS=(ext/nio4r/extconf.rb) +RUBY_FAKEGEM_GEMSPEC="nio4r.gemspec" + +inherit flag-o-matic ruby-fakegem + +DESCRIPTION="A high performance selector API for monitoring IO objects" +HOMEPAGE="https://github.com/socketry/nio4r" +SRC_URI="https://github.com/socketry/nio4r/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT || ( BSD GPL-2 )" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~ppc-macos ~x64-macos ~x64-solaris" + +# Note that nio4r bundles a patched copy of libev, and without these +# patches the tests fail: https://github.com/celluloid/nio4r/issues/15 + +all_ruby_prepare() { + # See bug #855869 and its large number of dupes in bundled libev copies. + filter-lto + append-flags -fno-strict-aliasing + + sed -i -e '/[Bb]undler/d' spec/spec_helper.rb || die + sed -e '/extension/ s:^:#:' -i Rakefile || die + + sed -e 's:_relative ": "./:' -i ${RUBY_FAKEGEM_GEMSPEC} || die +} |
