diff options
author | minskim <minskim@pkgsrc.org> | 2009-06-12 23:02:57 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2009-06-12 23:02:57 +0000 |
commit | 2f8ed81768c2a25fc4e71d5f0f94146367c2318c (patch) | |
tree | 4da784c8459fa6a45e724764b110a89fd9078607 /misc | |
parent | 91470dcf9cf5abef147232d59ea7f3966d0cef9a (diff) | |
download | pkgsrc-2f8ed81768c2a25fc4e71d5f0f94146367c2318c.tar.gz |
Test variables before using them. Several variables in
Gem::Specification can be nil for old gemspec.
Bump PKGREVISION.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/rubygems/Makefile | 3 | ||||
-rw-r--r-- | misc/rubygems/distinfo | 3 | ||||
-rw-r--r-- | misc/rubygems/patches/patch-aa | 21 |
3 files changed, 25 insertions, 2 deletions
diff --git a/misc/rubygems/Makefile b/misc/rubygems/Makefile index 4666b3d1482..5f7913cf07f 100644 --- a/misc/rubygems/Makefile +++ b/misc/rubygems/Makefile @@ -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 --git a/misc/rubygems/distinfo b/misc/rubygems/distinfo index c73303561af..2bf309833ae 100644 --- a/misc/rubygems/distinfo +++ b/misc/rubygems/distinfo @@ -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 --git a/misc/rubygems/patches/patch-aa b/misc/rubygems/patches/patch-aa new file mode 100644 index 00000000000..da5d95bf51f --- /dev/null +++ b/misc/rubygems/patches/patch-aa @@ -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 |