From d6fe3a53bdeea6b060d1755199cc2c27492dc14c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 10 Apr 2023 11:36:37 +0100 Subject: gentoo auto-resync : 10:04:2023 - 11:36:36 --- dev-ruby/racc/Manifest | 2 +- dev-ruby/racc/racc-1.6.2.ebuild | 16 ++++++++++++---- 2 files changed, 13 insertions(+), 5 deletions(-) (limited to 'dev-ruby/racc') diff --git a/dev-ruby/racc/Manifest b/dev-ruby/racc/Manifest index 527ffede7266..14ae817317ef 100644 --- a/dev-ruby/racc/Manifest +++ b/dev-ruby/racc/Manifest @@ -1,3 +1,3 @@ DIST racc-1.6.2.tar.gz 470740 BLAKE2B c21e01cd7a11573774218ba97de3f58ebdbc4b138def4dfb2620b626d68e71a72f66a7e7f7644707942d4ec5f387b848aa00aa1d7dd81fc98f50b1c23ce118cb SHA512 ef577d0da440361702d15cf2127142e57d5af4146f120cd9d94ee8c8b4380810c8913c373a9969f09b50e0850a8ac04ffd22729c4abdab0670765c7379b549f6 -EBUILD racc-1.6.2.ebuild 1534 BLAKE2B 7272015b137bd01331056f55b472b5d7edcb7dadd34316c15a35828ee35f2b4893f0dcd91aead1c0ece4bc3fdd6d17c550ef1b81dc86d13df90c48bf0574d3a1 SHA512 a76cae02feace2a9215310a75f444c46fc7b55f766dc7f7fc4e164572705cc0b87c6a9005dae2d37db66ec21f4c9d058fc86822de1950469b1232a6b8db35bb9 +EBUILD racc-1.6.2.ebuild 1791 BLAKE2B 69ab223b153fd07f6ba25b71d622fcc026fdf7dfb3d6620b0d9644f18608d009070140e837d4da822624d72e5ea086110f4c149a303877b827cce3aecb7cb6f1 SHA512 1d8c7cc86aaaf51e874fe2e1785065ad0a212d6eef7edb1e4e972aa2b9ee5d30fc9d86b262e2689a8a3afdad06fa415a0cc4bdb2c01e2b75c3d8e25b0ee45f79 MISC metadata.xml 332 BLAKE2B a8a4b14418894206acc7f1e27c92162ef02d0554395b9e5b2727b231f435b2c31fa0ad7aa746a8e095eebeb3b0a53352709880609fd4e3427ba90c6528df9343 SHA512 88ab246151ead3016e6c9480043db93b9ecfe6c282ea0663e4882185af124e3c531b8186a96e105cc90867ac05c0cffcfcf043e0f67303bbca4f8c7cd0c56043 diff --git a/dev-ruby/racc/racc-1.6.2.ebuild b/dev-ruby/racc/racc-1.6.2.ebuild index ecf5e73559a8..a568aa1d0569 100644 --- a/dev-ruby/racc/racc-1.6.2.ebuild +++ b/dev-ruby/racc/racc-1.6.2.ebuild @@ -36,10 +36,18 @@ all_ruby_prepare() { # Avoid depending on rake-compiler since we don't use it to compile # the extension. - sed -i -e '/rake-compiler/ s:^:#:' -e '/extensiontask/ s:^:#:' Rakefile - sed -i -e '/ExtensionTask/,/^ end/ s:^:#:' Rakefile - # Which means we need to generate the parser file here - rake lib/racc/parser-text.rb || die + sed -i -e '/rake-compiler/ s:^:#:' -e '/extensiontask/ s:^:#:' Rakefile || die + sed -i -e '/ExtensionTask/,/^ end/ s:^:#:' Rakefile || die + + # ...which means we need to generate the parser file here + for ruby in ${USE_RUBY} ; do + if use ruby_targets_${ruby} ; then + if has_version -b "virtual/rubygems[ruby_targets_${ruby}(-)]" && has_version -b "dev-ruby/rake[ruby_targets_${ruby}(-)]" ; then + ${ruby} -S rake lib/racc/parser-text.rb || die + break + fi + fi + done sed -i -e 's:_relative ": "./:' ${RUBY_FAKEGEM_GEMSPEC} || die } -- cgit v1.2.3