summaryrefslogtreecommitdiff
path: root/pcr/ruby1/ruby.install
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2013-09-05 16:21:07 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2013-09-05 16:21:07 -0300
commit2ec8351f59cc819b08e59adda000dbc8d65df6b5 (patch)
tree82b50cb6620736dd6dad0915240aed0a198f08ab /pcr/ruby1/ruby.install
parent3d64c0581c214a9f1a8175c9cc715d039df4ef55 (diff)
parent1cd688c7b7c7ad84cd4f3f57219189df70343b46 (diff)
downloadabslibre-2ec8351f59cc819b08e59adda000dbc8d65df6b5.tar.gz
abslibre-2ec8351f59cc819b08e59adda000dbc8d65df6b5.tar.bz2
abslibre-2ec8351f59cc819b08e59adda000dbc8d65df6b5.zip
Merge branch 'master' of ssh://projects.parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr/ruby1/ruby.install')
-rw-r--r--pcr/ruby1/ruby.install22
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..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
+}