commit:     d74a346e8d0ed9535f2f77c50e47c41b438c9bb3
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sun Jul  9 05:28:39 2023 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sun Jul  9 05:42:23 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d74a346e

dev-ruby/io-console: only install expected files

The gemspec file installs different files depending on the
ruby engine. Match this to avoid loading the wrong files.

Closes: https://bugs.gentoo.org/909442
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 .../{io-console-0.6.0.ebuild => io-console-0.6.0-r1.ebuild}           | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dev-ruby/io-console/io-console-0.6.0.ebuild 
b/dev-ruby/io-console/io-console-0.6.0-r1.ebuild
similarity index 86%
rename from dev-ruby/io-console/io-console-0.6.0.ebuild
rename to dev-ruby/io-console/io-console-0.6.0-r1.ebuild
index 6c1240d7498a..54a0ae2fb86d 100644
--- a/dev-ruby/io-console/io-console-0.6.0.ebuild
+++ b/dev-ruby/io-console/io-console-0.6.0-r1.ebuild
@@ -29,6 +29,10 @@ all_ruby_prepare() {
        # Avoid test that require a proper TTY
        sed -e '/test_\(bad_keyword\|failed_path\)/aomit "requires TTY"' \
                -i test/io/console/test_io_console.rb || die
+
+       # Remove ruby and ffi files in accordance with the gemspec. These
+       # are only used when using a different ruby engine like jruby.
+       rm -fr lib/io/console.rb lib/io/console/ffi || die
 }
 
 each_ruby_test() {

Reply via email to