1 |
commit: 4f9ad88829913d5118fac387a631009134a39227 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 12 07:32:21 2015 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 12 07:35:41 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f9ad888 |
7 |
|
8 |
dev-ruby/rdoc: cleanup |
9 |
|
10 |
Package-Manager: portage-2.2.24 |
11 |
|
12 |
dev-ruby/rdoc/rdoc-4.0.1-r1.ebuild | 95 -------------------------------------- |
13 |
1 file changed, 95 deletions(-) |
14 |
|
15 |
diff --git a/dev-ruby/rdoc/rdoc-4.0.1-r1.ebuild b/dev-ruby/rdoc/rdoc-4.0.1-r1.ebuild |
16 |
deleted file mode 100644 |
17 |
index b80b193..0000000 |
18 |
--- a/dev-ruby/rdoc/rdoc-4.0.1-r1.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,95 +0,0 @@ |
21 |
-# Copyright 1999-2014 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
-# $Id$ |
24 |
- |
25 |
-EAPI=5 |
26 |
-USE_RUBY="ruby19 ruby20" |
27 |
- |
28 |
-RUBY_FAKEGEM_TASK_DOC="" |
29 |
-RUBY_FAKEGEM_DOCDIR="doc" |
30 |
-RUBY_FAKEGEM_EXTRADOC="History.rdoc README.rdoc RI.rdoc TODO.rdoc" |
31 |
- |
32 |
-RUBY_FAKEGEM_BINWRAP="" |
33 |
- |
34 |
-inherit ruby-fakegem eutils |
35 |
- |
36 |
-DESCRIPTION="An extended version of the RDoc library from Ruby 1.8" |
37 |
-HOMEPAGE="https://github.com/rdoc/rdoc/" |
38 |
- |
39 |
-LICENSE="Ruby MIT" |
40 |
-SLOT="0" |
41 |
-KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
42 |
-IUSE="" |
43 |
- |
44 |
-ruby_add_bdepend " |
45 |
- dev-ruby/racc |
46 |
- test? ( |
47 |
- virtual/ruby-minitest |
48 |
- )" |
49 |
- |
50 |
-ruby_add_rdepend "=dev-ruby/json-1* >=dev-ruby/json-1.4" |
51 |
- |
52 |
-# This ebuild replaces rdoc in ruby-1.9.2 and later. |
53 |
-# ruby 1.8.6 is no longer supported. |
54 |
-RDEPEND="${RDEPEND} |
55 |
- ruby_targets_ruby19? ( |
56 |
- >=dev-lang/ruby-1.9.2:1.9 |
57 |
- )" |
58 |
- |
59 |
-all_ruby_prepare() { |
60 |
- # Other packages also have use for a nonexistent directory, bug 321059 |
61 |
- sed -i -e 's#/nonexistent#/nonexistent_rdoc_tests#g' test/test_rdoc*.rb || die |
62 |
- |
63 |
- # Remove unavailable and unneeded isolate plugin for Hoe |
64 |
- sed -i -e '/isolate/d' Rakefile || die |
65 |
- |
66 |
- # Remove licenses line from Hoe definitions so we also use older versions. |
67 |
- sed -i -e '/licenses/ s:^:#:' Rakefile || die |
68 |
- |
69 |
- epatch "${FILESDIR}/${PN}-3.0.1-bin-require.patch" |
70 |
- |
71 |
- # Remove test that is depending on the locale, which we can't garantuee. |
72 |
- sed -i -e '/def test_encode_with/,/^ end/ s:^:#:' test/test_rdoc_options.rb || die |
73 |
- |
74 |
- # Remove test depending on FEATURES=userpriv, bug 361959 |
75 |
- sed -i -e '/def test_check_files/,/^ end/ s:^:#:' test/test_rdoc_options.rb || die |
76 |
- |
77 |
- # Avoid the generate rule since it doesn't work on jruby, see below. |
78 |
- sed -i -e '/:generate/d' Rakefile || die |
79 |
-} |
80 |
- |
81 |
-all_ruby_compile() { |
82 |
- all_fakegem_compile |
83 |
- |
84 |
- if use doc ; then |
85 |
- ruby -Ilib -S bin/rdoc || die |
86 |
- fi |
87 |
-} |
88 |
- |
89 |
-each_ruby_compile() { |
90 |
- # Generate the file inline here since the Rakefile confuses jruby |
91 |
- # into a circular dependency. |
92 |
- for file in lib/rdoc/rd/block_parser lib/rdoc/rd/inline_parser ; do |
93 |
- ${RUBY} -S racc -l -o ${file}.rb ${file}.ry || die |
94 |
- done |
95 |
-} |
96 |
- |
97 |
-each_ruby_test() { |
98 |
- ${RUBY} -Ilib -S testrb test/test_*.rb || die |
99 |
-} |
100 |
- |
101 |
-all_ruby_install() { |
102 |
- all_fakegem_install |
103 |
- |
104 |
- for bin in rdoc ri; do |
105 |
- ruby_fakegem_binwrapper $bin /usr/bin/$bin-2 |
106 |
- |
107 |
- for version in 19 20; do |
108 |
- if use ruby_targets_ruby${version}; then |
109 |
- ruby_fakegem_binwrapper $bin /usr/bin/${bin}${version} |
110 |
- sed -i -e "1s/env ruby/ruby${version}/" \ |
111 |
- "${ED}/usr/bin/${bin}${version}" || die |
112 |
- fi |
113 |
- done |
114 |
- done |
115 |
-} |