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

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


    Date: Thursday, February 16, 2012 @ 10:09:15
  Author: tdziedzic
Revision: 150295

update to p125 and split ruby-docs into seperate pkgbuild to make it an any pkg

Modified:
  ruby/trunk/PKGBUILD

----------+
 PKGBUILD |   56 +++++++++++++++++++++++++-------------------------------
 1 file changed, 25 insertions(+), 31 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-02-16 15:06:32 UTC (rev 150294)
+++ PKGBUILD	2012-02-16 15:09:15 UTC (rev 150295)
@@ -1,60 +1,54 @@
-# $Id$
 # Maintainer: Thomas Dziedzic <gostrc at gmail.com>
 # Contributor: Allan McRae <allan at archlinux.org>
 # Contributor: John Proctor <jproctor at prium.net>
 # Contributor: Jeramy Rutley <jrutley at gmail.com>
 
-pkgbase=ruby
-pkgname=('ruby' 'ruby-docs')
-pkgver=1.9.3_p0
-pkgrel=3
-pkgdesc="An object-oriented language for quick and easy programming"
+pkgname=ruby
+pkgver=1.9.3_p125
+pkgrel=1
+pkgdesc='An object-oriented language for quick and easy programming'
 arch=('i686' 'x86_64')
-url="http://www.ruby-lang.org/en/"
+url='http://www.ruby-lang.org/en/'
 license=('BSD' 'custom')
-makedepends=('openssl' 'tk' 'libffi' 'doxygen' 'graphviz' 'libyaml')
+backup=('etc/gemrc')
+provides=('rubygems' 'rake')
+conflicts=('rake')
+depends=('openssl' 'libffi' 'libyaml')
+makedepends=('tk')
+optdepends=('tk: for Ruby/TK')
 options=('!emptydirs' '!makeflags')
-source=("ftp://ftp.ruby-lang.org/pub/${pkgbase}/${pkgver%.*}/${pkgbase}-${pkgver//_/-}.tar.bz2")
-sha1sums=('f63c116411b981ef54c2caeefb9ccc4d71a5d2cf')
+source=("ftp://ftp.ruby-lang.org/pub/ruby/${pkgver%.*}/ruby-${pkgver//_/-}.tar.bz2"
+        'gemrc')
+md5sums=('341b8fc42aa18bd668314199f219db14'
+         '6fb8e7a09955e0f64be3158fb4a27e7a')
 
 build() {
-  cd ${pkgbase}-${pkgver//_/-}
+  cd ruby-${pkgver//_/-}
 
-  DOXYGEN=/usr/bin/doxygen PKG_CONFIG=/usr/bin/pkg-config ./configure \
+  PKG_CONFIG=/usr/bin/pkg-config ./configure \
     --prefix=/usr \
     --sysconfdir=/etc \
     --enable-shared \
     --enable-pthread \
-    --disable-rpath
+    --disable-rpath \
+    --disable-install-doc
 
   make
 }
 
 check() {
-  cd ${pkgbase}-${pkgver//_/-}
+  cd ruby-${pkgver//_/-}
 
   make test
 }
 
-package_ruby() {
-  depends=('openssl' 'libffi' 'libyaml')
-  provides=('rubygems' 'rake')
-  conflicts=('rake')
-  optdepends=('tk: for Ruby/TK')
+package() {
+  cd ruby-${pkgver//_/-}
 
-  cd ${pkgbase}-${pkgver//_/-}
-
   make DESTDIR="${pkgdir}" install-nodoc
-  install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-  install -D -m644 BSDL "${pkgdir}/usr/share/licenses/${pkgname}/BSDL"
-}
 
-package_ruby-docs() {
-  pkgdesc="Documentation files for ruby"
+  install -D -m644 ${srcdir}/gemrc "${pkgdir}/etc/gemrc"
 
-  cd ${pkgbase}-${pkgver//_/-}
-
-  make DESTDIR="${pkgdir}" install-doc install-capi
-  install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-  install -D -m644 BSDL "${pkgdir}/usr/share/licenses/${pkgname}/BSDL"
+  install -D -m644 COPYING "${pkgdir}/usr/share/licenses/ruby/LICENSE"
+  install -D -m644 BSDL "${pkgdir}/usr/share/licenses/ruby/BSDL"
 }




More information about the arch-commits mailing list