[arch-commits] Commit in ruby/trunk (PKGBUILD ruby.install)
Thomas Dziedzic
tdziedzic at archlinux.org
Sun Apr 8 04:45:40 UTC 2012
Date: Sunday, April 8, 2012 @ 00:45:39
Author: tdziedzic
Revision: 155857
upgpkg: ruby 1.9.3_p125-4
add post_install msg about default gem behavior
Modified:
ruby/trunk/PKGBUILD
ruby/trunk/ruby.install
--------------+
PKGBUILD | 2 +-
ruby.install | 19 +++++++++++++++----
2 files changed, 16 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2012-04-07 19:25:11 UTC (rev 155856)
+++ PKGBUILD 2012-04-08 04:45:39 UTC (rev 155857)
@@ -5,7 +5,7 @@
pkgname=ruby
pkgver=1.9.3_p125
-pkgrel=3
+pkgrel=4
pkgdesc='An object-oriented language for quick and easy programming'
arch=('i686' 'x86_64')
url='http://www.ruby-lang.org/en/'
Modified: ruby.install
===================================================================
--- ruby.install 2012-04-07 19:25:11 UTC (rev 155856)
+++ ruby.install 2012-04-08 04:45:39 UTC (rev 155857)
@@ -1,11 +1,22 @@
#!/bin/sh
+print_gem_default_target() {
+ echo 'The default location of gem installs is $HOME/.gem/ruby'
+ echo 'Add the following line to your PATH if you plan to install using gem'
+ echo '$(ruby -rubygems -e "puts Gem.user_dir")/bin'
+ echo 'If you want to install to the system wide location, you must either:'
+ echo 'edit /etc/gemrc or run gem with the --no-user-install flag.'
+}
+
# arg 1: the new package version
+post_install() {
+ print_gem_default_target
+}
+
+# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
- if [ "$(vercmp $2 1.9.3_p125)" -lt 0 ]; then
- echo 'The default location of gem installs has changed to $HOME/.gem/ruby'
- echo 'If you want to install to the system wide location, you must either:'
- echo 'edit /etc/gemrc or run gem with the --no-user-install flag.'
+ if [ "$(vercmp $2 1.9.3_p125-4)" -lt 0 ]; then
+ print_gem_default_target
fi
}
More information about the arch-commits
mailing list