diff options
Diffstat (limited to 'dev-ruby/rdoc')
-rw-r--r-- | dev-ruby/rdoc/Manifest | 2 | ||||
-rw-r--r-- | dev-ruby/rdoc/rdoc-6.9.0.ebuild | 102 |
2 files changed, 104 insertions, 0 deletions
diff --git a/dev-ruby/rdoc/Manifest b/dev-ruby/rdoc/Manifest index d6fba0c76fd0..f6c998cd9b06 100644 --- a/dev-ruby/rdoc/Manifest +++ b/dev-ruby/rdoc/Manifest @@ -1,7 +1,9 @@ DIST rdoc-6.6.3.1.tar.gz 766103 BLAKE2B 15cef9df763e40e105155d49c6c0c1a449c366ac35ab6036c43773c52114f00b19109b056033366b873b5b3317a3bf11c574dd76094d8f606fa0916a84257d0a SHA512 c6f3aae83e895e2de28e5a7c27456160dd53007ceb4464a045e0211473eb3d51f49a7c2ac28f2e44e807c5b36447140d15eadff65bfa52335e94adc9c8b56d2e DIST rdoc-6.7.0.tar.gz 767264 BLAKE2B 7bedae692e84e6b0b587dbcc4b8ff59401d5ef012bbfcacdf9d8ac216dd9a0c90b43c8cf61af2584280387ee7eb6c869b0a3205f9fcb4d4e1d98b0f326102a51 SHA512 d53fc591b6c8ead457c0fd04d3d20039fa1820d65d3fee0d8d0c584ce49a9a58f30d5bfd8fe6fd02efed77bcd8fa0c2cde8342430a9be483d17b31055e58570e DIST rdoc-6.8.1.tar.gz 794457 BLAKE2B d239d482e6f06604ceee39e493bf3151b44895c774c3f23dee2858acb012196e0ec6837bc22da5ad854d28b20043392a4e0cbab3cff7dddfaab3c13d03f94e23 SHA512 b355b79c010d2918701b5bb52a326b6e7e10e33c457db3ac9d07592b8b0ef7fa01257a590dbbc1d22f0bec585f02a995b05c3c348cd081dbd75af87da4e0d7d1 +DIST rdoc-6.9.0.tar.gz 796468 BLAKE2B 9c0aef8a292ecdde04da0710898319a08cc73eb29c3d4ab1b7a72ecce23e61644ceee49261676df4a24c212b67d0d0dac259fdfcad89be0813ba7e0f69cf812a SHA512 187adc7ac068a2821514aa895c5bdeb5438f3986a187053f353a26b8a4b37eefa26f7b00993fdb689d144184c2cf800ed3d63ee77e7131335c17b6c21674f0fc EBUILD rdoc-6.6.3.1-r1.ebuild 2757 BLAKE2B 867ee751980469d9f82ba4bfbf2f8de3ca41ed9f356ec5cd9d7b3d38f9a88f30c698f325786be6428efd15cfc99393c868ab872948011fced3890ec131b2842e SHA512 b53d1b7adcd838294727923102ba35ae6a8683ff04d711e13cc6f72929bb6c96c913e4f5732e5bb39bd117b6259872ad6f635ccc312a8701227cdc7ef2d1c9ce EBUILD rdoc-6.7.0.ebuild 2764 BLAKE2B ca106a67fdd00d48928306dcdab968e8e977766019342b16c3850aeaa8f14a5ca688d20330a9ab1765e0ac83747dc68b125c30117482b8450af13b01ba6e873c SHA512 d2dfcf82e351f0f8e031b7ed105165d0405ddcedb8fd2f38acea24d6c0f89d46523324c6017940c9d5257a60c9fc1fd016ddc6748d2394765dd19aee0bc7822c EBUILD rdoc-6.8.1.ebuild 2872 BLAKE2B 38a18ca13d2a0e8e0714075280e5fc1c3239602820d4dcfa1e1a932841ac23613a6a879057664b81e3d92042950a73a7038331a59b8bb45e14f47285569759d0 SHA512 59bc3718654c900330e0d1fa81df74af5a33d4a303084301aca60a0d4c94df9897e5262e3673b975d3fe49dae58a094a2e901da0c80325c20a73fd1c23e5aad1 +EBUILD rdoc-6.9.0.ebuild 2872 BLAKE2B 38a18ca13d2a0e8e0714075280e5fc1c3239602820d4dcfa1e1a932841ac23613a6a879057664b81e3d92042950a73a7038331a59b8bb45e14f47285569759d0 SHA512 59bc3718654c900330e0d1fa81df74af5a33d4a303084301aca60a0d4c94df9897e5262e3673b975d3fe49dae58a094a2e901da0c80325c20a73fd1c23e5aad1 MISC metadata.xml 336 BLAKE2B 142894745c624081f44dfccc6509273287120a43ceb8d7471634d92ab970bbc7747ce12b3a770b085c8c55a30f2c52ee34e0f27ba4be804ee2056150fb3b035f SHA512 438973812b1541e96ffd4add9422bd19e2c09f3f5b8ddc3ef86a670827c6bce9ed9c1bf9df0601927c959584b63a9d0986d0377807856ab8301fc8a8176922e1 diff --git a/dev-ruby/rdoc/rdoc-6.9.0.ebuild b/dev-ruby/rdoc/rdoc-6.9.0.ebuild new file mode 100644 index 000000000000..1e84dfa851d3 --- /dev/null +++ b/dev-ruby/rdoc/rdoc-6.9.0.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby31 ruby32 ruby33" + +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/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 +} |