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.ebuild
Date: Mon, 03 Jun 2013 19:29:18
Message-Id: 20130603192913.16D492171D@flycatcher.gentoo.org
1 graaff 13/06/03 19:29:13
2
3 Modified: ChangeLog
4 Added: rdoc-4.0.1.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.1.11.62/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)
9
10 Revision Changes Path
11 1.112 dev-ruby/rdoc/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rdoc/ChangeLog?rev=1.112&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rdoc/ChangeLog?rev=1.112&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rdoc/ChangeLog?r1=1.111&r2=1.112
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/rdoc/ChangeLog,v
20 retrieving revision 1.111
21 retrieving revision 1.112
22 diff -u -r1.111 -r1.112
23 --- ChangeLog 2 Jun 2013 08:41:31 -0000 1.111
24 +++ ChangeLog 3 Jun 2013 19:29:12 -0000 1.112
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.111 2013/06/02 08:41:31 ago Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rdoc/ChangeLog,v 1.112 2013/06/03 19:29:12 graaff Exp $
30 +
31 +*rdoc-4.0.1 (03 Jun 2013)
32 +
33 + 03 Jun 2013; Hans de Graaff <graaff@g.o> +rdoc-4.0.1.ebuild:
34 + Version bump.
35
36 02 Jun 2013; Agostino Sarubbo <ago@g.o> rdoc-3.12.2.ebuild:
37 Stable for sh, wrt bug #470226
38
39
40
41 1.1 dev-ruby/rdoc/rdoc-4.0.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rdoc/rdoc-4.0.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rdoc/rdoc-4.0.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: rdoc-4.0.1.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.ebuild,v 1.1 2013/06/03 19:29:12 graaff Exp $
51
52 EAPI=5
53 USE_RUBY="ruby18 ruby19 jruby"
54
55 RUBY_FAKEGEM_TASK_DOC="docs"
56
57 RUBY_FAKEGEM_DOCDIR="doc"
58 RUBY_FAKEGEM_EXTRADOC="History.rdoc README.rdoc RI.rdoc TODO.rdoc"
59
60 RUBY_FAKEGEM_BINWRAP=""
61
62 inherit ruby-fakegem eutils
63
64 DESCRIPTION="An extended version of the RDoc library from Ruby 1.8"
65 HOMEPAGE="https://github.com/rdoc/rdoc/"
66
67 LICENSE="Ruby MIT"
68 SLOT="0"
69 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"
70 IUSE=""
71
72 ruby_add_bdepend "
73 dev-ruby/racc
74 doc? ( >=dev-ruby/hoe-2.7.0 )
75 test? (
76 >=dev-ruby/hoe-2.7.0
77 dev-ruby/minitest
78 )"
79
80 ruby_add_rdepend "=dev-ruby/json-1* >=dev-ruby/json-1.4"
81
82 # This ebuild replaces rdoc in ruby-1.9.2 and later.
83 # ruby 1.8.6 is no longer supported.
84 RDEPEND="${RDEPEND}
85 ruby_targets_ruby19? (
86 >=dev-lang/ruby-1.9.2:1.9
87 )
88 ruby_targets_ruby18? (
89 >=dev-lang/ruby-1.8.7:1.8
90 )"
91
92 all_ruby_prepare() {
93 # Other packages also have use for a nonexistent directory, bug 321059
94 sed -i -e 's#/nonexistent#/nonexistent_rdoc_tests#g' test/test_rdoc*.rb || die
95
96 # Remove unavailable and unneeded isolate plugin for Hoe
97 sed -i -e '/isolate/d' Rakefile || die
98
99 # Remove licenses line from Hoe definitions so we also use older versions.
100 sed -i -e '/licenses/ s:^:#:' Rakefile || die
101
102 epatch "${FILESDIR}/${PN}-3.0.1-bin-require.patch"
103
104 # Remove test that is depending on the locale, which we can't garantuee.
105 sed -i -e '/def test_encode_with/,/^ end/ s:^:#:' test/test_rdoc_options.rb || die
106
107 # Remove test depending on FEATURES=userpriv, bug 361959
108 sed -i -e '/def test_check_files/,/^ end/ s:^:#:' test/test_rdoc_options.rb || die
109
110 # Avoid the generate rule since it doesn't work on jruby, see below.
111 sed -i -e '/:generate/d' Rakefile || die
112 }
113
114 each_ruby_compile() {
115 # Generate the file inline here since the Rakefile confuses jruby
116 # into a circular dependency.
117 for file in lib/rdoc/rd/block_parser lib/rdoc/rd/inline_parser ; do
118 ${RUBY} -S racc -l -o ${file}.rb ${file}.ry || die
119 done
120 }
121
122 all_ruby_install() {
123 all_fakegem_install
124
125 for bin in rdoc ri; do
126 ruby_fakegem_binwrapper $bin /usr/bin/$bin-2
127
128 if use ruby_targets_ruby19; then
129 ruby_fakegem_binwrapper $bin /usr/bin/${bin}19
130 sed -i -e "1s/env ruby/ruby19/" \
131 "${ED}/usr/bin/${bin}19" || die
132 fi
133 done
134 }