diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-09-09 11:55:53 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-09-09 11:55:53 -0300 |
commit | 7fb4c691ee96e9ea02b89d4fdd00c64186446d9c (patch) | |
tree | 304036259a1c2a9192f8f15a088b15e158ba7be7 /pcr/ruby1/ruby.install | |
parent | 851936e397e259c5b6ef12837c2b624fcd8003ec (diff) | |
parent | 58d1f1eb75d3b2e65cd2ed341bc7811775befcef (diff) |
Merge branch 'master' of vparabola:abslibre
Diffstat (limited to 'pcr/ruby1/ruby.install')
-rw-r--r-- | pcr/ruby1/ruby.install | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/pcr/ruby1/ruby.install b/pcr/ruby1/ruby.install new file mode 100644 index 000000000..21e9b98a2 --- /dev/null +++ b/pcr/ruby1/ruby.install @@ -0,0 +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 '$(ruby1 -rubygems -e "puts Gem.user_dir")/bin' + echo 'If you want to install to the system wide location, you must either:' + echo 'edit /etc/gem1rc 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-4)" -lt 0 ]; then + print_gem_default_target + fi +} |