summaryrefslogtreecommitdiffstats
path: root/abs/extra/ruby
diff options
context:
space:
mode:
authorMichael Hanson <hansonorders@verizon.net>2010-11-20 03:53:53 (GMT)
committerMichael Hanson <hansonorders@verizon.net>2010-11-20 03:53:53 (GMT)
commit25d91b472713b3ee72b65aa46359c95decc626e2 (patch)
treefbcdbb4c2621be666e4b8baea6cf67b229815794 /abs/extra/ruby
parent9b4d2dbda96bc86d0070a7097c8975075af5caa5 (diff)
downloadlinhes_pkgbuild-25d91b472713b3ee72b65aa46359c95decc626e2.zip
linhes_pkgbuild-25d91b472713b3ee72b65aa46359c95decc626e2.tar.gz
linhes_pkgbuild-25d91b472713b3ee72b65aa46359c95decc626e2.tar.bz2
ruby: upgrade
Diffstat (limited to 'abs/extra/ruby')
-rw-r--r--abs/extra/ruby/PKGBUILD67
1 files 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 <dorphell@archlinux.org>
-# Contributors: John Proctor <jproctor@prium.net>
-# Jeramy Rutley <jrutley@gmail.com>
-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 <allan@archlinux.org>
+# Contributor: John Proctor <jproctor@prium.net>
+# Contributor: Jeramy Rutley <jrutley@gmail.com>
+
+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"
}