Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed build issues with Hoe 2.3.3

Signed-off-by: Pritesh <pritesh@phatforge.com>
  • Loading branch information...
commit 09254fa112b99b996959ab956239265feedbda25 1 parent af19a63
@kogent kogent authored committed
Showing with 14 additions and 14 deletions.
  1. +1 −0  .gitignore
  2. +3 −0  History.txt
  3. +10 −14 Rakefile
View
1  .gitignore
@@ -0,0 +1 @@
+pkg/*
View
3  History.txt
@@ -1,3 +1,6 @@
+== 1.1.2 /
+* Fixed build issues with Hoe 2.3.3
+
== 1.1.1 /
* Fixed oregexp.c issue with UTF16/32 etc. patch found at http://howflow.com/tricks/ruby_how_to_install_the_gem_oniguruma
View
24 Rakefile
@@ -10,22 +10,11 @@ begin
def extra_deps
@extra_deps.delete_if{ |x| x.first == 'hoe' }
end
-
- # Dirty hack to package only the required files per platform
- def spec= s
- if ENV['PLATFORM'] =~ /win32/
- s.files = s.files.reject! {|f| f =~ /extconf\.rb/}
- else
- s.files = s.files.reject! {|f| f =~ /win\//}
- end
- @spec = s
- end
end
- version = /^== *(\d+\.\d+\.\d+)/.match( File.read( 'History.txt' ) )[1]
-
- h = Hoe.new('oniguruma', version) do |p|
+ h = Hoe.spec('oniguruma') do |p|
p.rubyforge_name = 'oniguruma'
+ p.version = /^== *(\d+\.\d+\.\d+)/.match( File.read( 'History.txt' ) )[1]
p.author = ['Dizan Vasquez', 'Nikolai Lugovoi']
p.email = 'dichodaemon@gmail.com'
p.summary = 'Bindings for the oniguruma regular expression library'
@@ -38,10 +27,17 @@ begin
else
p.spec_extras[:extensions] = ["ext/extconf.rb"]
end
- p.rdoc_pattern = /^(lib|bin|ext)|txt$/
p.changes = p.paragraphs_of('History.txt', 0).join("\n\n")
p.clean_globs = ["manual/*"]
end
+
+ h.spec.extra_rdoc_files = h.spec.files.grep('/txt/$')
+
+ if ENV['PLATFORM'] =~ /win32/
+ h.spec.files -= Dir["ext/extconf.rb"]
+ else
+ h.spec.files -= Dir["win/oregexp.so"]
+ end
desc 'Create MaMa documentation'
task :mama => :clean do
Please sign in to comment.
Something went wrong with that request. Please try again.