diff options
author | root <root@rshg054.dnsready.net> | 2012-04-10 00:01:08 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-04-10 00:01:08 +0000 |
commit | 223ca251f3ce07eb5484be845e631d6ca645b263 (patch) | |
tree | a9e543c45cd0d58c82e39617f602a718d86976c4 /extra/ruby | |
parent | 1fed401c439c264bd92a4c13af1bea0bea458cb4 (diff) |
Tue Apr 10 00:01:08 UTC 2012
Diffstat (limited to 'extra/ruby')
-rw-r--r-- | extra/ruby/PKGBUILD | 2 | ||||
-rw-r--r-- | extra/ruby/ruby.install | 19 |
2 files changed, 16 insertions, 5 deletions
diff --git a/extra/ruby/PKGBUILD b/extra/ruby/PKGBUILD index 090d798f0..3432d31d3 100644 --- a/extra/ruby/PKGBUILD +++ b/extra/ruby/PKGBUILD @@ -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/' diff --git a/extra/ruby/ruby.install b/extra/ruby/ruby.install index f91254084..ce78e96ec 100644 --- a/extra/ruby/ruby.install +++ b/extra/ruby/ruby.install @@ -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 } |