e6b65b792d
Hpricot is a fast, flexible HTML parser written in C. It's designed to be very accommodating (like Tanaka Akira's HTree) and to have a very helpful library (like some JavaScript libs -- JQuery, Prototype -- give you.) The XPath and CSS parser, in fact, is based on John Resig's JQuery. Also, Hpricot can be handy for reading broken XML files, since many of the same techniques can be used. If a quote is missing, Hpricot tries to figure it out. If tags overlap, Hpricot works on sorting them out.
22 lines
899 B
Plaintext
22 lines
899 B
Plaintext
$OpenBSD: patch-Rakefile,v 1.1.1.1 2008/04/19 17:21:27 bernd Exp $
|
|
--- Rakefile.orig Thu Jan 1 01:00:00 1970
|
|
+++ Rakefile Wed Jan 9 11:19:35 2008
|
|
@@ -11,7 +11,7 @@ REV = `svn info`[/Revision: (\d+)/, 1] rescue nil
|
|
VERS = ENV['VERSION'] || "0.6" + (REV ? ".#{REV}" : "")
|
|
PKG = "#{NAME}-#{VERS}"
|
|
BIN = "*.{bundle,jar,so,obj,pdb,lib,def,exp}"
|
|
-ARCHLIB = "lib/#{::Config::CONFIG['arch']}"
|
|
+ARCHLIB = "lib"
|
|
CLEAN.include ["ext/hpricot_scan/#{BIN}", "lib/**/#{BIN}", 'ext/hpricot_scan/Makefile',
|
|
'**/.*.sw?', '*.gem', '.config']
|
|
RDOC_OPTS = ['--quiet', '--title', 'The Hpricot Reference', '--main', 'README', '--inline-source']
|
|
@@ -127,7 +127,7 @@ end
|
|
### Win32 Packages ###
|
|
|
|
Win32Spec = SPEC.dup
|
|
-Win32Spec.platform = Gem::Platform::WIN32
|
|
+Win32Spec.platform = Gem::Platform::CURRENT
|
|
Win32Spec.files = PKG_FILES + ["#{ARCHLIB}/hpricot_scan.so"]
|
|
Win32Spec.extensions = []
|
|
|