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/rake: ChangeLog rake-0.9.6-r1.ebuild
Date: Thu, 26 Dec 2013 09:26:42
Message-Id: 20131226092638.596A02004C@flycatcher.gentoo.org
1 graaff 13/12/26 09:26:38
2
3 Modified: ChangeLog
4 Added: rake-0.9.6-r1.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.146 dev-ruby/rake/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rake/ChangeLog?rev=1.146&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rake/ChangeLog?rev=1.146&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rake/ChangeLog?r1=1.145&r2=1.146
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/rake/ChangeLog,v
20 retrieving revision 1.145
21 retrieving revision 1.146
22 diff -u -r1.145 -r1.146
23 --- ChangeLog 20 Dec 2013 15:53:33 -0000 1.145
24 +++ ChangeLog 26 Dec 2013 09:26:38 -0000 1.146
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-ruby/rake
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rake/ChangeLog,v 1.145 2013/12/20 15:53:33 hattya Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rake/ChangeLog,v 1.146 2013/12/26 09:26:38 graaff Exp $
30 +
31 +*rake-0.9.6-r1 (26 Dec 2013)
32 +
33 + 26 Dec 2013; Hans de Graaff <graaff@g.o> +rake-0.9.6-r1.ebuild:
34 + Add revision for ruby21.
35
36 20 Dec 2013; Akinori Hattori <hattya@g.o> rake-0.9.6.ebuild:
37 ia64 stable wrt bug #483254
38
39
40
41 1.1 dev-ruby/rake/rake-0.9.6-r1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rake/rake-0.9.6-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rake/rake-0.9.6-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: rake-0.9.6-r1.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/rake/rake-0.9.6-r1.ebuild,v 1.1 2013/12/26 09:26:38 graaff Exp $
51
52 EAPI=5
53 USE_RUBY="ruby18 ruby19 ruby20 ruby21 jruby"
54
55 RUBY_FAKEGEM_TASK_DOC=""
56 RUBY_FAKEGEM_EXTRADOC="CHANGES README.rdoc TODO"
57
58 RUBY_FAKEGEM_TASK_TEST=""
59
60 inherit bash-completion-r1 ruby-fakegem
61
62 DESCRIPTION="Make-like scripting in Ruby"
63 HOMEPAGE="http://rake.rubyforge.org/"
64
65 LICENSE="MIT"
66 SLOT="0"
67 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"
68 IUSE="doc"
69
70 DEPEND="${DEPEND} app-arch/gzip"
71 RDEPEND="${RDEPEND}"
72
73 ruby_add_bdepend "doc? ( dev-ruby/rdoc )
74 test? ( virtual/ruby-minitest )"
75
76 all_ruby_prepare() {
77 # Comment out unimportant test which failes on ruby18 at least.
78 sed -i -e '/def test_classic_namespace/,/^ end/ s:^:#:' test/test_rake_application_options.rb || die
79
80 # Avoid tests which can't work in bootstrapping because the test runs
81 # in a directory that can't access the file being loaded.
82 rm test/test_rake_clean.rb || die
83 sed -i -e '/test_run_code_rake/,/^ end/ s:^:#:' test/test_rake_test_task.rb || die
84
85 # Decompress the file. The compressed version has errors, ignore them.
86 zcat doc/rake.1.gz > doc/rake.1
87 }
88
89 each_ruby_prepare() {
90 case ${RUBY} in
91 *jruby)
92 # Remove failing tests. These are not failures in rake but
93 # in our packaging of jruby. They are already present in
94 # rake 0.9.2.2, so avoid them for now so that we can at
95 # least bump 0.9.6 which is needed for ruby20.
96 rm test/test_rake_{functional,rules}.rb || die
97 ;;
98 esac
99 }
100
101 all_ruby_compile() {
102 if use doc; then
103 ruby -Ilib bin/rake rdoc || die "doc generation failed"
104 fi
105 }
106
107 each_ruby_test() {
108 ${RUBY} -S testrb test/test_*.rb || die
109 }
110
111 all_ruby_install() {
112 ruby_fakegem_binwrapper rake
113
114 if use doc; then
115 pushd html
116 dohtml -r *
117 popd
118 fi
119
120 doman doc/rake.1
121
122 newbashcomp "${FILESDIR}"/rake.bash-completion ${PN}
123 }