From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (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 69DAD15802C for ; Fri, 20 Dec 2024 06:07:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AB08CE0819; Fri, 20 Dec 2024 06:07:29 +0000 (UTC) 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 pigeon.gentoo.org (Postfix) with ESMTPS id 8AA84E0819 for ; Fri, 20 Dec 2024 06:07:29 +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 970D433BE26 for ; Fri, 20 Dec 2024 06:07:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C07041FBE for ; Fri, 20 Dec 2024 06:07:25 +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: <1734674688.7be6bdc6b647ba67ecb62b69977f6580f590337e.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.10.0.ebuild X-VCS-Directories: dev-ruby/rdoc/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 7be6bdc6b647ba67ecb62b69977f6580f590337e X-VCS-Branch: master Date: Fri, 20 Dec 2024 06:07:25 +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: 2c5ada8f-c244-41ac-a8c7-17bcb134c813 X-Archives-Hash: 50da50538501b5ef16314b001a0d5a54 commit: 7be6bdc6b647ba67ecb62b69977f6580f590337e Author: Hans de Graaff gentoo org> AuthorDate: Fri Dec 20 06:04:48 2024 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Fri Dec 20 06:04:48 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7be6bdc6 dev-ruby/rdoc: add 6.10.0 Signed-off-by: Hans de Graaff gentoo.org> dev-ruby/rdoc/Manifest | 1 + dev-ruby/rdoc/rdoc-6.10.0.ebuild | 102 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 103 insertions(+) diff --git a/dev-ruby/rdoc/Manifest b/dev-ruby/rdoc/Manifest index adc505cd0d8c..e98cf086583d 100644 --- a/dev-ruby/rdoc/Manifest +++ b/dev-ruby/rdoc/Manifest @@ -1,3 +1,4 @@ +DIST rdoc-6.10.0.tar.gz 797421 BLAKE2B f73029ea1d4984510a2ffe30ca608f609b218948b34ea9966e0ea0482b20946b90b753fe905109a042819677a291442fadc9e66961648db4f1bc442fc817600b SHA512 670295bf8dceb59100fcf6cef46942414d5b1367ff604be3623b5264955c879e37f0bbe382af48a22113f7702d6e3d6e2ed122b6649466779ae4bca1cb0c128b 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 diff --git a/dev-ruby/rdoc/rdoc-6.10.0.ebuild b/dev-ruby/rdoc/rdoc-6.10.0.ebuild new file mode 100644 index 000000000000..1e84dfa851d3 --- /dev/null +++ b/dev-ruby/rdoc/rdoc-6.10.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 +}