pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/ruby-hpricot Remove unused references to ruby...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/013906ee829c
branches:  trunk
changeset: 529679:013906ee829c
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Sat Jun 09 00:48:43 2007 +0000

description:
Remove unused references to rubygems to avoid dependency on it.

diffstat:

 textproc/ruby-hpricot/distinfo         |   4 +-
 textproc/ruby-hpricot/patches/patch-aa |  71 +++++++++++++++++++++++++++++++++-
 2 files changed, 71 insertions(+), 4 deletions(-)

diffs (97 lines):

diff -r 7e8982e85992 -r 013906ee829c textproc/ruby-hpricot/distinfo
--- a/textproc/ruby-hpricot/distinfo    Fri Jun 08 23:52:02 2007 +0000
+++ b/textproc/ruby-hpricot/distinfo    Sat Jun 09 00:48:43 2007 +0000
@@ -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 -r 7e8982e85992 -r 013906ee829c textproc/ruby-hpricot/patches/patch-aa
--- a/textproc/ruby-hpricot/patches/patch-aa    Fri Jun 08 23:52:02 2007 +0000
+++ b/textproc/ruby-hpricot/patches/patch-aa    Sat Jun 09 00:48:43 2007 +0000
@@ -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 @@
  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@localhost'
+-    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."



Home | Main Index | Thread Index | Old Index