summaryrefslogtreecommitdiff
path: root/textproc/ruby-hpricot
diff options
context:
space:
mode:
authorminskim <minskim>2007-06-09 00:48:43 +0000
committerminskim <minskim>2007-06-09 00:48:43 +0000
commit433187f8bda7325b2594155bdf1f0c7b19cd474a (patch)
tree7bfebb4b6776741ae1bc527b6c1fcd976b8c97a6 /textproc/ruby-hpricot
parent057f8f7e6ae6f3a3243c03bbdc03a7b196ca53ac (diff)
downloadpkgsrc-433187f8bda7325b2594155bdf1f0c7b19cd474a.tar.gz
Remove unused references to rubygems to avoid dependency on it.
Diffstat (limited to 'textproc/ruby-hpricot')
-rw-r--r--textproc/ruby-hpricot/distinfo4
-rw-r--r--textproc/ruby-hpricot/patches/patch-aa71
2 files changed, 71 insertions, 4 deletions
diff --git a/textproc/ruby-hpricot/distinfo b/textproc/ruby-hpricot/distinfo
index 224526bc089..dd214b57c66 100644
--- a/textproc/ruby-hpricot/distinfo
+++ b/textproc/ruby-hpricot/distinfo
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2007/05/26 01:34:44 minskim Exp $
+$NetBSD: distinfo,v 1.2 2007/06/09 00:48:43 minskim Exp $
SHA1 (hpricot-0.5.140.tgz) = c30ba9a0217bf0d43bc2d8ee0876845aa3f521c6
RMD160 (hpricot-0.5.140.tgz) = ee011a8d8dbb9991acbf6c38c1175fc756faf0f1
Size (hpricot-0.5.140.tgz) = 212870 bytes
-SHA1 (patch-aa) = 9a1b69d5cc2a2b88fbdba97a8c283daa1f406a0c
+SHA1 (patch-aa) = 13410ce5c80a3150c57fbe1a836a1e0817fa7542
diff --git a/textproc/ruby-hpricot/patches/patch-aa b/textproc/ruby-hpricot/patches/patch-aa
index 77d7387208b..133dbd5ce02 100644
--- a/textproc/ruby-hpricot/patches/patch-aa
+++ b/textproc/ruby-hpricot/patches/patch-aa
@@ -1,8 +1,14 @@
-$NetBSD: patch-aa,v 1.1.1.1 2007/05/26 01:34:44 minskim Exp $
+$NetBSD: patch-aa,v 1.2 2007/06/09 00:48:43 minskim Exp $
--- Rakefile.orig 2007-04-03 14:26:53.000000000 -0700
+++ Rakefile
-@@ -7,7 +7,7 @@ require 'fileutils'
+@@ -1,13 +1,12 @@
+ require 'rake'
+ require 'rake/clean'
+-require 'rake/gempackagetask'
+ require 'rake/rdoctask'
+ require 'rake/testtask'
+ require 'fileutils'
include FileUtils
NAME = "hpricot"
@@ -11,3 +17,64 @@ $NetBSD: patch-aa,v 1.1.1.1 2007/05/26 01:34:44 minskim Exp $
VERS = ENV['VERSION'] || "0.5" + (REV ? ".#{REV}" : "")
PKG = "#{NAME}-#{VERS}"
BIN = "*.{bundle,jar,so,obj,pdb,lib,def,exp}"
+@@ -18,24 +17,6 @@ PKG_FILES = %w(CHANGELOG COPYING README
+ Dir.glob("{bin,doc,test,lib,extras}/**/*") +
+ Dir.glob("ext/**/*.{h,java,c,rb,rl}") +
+ %w[ext/hpricot_scan/hpricot_scan.c] # needed because it's generated later
+-SPEC =
+- Gem::Specification.new do |s|
+- s.name = NAME
+- s.version = VERS
+- s.platform = Gem::Platform::RUBY
+- s.has_rdoc = true
+- s.rdoc_options += RDOC_OPTS
+- s.extra_rdoc_files = ["README", "CHANGELOG", "COPYING"]
+- s.summary = "a swift, liberal HTML parser with a fantastic library"
+- s.description = s.summary
+- s.author = "why the lucky stiff"
+- s.email = 'why@ruby-lang.org'
+- s.homepage = 'http://code.whytheluckystiff.net/hpricot/'
+- s.files = PKG_FILES
+- s.require_path = "lib"
+- s.extensions = FileList["ext/**/extconf.rb"].to_a
+- s.bindir = "bin"
+- end
+
+ desc "Does a full compile, test run"
+ task :default => [:compile, :test]
+@@ -60,11 +41,6 @@ Rake::RDocTask.new do |rdoc|
+ rdoc.rdoc_files.add ['README', 'CHANGELOG', 'COPYING', 'lib/**/*.rb']
+ end
+
+-Rake::GemPackageTask.new(SPEC) do |p|
+- p.need_tar = true
+- p.gem_spec = SPEC
+-end
+-
+ extension = "hpricot_scan"
+ ext = "ext/hpricot_scan"
+ ext_so = "#{ext}/#{extension}.#{Config::CONFIG['DLEXT']}"
+@@ -124,11 +100,6 @@ end
+
+ ### Win32 Packages ###
+
+-Win32Spec = SPEC.dup
+-Win32Spec.platform = Gem::Platform::WIN32
+-Win32Spec.files = PKG_FILES + ['lib/hpricot_scan.so']
+-Win32Spec.extensions = []
+-
+ WIN32_PKG_DIR = "#{PKG}-mswin32"
+
+ desc "Package up the Win32 distribution."
+@@ -168,11 +139,6 @@ task :hpricot_scan_java => [:ragel_java]
+ Dir.chdir("ext/hpricot_scan", &compile_java)
+ end
+
+-JRubySpec = SPEC.dup
+-JRubySpec.platform = 'jruby'
+-JRubySpec.files = PKG_FILES + ['lib/hpricot_scan.jar']
+-JRubySpec.extensions = []
+-
+ JRUBY_PKG_DIR = "#{PKG}-jruby"
+
+ desc "Package up the JRuby distribution."