Gentoo Archives: gentoo-commits

From: "Hans de Graaff (graaff)" <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ruby/rdoc: ChangeLog rdoc-4.0.1-r2.ebuild
Date: Thu, 26 Dec 2013 09:27:16
Message-Id: 20131226092713.AC9D02004C@flycatcher.gentoo.org
1 graaff 13/12/26 09:27:13
2
3 Modified: ChangeLog
4 Added: rdoc-4.0.1-r2.ebuild
5 Log:
6 Add revision for ruby21.
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)
9
10 Revision Changes Path
11 1.123 dev-ruby/rdoc/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rdoc/ChangeLog?rev=1.123&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rdoc/ChangeLog?rev=1.123&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rdoc/ChangeLog?r1=1.122&r2=1.123
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/rdoc/ChangeLog,v
20 retrieving revision 1.122
21 retrieving revision 1.123
22 diff -u -r1.122 -r1.123
23 --- ChangeLog 20 Dec 2013 15:54:55 -0000 1.122
24 +++ ChangeLog 26 Dec 2013 09:27:13 -0000 1.123
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-ruby/rdoc
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rdoc/ChangeLog,v 1.122 2013/12/20 15:54:55 hattya Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rdoc/ChangeLog,v 1.123 2013/12/26 09:27:13 graaff Exp $
30 +
31 +*rdoc-4.0.1-r2 (26 Dec 2013)
32 +
33 + 26 Dec 2013; Hans de Graaff <graaff@g.o> +rdoc-4.0.1-r2.ebuild:
34 + Add revision for ruby21.
35
36 20 Dec 2013; Akinori Hattori <hattya@g.o> rdoc-4.0.1-r1.ebuild:
37 ia64 stable wrt bug #483254
38
39
40
41 1.1 dev-ruby/rdoc/rdoc-4.0.1-r2.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rdoc/rdoc-4.0.1-r2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rdoc/rdoc-4.0.1-r2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: rdoc-4.0.1-r2.ebuild
47 ===================================================================
48 # Copyright 1999-2013 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/rdoc/rdoc-4.0.1-r2.ebuild,v 1.1 2013/12/26 09:27:13 graaff Exp $
51
52 EAPI=5
53 USE_RUBY="ruby18 ruby19 ruby20 ruby21 jruby"
54
55 RUBY_FAKEGEM_TASK_DOC=""
56 RUBY_FAKEGEM_DOCDIR="doc"
57 RUBY_FAKEGEM_EXTRADOC="History.rdoc README.rdoc RI.rdoc TODO.rdoc"
58
59 RUBY_FAKEGEM_BINWRAP=""
60
61 inherit ruby-fakegem eutils
62
63 DESCRIPTION="An extended version of the RDoc library from Ruby 1.8"
64 HOMEPAGE="https://github.com/rdoc/rdoc/"
65
66 LICENSE="Ruby MIT"
67 SLOT="0"
68 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"
69 IUSE=""
70
71 ruby_add_bdepend "
72 dev-ruby/racc
73 test? (
74 >=dev-ruby/minitest-4:0
75 )"
76
77 ruby_add_rdepend "=dev-ruby/json-1* >=dev-ruby/json-1.4"
78
79 all_ruby_prepare() {
80 # Other packages also have use for a nonexistent directory, bug 321059
81 sed -i -e 's#/nonexistent#/nonexistent_rdoc_tests#g' test/test_rdoc*.rb || die
82
83 # Remove unavailable and unneeded isolate plugin for Hoe
84 sed -i -e '/isolate/d' Rakefile || die
85
86 # Remove licenses line from Hoe definitions so we also use older versions.
87 sed -i -e '/licenses/ s:^:#:' Rakefile || die
88
89 epatch "${FILESDIR}/${PN}-3.0.1-bin-require.patch"
90
91 # Remove test that is depending on the locale, which we can't garantuee.
92 sed -i -e '/def test_encode_with/,/^ end/ s:^:#:' test/test_rdoc_options.rb || die
93
94 # Remove test depending on FEATURES=userpriv, bug 361959
95 sed -i -e '/def test_check_files/,/^ end/ s:^:#:' test/test_rdoc_options.rb || die
96
97 # Avoid the generate rule since it doesn't work on jruby, see below.
98 sed -i -e '/:generate/d' Rakefile || die
99
100 # Make sure we get the expected version of minitest.
101 echo 'gem "minitest", "~> 4.0"' > test/test_0000.rb || die
102 }
103
104 all_ruby_compile() {
105 all_fakegem_compile
106
107 if use doc ; then
108 ruby -Ilib -S bin/rdoc || die
109 fi
110 }
111
112 each_ruby_compile() {
113 # Generate the file inline here since the Rakefile confuses jruby
114 # into a circular dependency.
115 for file in lib/rdoc/rd/block_parser lib/rdoc/rd/inline_parser ; do
116 ${RUBY} -S racc -l -o ${file}.rb ${file}.ry || die
117 done
118 }
119
120 each_ruby_test() {
121 ${RUBY} -Ilib -S testrb test/test_*.rb || die
122 }
123
124 all_ruby_install() {
125 all_fakegem_install
126
127 for bin in rdoc ri; do
128 ruby_fakegem_binwrapper $bin /usr/bin/$bin-2
129
130 for version in 19 20 21; do
131 if use ruby_targets_ruby${version}; then
132 ruby_fakegem_binwrapper $bin /usr/bin/${bin}${version}
133 sed -i -e "1s/env ruby/ruby${version}/" \
134 "${ED}/usr/bin/${bin}${version}" || die
135 fi
136 done
137 done
138 }