aboutsummaryrefslogtreecommitdiff
path: root/devel/ruby-gems
diff options
context:
space:
mode:
authorMarcelo Araujo <araujo@FreeBSD.org>2008-07-21 11:39:00 +0000
committerMarcelo Araujo <araujo@FreeBSD.org>2008-07-21 11:39:00 +0000
commitc4074d803213d8fa0574b0d5430ad670939b5bdd (patch)
tree394664552922aff46449b36dc73d4df5ca5a5bd9 /devel/ruby-gems
parent23be18693a22be67cfede5d77427bccbc044e5c5 (diff)
Notes
Diffstat (limited to 'devel/ruby-gems')
-rw-r--r--devel/ruby-gems/Makefile1
-rw-r--r--devel/ruby-gems/files/patch-lib-rubygems-installer.rb11
-rw-r--r--devel/ruby-gems/files/patch-lib-rubygems-source_info_cache.rb34
3 files changed, 12 insertions, 34 deletions
diff --git a/devel/ruby-gems/Makefile b/devel/ruby-gems/Makefile
index 85643e5080f7..3ed421a100bd 100644
--- a/devel/ruby-gems/Makefile
+++ b/devel/ruby-gems/Makefile
@@ -7,6 +7,7 @@
PORTNAME= gems
PORTVERSION= 1.2.0
+PORTREVISION= 1
CATEGORIES= devel ruby
MASTER_SITES= ${MASTER_SITE_RUBYFORGE}
MASTER_SITE_SUBDIR= ruby${PORTNAME}
diff --git a/devel/ruby-gems/files/patch-lib-rubygems-installer.rb b/devel/ruby-gems/files/patch-lib-rubygems-installer.rb
new file mode 100644
index 000000000000..f627c9d8f2b6
--- /dev/null
+++ b/devel/ruby-gems/files/patch-lib-rubygems-installer.rb
@@ -0,0 +1,11 @@
+--- lib/rubygems/installer.rb.orig 2007-12-21 08:43:06.000000000 +0800
++++ lib/rubygems/installer.rb 2007-12-27 09:04:59.000000000 +0800
+@@ -134,7 +134,7 @@
+ build_extensions
+ write_spec
+
+- write_require_paths_file_if_needed
++ # write_require_paths_file_if_needed
+
+ # HACK remove? Isn't this done in multiple places?
+ cached_gem = File.join @gem_home, "cache", @gem.split(/\//).pop
diff --git a/devel/ruby-gems/files/patch-lib-rubygems-source_info_cache.rb b/devel/ruby-gems/files/patch-lib-rubygems-source_info_cache.rb
deleted file mode 100644
index f897e7fa0154..000000000000
--- a/devel/ruby-gems/files/patch-lib-rubygems-source_info_cache.rb
+++ /dev/null
@@ -1,34 +0,0 @@
---- lib/rubygems/source_info_cache.rb.orig 2007-12-11 09:16:59.000000000 +0800
-+++ lib/rubygems/source_info_cache.rb 2007-12-26 17:24:45.000000000 +0800
-@@ -70,6 +70,9 @@
- begin
- # Marshal loads 30-40% faster from a String, and 2MB on 20061116 is small
- data = File.open cache_file, 'rb' do |fp| fp.read end
-+ if data.length <= 4 then
-+ raise ArgumentError, "Data too small"
-+ end
- @cache_data = Marshal.load data
-
- @cache_data.each do |url, sice|
-@@ -85,11 +88,11 @@
- end
- end
- @cache_data
-- rescue => e
-+ rescue => ex
- if Gem.configuration.really_verbose then
- say "Exception during cache_data handling: #{ex.class} - #{ex}"
- say "Cache file was: #{cache_file}"
-- say "\t#{e.backtrace.join "\n\t"}"
-+ say "\t#{ex.backtrace.join "\n\t"}"
- end
- reset_cache_data
- end
-@@ -107,6 +110,7 @@
-
- def reset_cache_data
-+ FileUtils.rm @cache_file
- @cache_data = {}
- end
-
- # The name of the cache file to be read