From 25d91b472713b3ee72b65aa46359c95decc626e2 Mon Sep 17 00:00:00 2001 From: Michael Hanson Date: Sat, 20 Nov 2010 03:53:53 +0000 Subject: ruby: upgrade --- abs/extra/ruby/PKGBUILD | 67 +++++++++++++++++++++++++++++++++---------------- 1 file changed, 45 insertions(+), 22 deletions(-) diff --git a/abs/extra/ruby/PKGBUILD b/abs/extra/ruby/PKGBUILD index 4a4cdd0..e990221 100644 --- a/abs/extra/ruby/PKGBUILD +++ b/abs/extra/ruby/PKGBUILD @@ -1,28 +1,51 @@ -# $Id: PKGBUILD 26958 2009-02-14 23:32:24Z jgc $ -# Maintainer: dorphell -# Contributors: John Proctor -# Jeramy Rutley -pkgname=ruby -pkgver=1.8.7_p72 -_pkgver=1.8.7-p72 -pkgrel=3 +# $Id: PKGBUILD 96253 2010-10-19 15:06:00Z stephane $ +# Maintainer: Allan McRae +# Contributor: John Proctor +# Contributor: Jeramy Rutley + +pkgname=('ruby' 'ruby-docs') +pkgver=1.9.2_p0 +_pkgver=1.9.2-p0 +pkgrel=4 pkgdesc="An object-oriented language for quick and easy programming" -arch=(i686 x86_64) -license=('custom') +arch=('i686' 'x86_64') url="http://www.ruby-lang.org/en/" -depends=('gdbm>=1.8.3' 'db>=4.7.25' 'openssl>=0.9.8j' 'zlib>=1.2.3.3' 'readline>=5.2.013') -makedepends=('tk>=8.5') -source=(ftp://ftp.ruby-lang.org/pub/ruby/stable/${pkgname}-${_pkgver}.tar.bz2) -options=('!emptydirs' 'force') -md5sums=('0b215c46b89b28d7ab8d56d96e72d5b9') +license=('custom') +makedepends=('gdbm' 'db' 'openssl' 'zlib' 'readline' 'tk' 'libffi' + 'doxygen' 'graphviz') +options=('!emptydirs') +source=("ftp://ftp.ruby-lang.org/pub/ruby/1.9/${pkgname}-${_pkgver}.tar.bz2") +md5sums=('d8a02cadf57d2571cd4250e248ea7e4b') +sha256sums=('e9710990ed8c2e794123aba509010471915fb13c27dae0118831d2001a9c8d3b') build() { cd "${srcdir}/${pkgname}-${_pkgver}" - ./configure --prefix=/usr --enable-shared --enable-pthread || return 1 - make || return 1 - make DESTDIR="${pkgdir}" install || return 1 - #generate the ri docs - make -j1 DESTDIR="${pkgdir}" install-doc || return 1 - install -d "${pkgdir}/usr/share/licenses/${pkgname}" - install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" || return 1 + ./configure --prefix=/usr \ + --enable-shared \ + --enable-pthread \ + --disable-rpath + make +} + +package_ruby() +{ + depends=('gdbm' 'db' 'openssl' 'zlib' 'readline' 'libffi') + provides=('rubygems' 'rake') + conflicts=('rubygems' 'rake') + optdepends=('tk: for Ruby/TK') + + cd "${srcdir}/${pkgname}-${_pkgver}" + make DESTDIR="${pkgdir}" install-nodoc + install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" +} + +package_ruby-docs() +{ + pkgdesc="Documentation files for ruby" + #arch=('any') + depends=('ruby') + + cd "${srcdir}/${pkgname}-${_pkgver}" + make -j1 DESTDIR="${pkgdir}" install-doc install-capi + install -Dm644 COPYING "${pkgdir}/usr/share/licenses/ruby-docs/COPYING" } -- cgit v0.12