From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4EF02158B20 for ; Fri, 07 Feb 2025 05:58:52 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 37D91343092 for ; Fri, 07 Feb 2025 05:58:52 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id B7B3D110477; Fri, 07 Feb 2025 05:58:39 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id A685C110475 for ; Fri, 07 Feb 2025 05:58:39 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 590EC342FA6 for ; Fri, 07 Feb 2025 05:58:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C212A26CC for ; Fri, 07 Feb 2025 05:58:36 +0000 (UTC) From: "Hans de Graaff" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" Message-ID: <1738907900.c9fff92c594f6f57d9d10e87b3d3eede114f7803.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/rdoc/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/rdoc/Manifest dev-ruby/rdoc/rdoc-6.12.0.ebuild X-VCS-Directories: dev-ruby/rdoc/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: c9fff92c594f6f57d9d10e87b3d3eede114f7803 X-VCS-Branch: master Date: Fri, 07 Feb 2025 05:58:36 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2ec357b9-ccad-4027-9cb9-21f8102f46ec X-Archives-Hash: bfaff746a8ff9b2595a339113f6fa9d5 commit: c9fff92c594f6f57d9d10e87b3d3eede114f7803 Author: Hans de Graaff gentoo org> AuthorDate: Fri Feb 7 05:58:01 2025 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Fri Feb 7 05:58:20 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9fff92c dev-ruby/rdoc: add 6.12.0 Signed-off-by: Hans de Graaff gentoo.org> dev-ruby/rdoc/Manifest | 1 + dev-ruby/rdoc/rdoc-6.12.0.ebuild | 102 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 103 insertions(+) diff --git a/dev-ruby/rdoc/Manifest b/dev-ruby/rdoc/Manifest index 8a732a30d9ce..f3717e2f3f87 100644 --- a/dev-ruby/rdoc/Manifest +++ b/dev-ruby/rdoc/Manifest @@ -1,5 +1,6 @@ DIST rdoc-6.10.0.tar.gz 797421 BLAKE2B f73029ea1d4984510a2ffe30ca608f609b218948b34ea9966e0ea0482b20946b90b753fe905109a042819677a291442fadc9e66961648db4f1bc442fc817600b SHA512 670295bf8dceb59100fcf6cef46942414d5b1367ff604be3623b5264955c879e37f0bbe382af48a22113f7702d6e3d6e2ed122b6649466779ae4bca1cb0c128b DIST rdoc-6.11.0.tar.gz 798268 BLAKE2B facb81a6da071e388260ad4ac04632fe3eb63790c20999bc14ba38668ef3dbaf473fd619629fb14067c3266a92d8abecdf1f507ad75c8e13615e14f4f96d49c0 SHA512 9433ca7dea0d75b539bf247204fe6e5926c1d46e31f8ea9b4fec89d2ba2d0b639e62de360526b15738762042e35aed21a58ea7d32d1f0469b4ce6ca116c545c5 +DIST rdoc-6.12.0.tar.gz 800200 BLAKE2B 1092cc76e3b33417ff2367d7e4ef751e2c26bf20625be74faffcda6f26b3528c2fe793c1ba92d77293c01fd90cb65b15fca84be83d96d22349e1e7c2793e618f SHA512 4b048f55145170f73a93dbfc87f2dfc82eeb4448f1b344e8cb56e17418724aba72500927e773b110d76c0c8423c097b31531c40913182b625030dcdb41123493 DIST rdoc-6.6.3.1.tar.gz 766103 BLAKE2B 15cef9df763e40e105155d49c6c0c1a449c366ac35ab6036c43773c52114f00b19109b056033366b873b5b3317a3bf11c574dd76094d8f606fa0916a84257d0a SHA512 c6f3aae83e895e2de28e5a7c27456160dd53007ceb4464a045e0211473eb3d51f49a7c2ac28f2e44e807c5b36447140d15eadff65bfa52335e94adc9c8b56d2e DIST rdoc-6.8.1.tar.gz 794457 BLAKE2B d239d482e6f06604ceee39e493bf3151b44895c774c3f23dee2858acb012196e0ec6837bc22da5ad854d28b20043392a4e0cbab3cff7dddfaab3c13d03f94e23 SHA512 b355b79c010d2918701b5bb52a326b6e7e10e33c457db3ac9d07592b8b0ef7fa01257a590dbbc1d22f0bec585f02a995b05c3c348cd081dbd75af87da4e0d7d1 DIST rdoc-6.9.1.tar.gz 796367 BLAKE2B 6d80fa5b903c4c87acfe18de2d6e75f92bfd57b0b998bb8f80572b06308334c0a42370f79160c1b761cccfcb7810f1877fcbb3315381c8ec962b5f4c7bf7fb68 SHA512 24fbaf6f9c32bbde9b29267f5865c812382bf6afcddb6bc3b4a3427d068294609f102b6ed1859a7e3da7491fbb9105e9cfd99231a64645ee9968120bd6710dc3 diff --git a/dev-ruby/rdoc/rdoc-6.12.0.ebuild b/dev-ruby/rdoc/rdoc-6.12.0.ebuild new file mode 100644 index 000000000000..e4ae4a575902 --- /dev/null +++ b/dev-ruby/rdoc/rdoc-6.12.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 ~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 +}