]> git.pld-linux.org Git - packages/ruby-nokogiri.git/commitdiff
- don't use gems
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 28 Feb 2010 19:53:15 +0000 (19:53 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- don't care for win32

Changed files:
    ruby-nokogiri-cleanup.patch -> 1.1

ruby-nokogiri-cleanup.patch [new file with mode: 0644]

diff --git a/ruby-nokogiri-cleanup.patch b/ruby-nokogiri-cleanup.patch
new file mode 100644 (file)
index 0000000..c1a0d43
--- /dev/null
@@ -0,0 +1,35 @@
+diff --git a/bin/nokogiri b/bin/nokogiri
+index 9449518..ff1419d 100755
+--- a/bin/nokogiri
++++ b/bin/nokogiri
+@@ -3,7 +3,6 @@ require 'optparse'
+ require 'open-uri'
+ require 'irb'
+ require 'uri'
+-require 'rubygems'
+ require 'nokogiri'
+ opts = OptionParser.new do |opts|
+diff --git a/lib/nokogiri.rb b/lib/nokogiri.rb
+index b04468f..f685244 100644
+--- a/lib/nokogiri.rb
++++ b/lib/nokogiri.rb
+@@ -1,18 +1,7 @@
+ # -*- coding: utf-8 -*-
+-# Modify the PATH on windows so that the external DLLs will get loaded.
+
+ require 'rbconfig'
+-ENV['PATH'] = [File.expand_path(
+-  File.join(File.dirname(__FILE__), "..", "ext", "nokogiri")
+-), ENV['PATH']].compact.join(';') if RbConfig::CONFIG['host_os'] =~ /(mswin|mingw)/i
+-
+-if ENV['NOKOGIRI_FFI'] || RUBY_PLATFORM =~ /java/
+-  require 'ffi'
+-  require 'nokogiri/ffi/libxml'
+-else
+   require 'nokogiri/nokogiri'
+-end
+-
+ require 'nokogiri/version'
+ require 'nokogiri/version_warning'
+ require 'nokogiri/syntax_error'
This page took 0.072139 seconds and 4 git commands to generate.