pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/misc/rubygems Test variables before using them. Sever...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/24f0722bbd4a
branches:  trunk
changeset: 560448:24f0722bbd4a
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Fri Jun 12 23:02:57 2009 +0000

description:
Test variables before using them.  Several variables in
Gem::Specification can be nil for old gemspec.

Bump PKGREVISION.

diffstat:

 misc/rubygems/Makefile         |   3 ++-
 misc/rubygems/distinfo         |   3 ++-
 misc/rubygems/patches/patch-aa |  21 +++++++++++++++++++++
 3 files changed, 25 insertions(+), 2 deletions(-)

diffs (51 lines):

diff -r cda20525a97a -r 24f0722bbd4a misc/rubygems/Makefile
--- a/misc/rubygems/Makefile    Fri Jun 12 22:56:03 2009 +0000
+++ b/misc/rubygems/Makefile    Fri Jun 12 23:02:57 2009 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.24 2009/06/10 21:44:30 minskim Exp $
+# $NetBSD: Makefile,v 1.25 2009/06/12 23:02:57 minskim Exp $
 
 DISTNAME=      rubygems-1.3.4
+PKGREVISION=   1
 CATEGORIES=    misc ruby
 MASTER_SITES=  http://rubyforge.org/frs/download.php/57643/
 EXTRACT_SUFX=  .tgz
diff -r cda20525a97a -r 24f0722bbd4a misc/rubygems/distinfo
--- a/misc/rubygems/distinfo    Fri Jun 12 22:56:03 2009 +0000
+++ b/misc/rubygems/distinfo    Fri Jun 12 23:02:57 2009 +0000
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.20 2009/06/10 21:44:31 minskim Exp $
+$NetBSD: distinfo,v 1.21 2009/06/12 23:02:57 minskim Exp $
 
 SHA1 (rubygems-1.3.4.tgz) = b973b4748c0bc08f9a62b3312bde935dda2eac6f
 RMD160 (rubygems-1.3.4.tgz) = 451797299921cac9997fc93a85601d6f28f17cf5
 Size (rubygems-1.3.4.tgz) = 293275 bytes
+SHA1 (patch-aa) = 4c5085a9a7cee24fe42ddbfc3524588838af4e16
 SHA1 (patch-ab) = b38026920e31ae7782df6bbd7d7285d18dcf6ece
 SHA1 (patch-ac) = 30ff76c661575d9c51051bb207363f3d2d8b5283
 SHA1 (patch-ad) = 9e6b11f5edae0656a59d623f4dae05ca7ecbdfaf
diff -r cda20525a97a -r 24f0722bbd4a misc/rubygems/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/rubygems/patches/patch-aa    Fri Jun 12 23:02:57 2009 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-aa,v 1.7 2009/06/12 23:02:57 minskim Exp $
+
+--- lib/rubygems/specification.rb.orig 2009-05-19 17:41:16.000000000 -0700
++++ lib/rubygems/specification.rb
+@@ -812,12 +812,12 @@ class Gem::Specification
+     end
+ 
+     @files.delete_if            do |file| File.directory? file end
+-    @test_files.delete_if       do |file| File.directory? file end
+-    @executables.delete_if      do |file|
++    @test_files and @test_files.delete_if       do |file| File.directory? file end
++    @executables and @executables.delete_if      do |file|
+       File.directory? File.join(bindir, file)
+     end
+-    @extra_rdoc_files.delete_if do |file| File.directory? file end
+-    @extensions.delete_if       do |file| File.directory? file end
++    @extra_rdoc_files and @extra_rdoc_files.delete_if do |file| File.directory? file end
++    @extensions and @extensions.delete_if       do |file| File.directory? file end
+ 
+     non_files = files.select do |file|
+       !File.file? file



Home | Main Index | Thread Index | Old Index