From: | "Hans de Graaff (graaff)" <graaff@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-ruby/oniguruma/files: oniguruma-1.1.0-unmonkey.patch |
Date: | Tue, 09 Feb 2010 18:12:38 |
Message-Id: | E1NeuZg-0007wO-Mu@stork.gentoo.org |
1 | graaff 10/02/09 18:12:36 |
2 | |
3 | Added: oniguruma-1.1.0-unmonkey.patch |
4 | Log: |
5 | Convert to ruby-fakegem. |
6 | (Portage version: 2.1.7.16/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 dev-ruby/oniguruma/files/oniguruma-1.1.0-unmonkey.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/oniguruma/files/oniguruma-1.1.0-unmonkey.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/oniguruma/files/oniguruma-1.1.0-unmonkey.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: oniguruma-1.1.0-unmonkey.patch |
15 | =================================================================== |
16 | --- Rakefile.~1~ 2010-02-09 18:58:29.879967846 +0100 |
17 | +++ Rakefile 2010-02-09 19:00:19.247218285 +0100 |
18 | @@ -1,23 +1,6 @@ |
19 | require 'rubygems' |
20 | require 'hoe' |
21 | |
22 | -class Hoe |
23 | - # Dirty hack to eliminate Hoe from gem dependencies |
24 | - def extra_deps |
25 | - @extra_deps.delete_if{ |x| x.first == 'hoe' } |
26 | - end |
27 | - |
28 | - # Dirty hack to package only the required files per platform |
29 | - def spec= s |
30 | - if ENV['PLATFORM'] =~ /win32/ |
31 | - s.files = s.files.reject! {|f| f =~ /extconf\.rb/} |
32 | - else |
33 | - s.files = s.files.reject! {|f| f =~ /win\//} |
34 | - end |
35 | - @spec = s |
36 | - end |
37 | -end |
38 | - |
39 | version = /^== *(\d+\.\d+\.\d+)/.match( File.read( 'History.txt' ) )[1] |
40 | |
41 | Hoe.new('oniguruma', version) do |p| |
42 | @@ -34,7 +17,6 @@ |
43 | else |
44 | p.spec_extras[:extensions] = ["ext/extconf.rb"] |
45 | end |
46 | - p.rdoc_pattern = /^(lib|bin|ext)|txt$/ |
47 | p.changes = p.paragraphs_of('History.txt', 0).join("\n\n") |
48 | end |