[arch-commits] Commit in ruby/trunk (PKGBUILD gemrc ruby.install)

Thomas Dziedzic tdziedzic at archlinux.org
Thu Feb 16 15:55:23 UTC 2012


    Date: Thursday, February 16, 2012 @ 10:55:23
  Author: tdziedzic
Revision: 150296

upgpkg: ruby 1.9.3_p125-1

change default gem location to $HOME/.gem/ruby, split out ruby-docs into seperate pkgbuild, other minor cleanups

Added:
  ruby/trunk/gemrc
  ruby/trunk/ruby.install
Modified:
  ruby/trunk/PKGBUILD

--------------+
 PKGBUILD     |    4 +++-
 gemrc        |    5 +++++
 ruby.install |   11 +++++++++++
 3 files changed, 19 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-02-16 15:09:15 UTC (rev 150295)
+++ PKGBUILD	2012-02-16 15:55:23 UTC (rev 150296)
@@ -15,8 +15,10 @@
 conflicts=('rake')
 depends=('openssl' 'libffi' 'libyaml')
 makedepends=('tk')
-optdepends=('tk: for Ruby/TK')
+optdepends=('tk: for Ruby/TK'
+            'ruby-docs: Ruby documentation')
 options=('!emptydirs' '!makeflags')
+install='ruby.install'
 source=("ftp://ftp.ruby-lang.org/pub/ruby/${pkgver%.*}/ruby-${pkgver//_/-}.tar.bz2"
         'gemrc')
 md5sums=('341b8fc42aa18bd668314199f219db14'

Added: gemrc
===================================================================
--- gemrc	                        (rev 0)
+++ gemrc	2012-02-16 15:55:23 UTC (rev 150296)
@@ -0,0 +1,5 @@
+# Read about the gemrc format at http://docs.rubygems.org/read/chapter/11
+
+# --user-install is used to install to $HOME/.gem/ by default since we want to separate
+#                pacman installed gems and gem installed gems
+gem: --user-install

Added: ruby.install
===================================================================
--- ruby.install	                        (rev 0)
+++ ruby.install	2012-02-16 15:55:23 UTC (rev 150296)
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# 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.'
+  fi
+}




More information about the arch-commits mailing list