summaryrefslogtreecommitdiff
path: root/testing/ruby
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-04-28 00:01:35 +0000
committerroot <root@rshg054.dnsready.net>2012-04-28 00:01:35 +0000
commit00f77ef3b2b7856520daba393370f67b773c2184 (patch)
treeac5b63574a95d0d851e012957254f7456ced564f /testing/ruby
parent5233daa5825f00ccf0722ef9733ea6b3bbd44bc8 (diff)
Sat Apr 28 00:01:35 UTC 2012
Diffstat (limited to 'testing/ruby')
-rw-r--r--testing/ruby/PKGBUILD6
-rw-r--r--testing/ruby/ruby.install19
2 files changed, 18 insertions, 7 deletions
diff --git a/testing/ruby/PKGBUILD b/testing/ruby/PKGBUILD
index 090d798f0..084545294 100644
--- a/testing/ruby/PKGBUILD
+++ b/testing/ruby/PKGBUILD
@@ -4,8 +4,8 @@
# Contributor: Jeramy Rutley <jrutley@gmail.com>
pkgname=ruby
-pkgver=1.9.3_p125
-pkgrel=3
+pkgver=1.9.3_p194
+pkgrel=2
pkgdesc='An object-oriented language for quick and easy programming'
arch=('i686' 'x86_64')
url='http://www.ruby-lang.org/en/'
@@ -21,7 +21,7 @@ options=('!emptydirs' '!makeflags')
install='ruby.install'
source=("ftp://ftp.ruby-lang.org/pub/ruby/${pkgver%.*}/ruby-${pkgver//_/-}.tar.bz2"
'gemrc')
-md5sums=('702529a7f8417ed79f628b77d8061aa5'
+md5sums=('2278eff4cfed3cbc0653bc73085caa34'
'6fb8e7a09955e0f64be3158fb4a27e7a')
build() {
diff --git a/testing/ruby/ruby.install b/testing/ruby/ruby.install
index f91254084..ce78e96ec 100644
--- a/testing/ruby/ruby.install
+++ b/testing/ruby/ruby.install
@@ -1,11 +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)" -lt 0 ]; then
- echo 'The default location of gem installs has changed to $HOME/.gem/ruby'
- 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.'
+ if [ "$(vercmp $2 1.9.3_p125-4)" -lt 0 ]; then
+ print_gem_default_target
fi
}