From f7a2cf07dfae6a6707525e05f4f7f1998b382c4d Mon Sep 17 00:00:00 2001 From: root Date: Thu, 5 Sep 2013 02:55:03 -0700 Subject: Thu Sep 5 02:49:47 PDT 2013 --- pcr/ruby1/ruby.install | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 pcr/ruby1/ruby.install (limited to 'pcr/ruby1/ruby.install') diff --git a/pcr/ruby1/ruby.install b/pcr/ruby1/ruby.install new file mode 100644 index 000000000..ce78e96ec --- /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 '$(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-4)" -lt 0 ]; then + print_gem_default_target + fi +} -- cgit v1.2.3-54-g00ecf