diff options
author | taca <taca> | 2014-02-19 15:52:05 +0000 |
---|---|---|
committer | taca <taca> | 2014-02-19 15:52:05 +0000 |
commit | b0a5caf7a97e6d8753980386d61b9e8f9bdf7162 (patch) | |
tree | b17ee0147fb763201bb072ecb0afcde83d881c51 /lang/ruby200-base | |
parent | 3c19903a5a825479adce0e7c556a3aff52726e89 (diff) | |
download | pkgsrc-b0a5caf7a97e6d8753980386d61b9e8f9bdf7162.tar.gz |
Fix rubygems bundled in ruby200-base.
Check install_root's value is nil before it is empty string. Reported a
problem from @_ki_nu via Twitter.
Bump PKGREVISION.
Diffstat (limited to 'lang/ruby200-base')
-rw-r--r-- | lang/ruby200-base/Makefile | 4 | ||||
-rw-r--r-- | lang/ruby200-base/distinfo | 10 | ||||
-rw-r--r-- | lang/ruby200-base/patches/patch-lib_rubygems.rb | 4 | ||||
-rw-r--r-- | lang/ruby200-base/patches/patch-lib_rubygems_dependency__installer.rb | 4 | ||||
-rw-r--r-- | lang/ruby200-base/patches/patch-lib_rubygems_installer.rb | 6 | ||||
-rw-r--r-- | lang/ruby200-base/patches/patch-lib_rubygems_uninstaller.rb | 6 |
6 files changed, 17 insertions, 17 deletions
diff --git a/lang/ruby200-base/Makefile b/lang/ruby200-base/Makefile index 61fd66fe7fe..83cd894597a 100644 --- a/lang/ruby200-base/Makefile +++ b/lang/ruby200-base/Makefile @@ -1,9 +1,9 @@ -# $NetBSD: Makefile,v 1.8 2014/02/12 23:18:06 tron Exp $ +# $NetBSD: Makefile,v 1.9 2014/02/19 15:52:05 taca Exp $ # DISTNAME= ${RUBY_DISTNAME} PKGNAME= ${RUBY_PKGPREFIX}-base-${RUBY_VERSION_FULL} -PKGREVISION= 2 +PKGREVISION= 3 CATEGORIES= lang ruby MASTER_SITES= ${MASTER_SITE_RUBY} diff --git a/lang/ruby200-base/distinfo b/lang/ruby200-base/distinfo index efedddc76a5..19a5fd0bfdc 100644 --- a/lang/ruby200-base/distinfo +++ b/lang/ruby200-base/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.9 2014/01/08 11:31:18 fhajny Exp $ +$NetBSD: distinfo,v 1.10 2014/02/19 15:52:05 taca Exp $ SHA1 (ruby-2.0.0-p353.tar.bz2) = 0be863f1c39d7764c52cbb79ca06105743e27c42 RMD160 (ruby-2.0.0-p353.tar.bz2) = e12445ef618953c89d1c198899b6a3a959fc55f2 @@ -8,17 +8,17 @@ SHA1 (patch-defs_default__gems) = 28a47952e27c22055bac6ad151d092572b96b1ec SHA1 (patch-ext_dl_extconf.rb) = f6c71db3c3076216c9b5db92692c7c8dad012af0 SHA1 (patch-ext_tk_lib_tkextlib_tktable_tktable.rb) = 10c7842daa3c23d57dcd08dc00adf5770af9dad1 SHA1 (patch-lib_rdoc_ri_driver.rb) = 53ce4055b4c008c8ee13d38a81334d4846debdbc -SHA1 (patch-lib_rubygems.rb) = 589ca26a32579f87c2d3d0e8e7f03348760f4b4e +SHA1 (patch-lib_rubygems.rb) = 0f0b8f14745998f5ed0ade9b0b5cdefc8f30d988 SHA1 (patch-lib_rubygems_commands_setup__command.rb) = 46991d63256d0d3cc2f707fb286d1691331ad40e SHA1 (patch-lib_rubygems_commands_uninstall__command.rb) = f39435fbdbbfcc8c756e54fcbec89a4ff796ee2d SHA1 (patch-lib_rubygems_commands_unpack__command.rb) = 58af5f0d1a185183ff9a4b4828ef1ca9fc074e05 SHA1 (patch-lib_rubygems_config__file.rb) = 0d863d3f886c1ed83585d96064725e7db7bec1bc SHA1 (patch-lib_rubygems_defaults.rb) = 1af4161a83c0bf5b894c4ab3f4a77d4ee4183985 -SHA1 (patch-lib_rubygems_dependency__installer.rb) = a2f0d03924a70e8e6cb30736e0f3807e5baa520d +SHA1 (patch-lib_rubygems_dependency__installer.rb) = f4e40727d231b336c1d4c2303ac1c1e2b50f2710 SHA1 (patch-lib_rubygems_install__update__options.rb) = 22cfafe090db72211253b8528937e5be0e677ebf -SHA1 (patch-lib_rubygems_installer.rb) = b22ece5d6fe8952512ee772ba28d8c60f273d726 +SHA1 (patch-lib_rubygems_installer.rb) = 7ce68eaa5893c83780f7b4e1af44a88ae63a39cf SHA1 (patch-lib_rubygems_specification.rb) = 3e9e95178127da862add4141665b80d965874f21 -SHA1 (patch-lib_rubygems_uninstaller.rb) = bf525fc55e9bf94e1561a7cac76e09873d3aaca2 +SHA1 (patch-lib_rubygems_uninstaller.rb) = cb4db78829af11d6294b15d1e81066227e3ea3bb SHA1 (patch-man_erb.1) = 1fe6ce4f4fe6418bfabb5e132a63596562030116 SHA1 (patch-man_irb.1) = 2bf807b4c1b1c68d1f518caa054cfd900e0fedb7 SHA1 (patch-man_ri.1) = af855135020f18c361cc55af676adc75e26bf4d3 diff --git a/lang/ruby200-base/patches/patch-lib_rubygems.rb b/lang/ruby200-base/patches/patch-lib_rubygems.rb index 25021e39995..beccf75bb9d 100644 --- a/lang/ruby200-base/patches/patch-lib_rubygems.rb +++ b/lang/ruby200-base/patches/patch-lib_rubygems.rb @@ -1,4 +1,4 @@ -$NetBSD: patch-lib_rubygems.rb,v 1.2 2013/11/24 14:22:03 taca Exp $ +$NetBSD: patch-lib_rubygems.rb,v 1.3 2014/02/19 15:52:05 taca Exp $ * Add install_root option for pkgsrc's rubygems support. @@ -10,7 +10,7 @@ $NetBSD: patch-lib_rubygems.rb,v 1.2 2013/11/24 14:22:03 taca Exp $ - def self.bindir(install_dir=Gem.dir) + def self.bindir(install_dir=Gem.dir, install_root=nil) -+ unless install_root.nil? ++ unless install_root.nil? or install_root.empty? + install_dir = install_dir.sub(install_root, "") + end # TODO: move to Gem::Dirs diff --git a/lang/ruby200-base/patches/patch-lib_rubygems_dependency__installer.rb b/lang/ruby200-base/patches/patch-lib_rubygems_dependency__installer.rb index 714db9f731b..8892ac797be 100644 --- a/lang/ruby200-base/patches/patch-lib_rubygems_dependency__installer.rb +++ b/lang/ruby200-base/patches/patch-lib_rubygems_dependency__installer.rb @@ -1,4 +1,4 @@ -$NetBSD: patch-lib_rubygems_dependency__installer.rb,v 1.2 2013/11/24 14:22:03 taca Exp $ +$NetBSD: patch-lib_rubygems_dependency__installer.rb,v 1.3 2014/02/19 15:52:05 taca Exp $ * Add install_root option for pkgsrc's rubygems support. @@ -36,7 +36,7 @@ $NetBSD: patch-lib_rubygems_dependency__installer.rb,v 1.2 2013/11/24 14:22:03 t - @cache_dir = options[:cache_dir] || @install_dir + @install_root = options[:install_root] || "" + install_dir = @install_dir -+ if not @install_root.empty? ++ unless @install_root.nil? or @install_root.empty? + install_dir = File.join(@install_root, install_dir) + end + @cache_dir = options[:cache_dir] || install_dir diff --git a/lang/ruby200-base/patches/patch-lib_rubygems_installer.rb b/lang/ruby200-base/patches/patch-lib_rubygems_installer.rb index d7f75c7abe3..7ab99f1a25e 100644 --- a/lang/ruby200-base/patches/patch-lib_rubygems_installer.rb +++ b/lang/ruby200-base/patches/patch-lib_rubygems_installer.rb @@ -1,4 +1,4 @@ -$NetBSD: patch-lib_rubygems_installer.rb,v 1.3 2014/01/08 11:31:19 fhajny Exp $ +$NetBSD: patch-lib_rubygems_installer.rb,v 1.4 2014/02/19 15:52:05 taca Exp $ * Add install_root option for pkgsrc's rubygems support. * Tweak build_info directory with destdir to store build_args. @@ -31,7 +31,7 @@ $NetBSD: patch-lib_rubygems_installer.rb,v 1.3 2014/01/08 11:31:19 fhajny Exp $ # (or use) a new bin dir under the gem_home. - @bin_dir = options[:bin_dir] || Gem.bindir(gem_home) + @bin_dir = options[:bin_dir] || Gem.bindir(gem_home, @install_root) -+ unless @install_root.nil? or @install_root == "" ++ unless @install_root.nil? or @install_root.empty? + @bin_dir = File.join(@install_root, @bin_dir) + end @development = options[:development] @@ -41,7 +41,7 @@ $NetBSD: patch-lib_rubygems_installer.rb,v 1.3 2014/01/08 11:31:19 fhajny Exp $ return if @build_args.empty? build_info_dir = File.join gem_home, 'build_info' -+ unless @install_root.nil? ++ unless @install_root.nil? or @install_root.empty? + build_info_dir = File.join @gem_home, "build_info" + end diff --git a/lang/ruby200-base/patches/patch-lib_rubygems_uninstaller.rb b/lang/ruby200-base/patches/patch-lib_rubygems_uninstaller.rb index 6c5e3141aae..22f3421d25d 100644 --- a/lang/ruby200-base/patches/patch-lib_rubygems_uninstaller.rb +++ b/lang/ruby200-base/patches/patch-lib_rubygems_uninstaller.rb @@ -1,4 +1,4 @@ -$NetBSD: patch-lib_rubygems_uninstaller.rb,v 1.1 2013/07/21 02:32:58 taca Exp $ +$NetBSD: patch-lib_rubygems_uninstaller.rb,v 1.2 2014/02/19 15:52:05 taca Exp $ * Add install_root option for pkgsrc's rubygems support. @@ -9,7 +9,7 @@ $NetBSD: patch-lib_rubygems_uninstaller.rb,v 1.1 2013/07/21 02:32:58 taca Exp $ @bin_dir = options[:bin_dir] @format_executable = options[:format_executable] + install_root = options[:install_root] -+ unless install_root.nil? or install_root == "" ++ unless install_root.nil? or install_root.empty? + @install_root = File.expand_path install_root + @gem_home = File.join(@install_root, @gem_home) + end @@ -23,7 +23,7 @@ $NetBSD: patch-lib_rubygems_uninstaller.rb,v 1.1 2013/07/21 02:32:58 taca Exp $ - bin_dir = @bin_dir || Gem.bindir(spec.base_dir) + bin_dir = @bin_dir || (Gem.bindir @gem_home, @install_root) + -+ unless @install_root.nil? or @install_root == "" ++ unless @install_root.nil? or @install_root.empty? + bindir = File.join(@install_root, bindir) + end |