summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Legler <a3li@gentoo.org>2011-10-31 09:14:03 +0000
committerAlex Legler <a3li@gentoo.org>2011-10-31 09:14:03 +0000
commit6f6f974eca5d832577704ffe54f2c1bad201bb8f (patch)
treece7c55d86c162d1a0e40cabeb7438adfaa20addb /dev-ruby
parentNew pretest version. (diff)
downloadgentoo-2-6f6f974eca5d832577704ffe54f2c1bad201bb8f.tar.gz
gentoo-2-6f6f974eca5d832577704ffe54f2c1bad201bb8f.tar.bz2
gentoo-2-6f6f974eca5d832577704ffe54f2c1bad201bb8f.zip
Fix default gem binaries directory that would point to /usr/local for user installations as well, causing permission errors. Revbump to update the changes.
(Portage version: 2.2.0_alpha59/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/rubygems/ChangeLog10
-rw-r--r--dev-ruby/rubygems/files/gentoo-defaults.rb2
-rw-r--r--dev-ruby/rubygems/rubygems-1.8.10-r1.ebuild (renamed from dev-ruby/rubygems/rubygems-1.8.10.ebuild)2
3 files changed, 11 insertions, 3 deletions
diff --git a/dev-ruby/rubygems/ChangeLog b/dev-ruby/rubygems/ChangeLog
index b028cc4b0710..527da554b7f7 100644
--- a/dev-ruby/rubygems/ChangeLog
+++ b/dev-ruby/rubygems/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for dev-ruby/rubygems
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/ChangeLog,v 1.178 2011/10/22 11:40:05 graaff Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/ChangeLog,v 1.179 2011/10/31 09:14:03 a3li Exp $
+
+*rubygems-1.8.10-r1 (31 Oct 2011)
+
+ 31 Oct 2011; Alex Legler <a3li@gentoo.org> -rubygems-1.8.10.ebuild,
+ +rubygems-1.8.10-r1.ebuild, files/gentoo-defaults.rb:
+ Fix default gem binaries directory that would point to /usr/local for user
+ installations as well, causing permission errors. Revbump to update the
+ changes.
22 Oct 2011; Hans de Graaff <graaff@gentoo.org> -rubygems-1.8.5.ebuild,
-rubygems-1.8.7.ebuild:
diff --git a/dev-ruby/rubygems/files/gentoo-defaults.rb b/dev-ruby/rubygems/files/gentoo-defaults.rb
index 3702333b76cc..a645f4868281 100644
--- a/dev-ruby/rubygems/files/gentoo-defaults.rb
+++ b/dev-ruby/rubygems/files/gentoo-defaults.rb
@@ -21,7 +21,7 @@ module Gem
undef :default_bindir
def default_bindir
- "@GENTOO_PORTAGE_EPREFIX@/usr/local/bin"
+ Process.euid == 0 ? "@GENTOO_PORTAGE_EPREFIX@/usr/local/bin" : File.join(user_dir, 'bin')
end
undef :ruby_engine
diff --git a/dev-ruby/rubygems/rubygems-1.8.10.ebuild b/dev-ruby/rubygems/rubygems-1.8.10-r1.ebuild
index 2c4e9326805e..d122ce4b1f10 100644
--- a/dev-ruby/rubygems/rubygems-1.8.10.ebuild
+++ b/dev-ruby/rubygems/rubygems-1.8.10-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/rubygems-1.8.10.ebuild,v 1.3 2011/10/22 11:39:00 graaff Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/rubygems-1.8.10-r1.ebuild,v 1.1 2011/10/31 09:14:03 a3li Exp $
EAPI="4"