commit: f780512c9b4956587b2ef4fb742d681ced8b6d43 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> AuthorDate: Sun Jul 6 04:53:38 2025 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Sun Jul 6 04:53:38 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f780512c
dev-ruby/rdoc: add 6.14.2 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> dev-ruby/rdoc/Manifest | 1 + dev-ruby/rdoc/rdoc-6.14.2.ebuild | 106 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 107 insertions(+) diff --git a/dev-ruby/rdoc/Manifest b/dev-ruby/rdoc/Manifest index 32fc1e886a67..1837974cd606 100644 --- a/dev-ruby/rdoc/Manifest +++ b/dev-ruby/rdoc/Manifest @@ -2,4 +2,5 @@ DIST rdoc-6.11.0.tar.gz 798268 BLAKE2B facb81a6da071e388260ad4ac04632fe3eb63790c DIST rdoc-6.13.1.tar.gz 799699 BLAKE2B a91799a74a97ebd7646aff6bf6a8866992fc9b5ed4cfa20c7e4441069fce62c8aa574da9d979a6baaae4d16f45705082955fc07d0df0630ab1e8e0f8e1f9aab0 SHA512 8c50e33ea192c61037bfb5a7118efe56c23f882f3c80cc78c18b0f2c7ae61a7da7cc18b6beb8ff2c4cf75764cbf33e4d56a090f5ecdb2ba1e91686b81531718e DIST rdoc-6.14.0.tar.gz 802328 BLAKE2B 13d31b5ed5b7c1ed7cce0d4fc328dbca6d857c248b151d55fef0959395466744ed8f9dae9b3eb60a58783951125a762c878a697bf0f3e1a9e462cc64287b6073 SHA512 cbf69eb8abfee455a7090f7a6f767be2e3b1ee46a5effb86a97c1407a9fcd26c968c51af1ffc685add1c4e66e9fbe171aad4514a5fca9268b60fa0a732a0a8e7 DIST rdoc-6.14.1.tar.gz 802344 BLAKE2B fa79a82092abf883f09ce88e7409cccacaea877cbd0b499846d782824be5775fa9339e32c875091041da7e401e050b53b1cd74382034ef494e440727a72fd75d SHA512 a4653e6bbab88c4fe6a4a728150aaef61a6546f27952849b208be455ad8bf0e13744f400d35e6bfab77440872b1dc0119729bf6a6d21ee0228fadc9e92c905b2 +DIST rdoc-6.14.2.tar.gz 802779 BLAKE2B e4e45ce0d2089575bc3192dbc16689c624daca94b27f0c2d9c111310699d4a3b494d9fc3f5f3229347a66a5c1836782429ffac7feed1222d7724f3ef91ca52e1 SHA512 2f76c380b91d9809e97c4185a93756a07d062f26ca44260a7f26337fbb05b5b46094aaf402e225ea8b75e5a5a222eb9943f129c96e6f63882198a7463588868c DIST rdoc-6.8.1.tar.gz 794457 BLAKE2B d239d482e6f06604ceee39e493bf3151b44895c774c3f23dee2858acb012196e0ec6837bc22da5ad854d28b20043392a4e0cbab3cff7dddfaab3c13d03f94e23 SHA512 b355b79c010d2918701b5bb52a326b6e7e10e33c457db3ac9d07592b8b0ef7fa01257a590dbbc1d22f0bec585f02a995b05c3c348cd081dbd75af87da4e0d7d1 diff --git a/dev-ruby/rdoc/rdoc-6.14.2.ebuild b/dev-ruby/rdoc/rdoc-6.14.2.ebuild new file mode 100644 index 000000000000..1ea4b946ac9e --- /dev/null +++ b/dev-ruby/rdoc/rdoc-6.14.2.ebuild @@ -0,0 +1,106 @@ +# 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 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-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 -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() { + 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 +}