mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-ruby/rdoc: add 7.0.2
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
@@ -6,3 +6,4 @@ DIST rdoc-6.15.1.tar.gz 866723 BLAKE2B d3f1a4f24a568df491662887fb0c889f81cb4e515
|
||||
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
|
||||
|
||||
111
dev-ruby/rdoc/rdoc-7.0.2.ebuild
Normal file
111
dev-ruby/rdoc/rdoc-7.0.2.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user