commit:     48be8988d28f59c96833695a12da03ff5631cedf
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 26 21:24:14 2025 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Fri Dec 26 21:24:14 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48be8988

Revert "dev-ruby/rdoc: drop 6.11.0, 6.14.2-r1, 6.15.0, 7.0.1"

This reverts commit 230f84d41336b8f438272295149d67926e1145e2.

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

 dev-ruby/rdoc/Manifest              |   4 ++
 dev-ruby/rdoc/rdoc-6.11.0.ebuild    | 102 +++++++++++++++++++++++++++++++++
 dev-ruby/rdoc/rdoc-6.14.2-r1.ebuild | 108 +++++++++++++++++++++++++++++++++++
 dev-ruby/rdoc/rdoc-6.15.0.ebuild    | 111 ++++++++++++++++++++++++++++++++++++
 dev-ruby/rdoc/rdoc-7.0.1.ebuild     | 111 ++++++++++++++++++++++++++++++++++++
 5 files changed, 436 insertions(+)

diff --git a/dev-ruby/rdoc/Manifest b/dev-ruby/rdoc/Manifest
index bd155ba73cfa..b84a6859fc63 100644
--- a/dev-ruby/rdoc/Manifest
+++ b/dev-ruby/rdoc/Manifest
@@ -1,6 +1,10 @@
+DIST rdoc-6.11.0.tar.gz 798268 BLAKE2B 
facb81a6da071e388260ad4ac04632fe3eb63790c20999bc14ba38668ef3dbaf473fd619629fb14067c3266a92d8abecdf1f507ad75c8e13615e14f4f96d49c0
 SHA512 
9433ca7dea0d75b539bf247204fe6e5926c1d46e31f8ea9b4fec89d2ba2d0b639e62de360526b15738762042e35aed21a58ea7d32d1f0469b4ce6ca116c545c5
 DIST rdoc-6.13.1.tar.gz 799699 BLAKE2B 
a91799a74a97ebd7646aff6bf6a8866992fc9b5ed4cfa20c7e4441069fce62c8aa574da9d979a6baaae4d16f45705082955fc07d0df0630ab1e8e0f8e1f9aab0
 SHA512 
8c50e33ea192c61037bfb5a7118efe56c23f882f3c80cc78c18b0f2c7ae61a7da7cc18b6beb8ff2c4cf75764cbf33e4d56a090f5ecdb2ba1e91686b81531718e
+DIST rdoc-6.14.2.tar.gz 802779 BLAKE2B 
e4e45ce0d2089575bc3192dbc16689c624daca94b27f0c2d9c111310699d4a3b494d9fc3f5f3229347a66a5c1836782429ffac7feed1222d7724f3ef91ca52e1
 SHA512 
2f76c380b91d9809e97c4185a93756a07d062f26ca44260a7f26337fbb05b5b46094aaf402e225ea8b75e5a5a222eb9943f129c96e6f63882198a7463588868c
+DIST rdoc-6.15.0.tar.gz 861759 BLAKE2B 
67a837fe53de406e3d3bbf2040a06f251c1236c4d129d4eb03d3c83053a3c9942e20c2e7856d8b7baed94ecdc63bc5d3cb8b6599486a25ca2e7229033c01efb0
 SHA512 
f2659f5ba3b68d5aa41c3c53f3c5045dbc59410e8252e11eb093f7259641d43206c29a0c752b32bc67d05692aa8493d5738f7137d00b94835a73c30c12bc9b85
 DIST rdoc-6.15.1.tar.gz 866723 BLAKE2B 
d3f1a4f24a568df491662887fb0c889f81cb4e5151fef861f17f9b16e19419c95ed90cc5278d5a2be70369a86aa6e9b2057f7e620191426beef5d177fc08b80f
 SHA512 
62eb6fa773270616d77c6793df3bbb49fa2935673ef19278d53f2f9bfae1001b1a35478c2d7ce122d717ebfe759c22220735768bff323ee4cddb72de9d32d6ba
 DIST rdoc-6.16.1.tar.gz 912501 BLAKE2B 
f50a06eacd8200ddb38b78fb5cafb6d6c3e4f453ed96673923c77714f372f21386a7668824ab950ac2d9929e4c5ae19d8c256fc497bebafb4e0ef3da5d60c684
 SHA512 
0c62fc5f66d62925dacab83280b55ad2fd6d073612b3482d52d68762410a8d61c2c085e7118ced3244621eec5c134255338cf818c49d73f68caccd0bad970c11
 DIST rdoc-6.8.1.tar.gz 794457 BLAKE2B 
d239d482e6f06604ceee39e493bf3151b44895c774c3f23dee2858acb012196e0ec6837bc22da5ad854d28b20043392a4e0cbab3cff7dddfaab3c13d03f94e23
 SHA512 
b355b79c010d2918701b5bb52a326b6e7e10e33c457db3ac9d07592b8b0ef7fa01257a590dbbc1d22f0bec585f02a995b05c3c348cd081dbd75af87da4e0d7d1
+DIST rdoc-7.0.1.tar.gz 925234 BLAKE2B 
0039f687d237765b2cf7f326e43691786afe65e395129d3e159dcf5b5df215c60f3bf2cf9fefe4f9184bf85c97086b52d0fcc0bd88839cd1682d1638e6e54002
 SHA512 
63a315db67d429307b390e641831d545b2a6880b47f9ec38053197f88d4562cd86e3f219245701171fc2365becdba7142ca8f548e5140fe4a114f6615d7a1f21
 DIST rdoc-7.0.2.tar.gz 925507 BLAKE2B 
e84810eb50141abc38a964abb07a00db7ab094e902639eb18c8e75fa719843e2e7bae0043d41af04894112deba7c9c8261ecc35e4c5caeb9e8d812a3daf5fc09
 SHA512 
070c7bf5e7c85810e6e0c8eebde9fb25ffc08dd53d05273dd8e5c46c19dbf36e1ea7415b5a4df9061fced3b681270d0466a9cd789ab7bc5a5231dbca2930f84e
 DIST rdoc-7.0.3.tar.gz 927324 BLAKE2B 
ed7d3930866a9874284570372255b5b36280d4a2939d8bb551ae1a4eb77bc73e1d88c2d2ce4362b1fcbeb204038a0fe250450685322b5274047d4e28693d4c81
 SHA512 
fc603b52098becf83c3aa35c96691e575201b439e988e8e3a6fb60c7c03d0438f8db619761f68cda307606337b572d637d088450b920630badff6a8b607f066a

diff --git a/dev-ruby/rdoc/rdoc-6.11.0.ebuild b/dev-ruby/rdoc/rdoc-6.11.0.ebuild
new file mode 100644
index 000000000000..c36225e32fe1
--- /dev/null
+++ b/dev-ruby/rdoc/rdoc-6.11.0.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby31 ruby32 ruby33 ruby34"
+
+RUBY_FAKEGEM_RECIPE_DOC=""
+RUBY_FAKEGEM_DOCDIR="doc"
+RUBY_FAKEGEM_EXTRADOC="History.rdoc README.rdoc RI.md TODO.rdoc"
+
+RUBY_FAKEGEM_BINWRAP=""
+RUBY_FAKEGEM_BINDIR="exe"
+
+RUBY_FAKEGEM_GEMSPEC="rdoc.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="An extended version of the RDoc library from Ruby 1.8"
+HOMEPAGE="https://github.com/ruby/rdoc/";
+SRC_URI="https://github.com/ruby/rdoc/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="|| ( GPL-2 Ruby-BSD )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris"
+IUSE="doc"
+
+RDEPEND=">=app-eselect/eselect-ruby-20181225"
+
+ruby_add_rdepend "
+       >=dev-ruby/psych-4.0.0
+"
+
+ruby_add_bdepend "
+       >=dev-ruby/kpeg-1.1.0-r1
+       >dev-ruby/racc-1.4.10
+       dev-ruby/rake
+       test? (
+               dev-ruby/bundler
+               >=dev-ruby/minitest-5.8:5
+               dev-ruby/test-unit-ruby-core
+       )"
+
+all_ruby_prepare() {
+       # Other packages also have use for a nonexistent directory, bug 321059
+       sed -i -e 's#/nonexistent#/nonexistent_rdoc_tests#g' 
test/rdoc/test_rdoc*.rb || die
+
+       # Avoid unneeded dependency on bundler, bug 603696
+       sed -i -e '/bundler/ s:^:#:' \
+               -e 's/Bundler::GemHelper.gemspec.full_name/"rdoc"/' \
+               -e '/rubocop\/rake/ s:^:#:' \
+               -e '/RuboCop/,/end/ s:^:#:' Rakefile || die
+
+       # Skip rubygems tests since the rubygems test case code is no longer 
installed by rubygems.
+       sed -i -e '/^task/ s/, :rubygems_test//' Rakefile || die
+
+       # Remove test that is depending on the locale, which we can't garantuee.
+       sed -i -e '/def test_encode_with/,/^  end/ s:^:#:' 
test/rdoc/test_rdoc_options.rb || die
+
+       # Remove test depending on FEATURES=userpriv, bug 361959
+       sed -i -e '/def test_check_files/,/^  end/ s:^:#:' 
test/rdoc/test_rdoc_options.rb || die
+
+       # Remove test depending on currently unpackaged prism
+       rm -f test/rdoc/test_rdoc_parser_prism_ruby.rb || die
+
+       sed -i -e 's:_relative ": "./:' ${RUBY_FAKEGEM_GEMSPEC} || die
+}
+
+all_ruby_compile() {
+       all_fakegem_compile
+
+       if use doc ; then
+               ruby -S exe/rdoc --force-output || die
+               rm -f doc/js/*.gz || die
+       fi
+}
+
+each_ruby_compile() {
+       LANG=C.UTF-8 ${RUBY} -S rake generate || die
+}
+
+all_ruby_install() {
+       all_fakegem_install
+
+       for bin in rdoc ri; do
+               ruby_fakegem_binwrapper $bin /usr/bin/$bin-2
+
+               for version in $(ruby_get_use_implementations); do
+                       version=`echo ${version} | cut -c 5-`
+                       if use ruby_targets_ruby${version}; then
+                               ruby_fakegem_binwrapper $bin 
/usr/bin/${bin}${version}
+                               sed -i -e "1s/env ruby/ruby${version}/" \
+                                       "${ED}/usr/bin/${bin}${version}" || die
+                       fi
+               done
+       done
+}
+
+pkg_postinst() {
+       if [[ ! -n $(readlink "${ROOT}"/usr/bin/rdoc) ]] ; then
+               eselect ruby set $(eselect --brief --colour=no ruby show | head 
-n1)
+       fi
+}

diff --git a/dev-ruby/rdoc/rdoc-6.14.2-r1.ebuild 
b/dev-ruby/rdoc/rdoc-6.14.2-r1.ebuild
new file mode 100644
index 000000000000..6f80e9f3ca60
--- /dev/null
+++ b/dev-ruby/rdoc/rdoc-6.14.2-r1.ebuild
@@ -0,0 +1,108 @@
+# 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_DOC=""
+RUBY_FAKEGEM_DOCDIR="doc"
+RUBY_FAKEGEM_EXTRADOC="History.rdoc README.rdoc RI.md TODO.rdoc"
+
+RUBY_FAKEGEM_BINWRAP=""
+RUBY_FAKEGEM_BINDIR="exe"
+
+RUBY_FAKEGEM_GEMSPEC="rdoc.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="An extended version of the RDoc library from Ruby 1.8"
+HOMEPAGE="https://github.com/ruby/rdoc/";
+SRC_URI="https://github.com/ruby/rdoc/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="|| ( GPL-2 Ruby-BSD )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris"
+IUSE="doc"
+
+RDEPEND=">=app-eselect/eselect-ruby-20181225"
+
+ruby_add_rdepend "
+       dev-ruby/erb
+       >=dev-ruby/psych-4.0.0
+"
+
+ruby_add_bdepend "
+       >=dev-ruby/kpeg-1.1.0-r1
+       >dev-ruby/racc-1.4.10
+       dev-ruby/rake
+       test? (
+               dev-ruby/bundler
+               dev-ruby/prism
+               >=dev-ruby/minitest-5.8:5
+               dev-ruby/test-unit-ruby-core
+       )"
+
+all_ruby_prepare() {
+       # Other packages also have use for a nonexistent directory, bug 321059
+       sed -i -e 's#/nonexistent#/nonexistent_rdoc_tests#g' 
test/rdoc/rdoc*test.rb || die
+
+       # Avoid unneeded dependency on bundler, bug 603696
+       sed -i -e '/bundler/ s:^:#:' \
+               -e 's/Bundler::GemHelper.gemspec.full_name/"rdoc"/' \
+               -e '/rubocop\/rake/ s:^:#:' \
+               -e '/RuboCop/,/end/ s:^:#:' Rakefile || die
+
+       # Skip rubygems tests since the rubygems test case code is no longer 
installed by rubygems.
+       sed -i -e '/^task/ s/, :rubygems_test//' Rakefile || die
+
+       # Remove test that is depending on the locale, which we can't garantuee.
+       sed -i -e '/def test_encode_with/,/^  end/ s:^:#:' 
test/rdoc/rdoc_options_test.rb || die
+
+       # Remove test depending on FEATURES=userpriv, bug 361959
+       sed -i -e '/def test_check_files/,/^  end/ s:^:#:' 
test/rdoc/rdoc_options_test.rb || die
+
+       # Remove test depending on currently unpackaged prism
+       #rm -f test/rdoc/rdoc_parser_prism_ruby_test.rb || die
+
+       sed -e 's:_relative ": "./:' \
+               -e 's/__dir__/"."/' \
+               -i ${RUBY_FAKEGEM_GEMSPEC} || die
+}
+
+all_ruby_compile() {
+       all_fakegem_compile
+
+       if use doc ; then
+               ruby -S exe/rdoc --force-output || die
+               rm -f doc/js/*.gz || die
+       fi
+}
+
+each_ruby_compile() {
+       export LANG=C.UTF-8
+       ${RUBY} -S rake generate || die
+}
+
+all_ruby_install() {
+       all_fakegem_install
+
+       for bin in rdoc ri; do
+               ruby_fakegem_binwrapper $bin /usr/bin/$bin-2
+
+               for version in $(ruby_get_use_implementations); do
+                       version=`echo ${version} | cut -c 5-`
+                       if use ruby_targets_ruby${version}; then
+                               ruby_fakegem_binwrapper $bin 
/usr/bin/${bin}${version}
+                               sed -i -e "1s/env ruby/ruby${version}/" \
+                                       "${ED}/usr/bin/${bin}${version}" || die
+                       fi
+               done
+       done
+}
+
+pkg_postinst() {
+       if [[ ! -n $(readlink "${ROOT}"/usr/bin/rdoc) ]] ; then
+               eselect ruby set $(eselect --brief --colour=no ruby show | head 
-n1)
+       fi
+}

diff --git a/dev-ruby/rdoc/rdoc-6.15.0.ebuild b/dev-ruby/rdoc/rdoc-6.15.0.ebuild
new file mode 100644
index 000000000000..41c6dfd549b9
--- /dev/null
+++ b/dev-ruby/rdoc/rdoc-6.15.0.ebuild
@@ -0,0 +1,111 @@
+# 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_DOC=""
+RUBY_FAKEGEM_DOCDIR="doc"
+RUBY_FAKEGEM_EXTRADOC="History.rdoc README.md RI.md TODO.rdoc"
+
+RUBY_FAKEGEM_BINWRAP=""
+RUBY_FAKEGEM_BINDIR="exe"
+
+RUBY_FAKEGEM_GEMSPEC="rdoc.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="An extended version of the RDoc library from Ruby 1.8"
+HOMEPAGE="https://github.com/ruby/rdoc/";
+SRC_URI="https://github.com/ruby/rdoc/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="|| ( GPL-2 Ruby-BSD )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris"
+IUSE="doc"
+
+RDEPEND=">=app-eselect/eselect-ruby-20181225"
+
+ruby_add_rdepend "
+       dev-ruby/erb
+       >=dev-ruby/psych-4.0.0
+       dev-ruby/tsort
+"
+
+ruby_add_bdepend "
+       >=dev-ruby/kpeg-1.1.0-r1
+       >dev-ruby/racc-1.4.10
+       dev-ruby/rake
+       test? (
+               dev-ruby/bundler
+               dev-ruby/prism
+               >=dev-ruby/minitest-5.8:5
+               dev-ruby/test-unit-ruby-core
+       )"
+
+all_ruby_prepare() {
+       # Other packages also have use for a nonexistent directory, bug 321059
+       sed -i -e 's#/nonexistent#/nonexistent_rdoc_tests#g' 
test/rdoc/rdoc*test.rb || die
+
+       # Avoid unneeded dependency on bundler, bug 603696
+       sed -i -e '/bundler/ s:^:#:' \
+               -e 's/Bundler::GemHelper.gemspec.full_name/"rdoc"/' \
+               -e '/rubocop\/rake/ s:^:#:' \
+               -e '/RuboCop/,/])/ s:^:#:' Rakefile || die
+
+       # Skip rubygems tests since the rubygems test case code is no longer 
installed by rubygems.
+       sed -i -e '/^task/ s/, :rubygems_test//' Rakefile || die
+
+       # Remove test that is depending on the locale, which we can't garantuee.
+       sed -i -e '/def test_encode_with/,/^  end/ s:^:#:' 
test/rdoc/rdoc_options_test.rb || die
+
+       # Remove test depending on FEATURES=userpriv, bug 361959
+       sed -i -e '/def test_check_files/,/^  end/ s:^:#:' 
test/rdoc/rdoc_options_test.rb || die
+
+       sed -e 's:_relative ": "./:' \
+               -e 's/__dir__/"."/' \
+               -i ${RUBY_FAKEGEM_GEMSPEC} || die
+}
+
+each_ruby_prepare() {
+       sed -e "/sh/ s:\"bundle\", \"exec\", :\"${RUBY}\", \"-S\", :" \
+               -i Rakefile || die
+}
+
+all_ruby_compile() {
+       all_fakegem_compile
+
+       if use doc ; then
+               ruby -S exe/rdoc --force-output || die
+               rm -f doc/js/*.gz || die
+       fi
+}
+
+each_ruby_compile() {
+       export LANG=C.UTF-8
+       ${RUBY} -S rake generate || die
+}
+
+all_ruby_install() {
+       all_fakegem_install
+
+       for bin in rdoc ri; do
+               ruby_fakegem_binwrapper $bin /usr/bin/$bin-2
+
+               for version in $(ruby_get_use_implementations); do
+                       version=`echo ${version} | cut -c 5-`
+                       if use ruby_targets_ruby${version}; then
+                               ruby_fakegem_binwrapper $bin 
/usr/bin/${bin}${version}
+                               sed -i -e "1s/env ruby/ruby${version}/" \
+                                       "${ED}/usr/bin/${bin}${version}" || die
+                       fi
+               done
+       done
+}
+
+pkg_postinst() {
+       if [[ ! -n $(readlink "${ROOT}"/usr/bin/rdoc) ]] ; then
+               eselect ruby set $(eselect --brief --colour=no ruby show | head 
-n1)
+       fi
+}

diff --git a/dev-ruby/rdoc/rdoc-7.0.1.ebuild b/dev-ruby/rdoc/rdoc-7.0.1.ebuild
new file mode 100644
index 000000000000..a0da9b8612c7
--- /dev/null
+++ b/dev-ruby/rdoc/rdoc-7.0.1.ebuild
@@ -0,0 +1,111 @@
+# 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_DOC=""
+RUBY_FAKEGEM_DOCDIR="doc"
+RUBY_FAKEGEM_EXTRADOC="History.rdoc README.md RI.md TODO.rdoc"
+
+RUBY_FAKEGEM_BINWRAP=""
+RUBY_FAKEGEM_BINDIR="exe"
+
+RUBY_FAKEGEM_GEMSPEC="rdoc.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="An extended version of the RDoc library from Ruby 1.8"
+HOMEPAGE="https://github.com/ruby/rdoc/";
+SRC_URI="https://github.com/ruby/rdoc/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="|| ( GPL-2 Ruby-BSD )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris"
+IUSE="doc"
+
+RDEPEND=">=app-eselect/eselect-ruby-20181225"
+
+ruby_add_rdepend "
+       dev-ruby/erb
+       >=dev-ruby/psych-4.0.0
+       dev-ruby/tsort
+"
+
+ruby_add_bdepend "
+       >=dev-ruby/kpeg-1.1.0-r1
+       >=dev-ruby/racc-1.4.10
+       dev-ruby/rake
+       test? (
+               dev-ruby/bundler
+               dev-ruby/prism
+               >=dev-ruby/minitest-5.8:5
+               dev-ruby/test-unit-ruby-core
+       )"
+
+all_ruby_prepare() {
+       # Other packages also have use for a nonexistent directory, bug 321059
+       sed -i -e 's#/nonexistent#/nonexistent_rdoc_tests#g' 
test/rdoc/rdoc*test.rb || die
+
+       # Avoid unneeded dependency on bundler, bug 603696
+       sed -e '/bundler/ s:^:#:' \
+               -e 's/Bundler::GemHelper.gemspec.full_name/"rdoc"/' \
+               -e "/require 'rubocop'/,/])/ s:^:#:" \
+               -i Rakefile || die
+
+       # Skip rubygems tests since the rubygems test case code is no longer 
installed by rubygems.
+       sed -i -e '/^task/ s/, :rubygems_test//' Rakefile || die
+
+       # Remove test that is depending on the locale, which we can't garantuee.
+       sed -i -e '/def test_encode_with/,/^  end/ s:^:#:' 
test/rdoc/rdoc_options_test.rb || die
+
+       # Remove test depending on FEATURES=userpriv, bug 361959
+       sed -i -e '/def test_check_files/,/^  end/ s:^:#:' 
test/rdoc/rdoc_options_test.rb || die
+
+       sed -e 's:_relative ": "./:' \
+               -e 's/__dir__/"."/' \
+               -i ${RUBY_FAKEGEM_GEMSPEC} || die
+}
+
+each_ruby_prepare() {
+       sed -e "/sh/ s:\"bundle\", \"exec\", :\"${RUBY}\", \"-S\", :" \
+               -i Rakefile || die
+}
+
+all_ruby_compile() {
+       all_fakegem_compile
+
+       if use doc ; then
+               ruby -S exe/rdoc --force-output || die
+               rm -f doc/js/*.gz || die
+       fi
+}
+
+each_ruby_compile() {
+       export LANG=C.UTF-8
+       ${RUBY} -S rake generate || die
+}
+
+all_ruby_install() {
+       all_fakegem_install
+
+       for bin in rdoc ri; do
+               ruby_fakegem_binwrapper $bin /usr/bin/$bin-2
+
+               for version in $(ruby_get_use_implementations); do
+                       version=`echo ${version} | cut -c 5-`
+                       if use ruby_targets_ruby${version}; then
+                               ruby_fakegem_binwrapper $bin 
/usr/bin/${bin}${version}
+                               sed -i -e "1s/env ruby/ruby${version}/" \
+                                       "${ED}/usr/bin/${bin}${version}" || die
+                       fi
+               done
+       done
+}
+
+pkg_postinst() {
+       if [[ ! -n $(readlink "${ROOT}"/usr/bin/rdoc) ]] ; then
+               eselect ruby set $(eselect --brief --colour=no ruby show | head 
-n1)
+       fi
+}

Reply via email to