summaryrefslogtreecommitdiffstats
path: root/abs/extra/ruby/ruby.install
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-07 20:47:36 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-07 20:47:36 (GMT)
commit332aa4a482d846911cc534ff552478f884a23ece (patch)
tree5cbe37d302f7bd46e60cb8ef3100d34d8f3a566d /abs/extra/ruby/ruby.install
parent21d789843e7ba00e7378abf55964b5865695999c (diff)
downloadlinhes_pkgbuild-332aa4a482d846911cc534ff552478f884a23ece.zip
linhes_pkgbuild-332aa4a482d846911cc534ff552478f884a23ece.tar.gz
linhes_pkgbuild-332aa4a482d846911cc534ff552478f884a23ece.tar.bz2
ruby 1.9.3
Diffstat (limited to 'abs/extra/ruby/ruby.install')
-rw-r--r--abs/extra/ruby/ruby.install22
1 files changed, 22 insertions, 0 deletions
diff --git a/abs/extra/ruby/ruby.install b/abs/extra/ruby/ruby.install
new file mode 100644
index 0000000..ce78e96
--- /dev/null
+++ b/abs/extra/ruby/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
+}