Permalink
Browse files

vendoring hoe

  • Loading branch information...
1 parent 66fea0e commit 06f7a607d07554e8a8b0984cdc755544eb13fcfd @tenderlove tenderlove committed Nov 7, 2008
Showing with 1,040 additions and 24 deletions.
  1. +18 −24 Rakefile
  2. +1,022 −0 vendor/hoe.rb
View
@@ -3,39 +3,35 @@
require 'rubygems'
require 'rake'
-begin
- require 'hoe'
- HAVE_HOE = true
-rescue LoadError
- HAVE_HOE = false
-end
kind = Config::CONFIG['DLEXT']
windows = RUBY_PLATFORM =~ /mswin/i ? true : false
LIB_DIR = File.expand_path(File.join(File.dirname(__FILE__), 'lib'))
$LOAD_PATH << LIB_DIR
+$LOAD_PATH << File.expand_path(File.join(File.dirname(__FILE__), 'vendor'))
+
+require 'hoe'
+
GENERATED_PARSER = "lib/nokogiri/css/generated_parser.rb"
GENERATED_TOKENIZER = "lib/nokogiri/css/generated_tokenizer.rb"
EXT = "ext/nokogiri/native.#{kind}"
require 'nokogiri/version'
-if HAVE_HOE
- HOE = Hoe.new('nokogiri', Nokogiri::VERSION) do |p|
- p.developer('Aaron Patterson', 'aaronp@rubyforge.org')
- p.clean_globs = [
- 'ext/nokogiri/Makefile',
- 'ext/nokogiri/*.{o,so,bundle,a,log,dll}',
- 'ext/nokogiri/conftest.dSYM',
- GENERATED_PARSER,
- GENERATED_TOKENIZER,
- 'cross',
- ]
- p.spec_extras = { :extensions => ["Rakefile"] }
- end
+HOE = Hoe.new('nokogiri', Nokogiri::VERSION) do |p|
+ p.developer('Aaron Patterson', 'aaronp@rubyforge.org')
+ p.clean_globs = [
+ 'ext/nokogiri/Makefile',
+ 'ext/nokogiri/*.{o,so,bundle,a,log,dll}',
+ 'ext/nokogiri/conftest.dSYM',
+ GENERATED_PARSER,
+ GENERATED_TOKENIZER,
+ 'cross',
+ ]
+ p.spec_extras = { :extensions => ["Rakefile"] }
end
namespace :gem do
@@ -287,11 +283,9 @@ end
# Only do this on unix, since we can't build on windows
unless windows
- if HAVE_HOE
- Rake::Task[:test].prerequisites << :build
- Rake::Task[:check_manifest].prerequisites << GENERATED_PARSER
- Rake::Task[:check_manifest].prerequisites << GENERATED_TOKENIZER
- end
+ Rake::Task[:test].prerequisites << :build
+ Rake::Task[:check_manifest].prerequisites << GENERATED_PARSER
+ Rake::Task[:check_manifest].prerequisites << GENERATED_TOKENIZER
end
# vim: syntax=Ruby
Oops, something went wrong.

0 comments on commit 06f7a60

Please sign in to comment.