From 9795fc593309b642607a0bf93c5ae62a6c207c71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Alexandre=20Silva=20Delgado?= Date: Wed, 4 Sep 2013 21:56:10 -0300 Subject: ruby1: adding pkg to pcr repo --- 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-2-g168b From 22cc22d21ac530b10d3d3d323daf72c5e7f07f31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Alexandre=20Silva=20Delgado?= Date: Thu, 5 Sep 2013 17:19:10 -0300 Subject: fixing ruby1 --- pcr/ruby1/ruby.install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pcr/ruby1/ruby.install') diff --git a/pcr/ruby1/ruby.install b/pcr/ruby1/ruby.install index ce78e96ec..21e9b98a2 100644 --- a/pcr/ruby1/ruby.install +++ b/pcr/ruby1/ruby.install @@ -3,9 +3,9 @@ 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 '$(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/gemrc or run gem with the --no-user-install flag.' + echo 'edit /etc/gem1rc or run gem with the --no-user-install flag.' } # arg 1: the new package version -- cgit v1.2.3-2-g168b