summaryrefslogtreecommitdiff
path: root/extra/ruby/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/ruby/PKGBUILD')
-rw-r--r--extra/ruby/PKGBUILD43
1 files changed, 28 insertions, 15 deletions
diff --git a/extra/ruby/PKGBUILD b/extra/ruby/PKGBUILD
index 084545294..0732107ea 100644
--- a/extra/ruby/PKGBUILD
+++ b/extra/ruby/PKGBUILD
@@ -3,22 +3,14 @@
# Contributor: John Proctor <jproctor@prium.net>
# Contributor: Jeramy Rutley <jrutley@gmail.com>
-pkgname=ruby
-pkgver=1.9.3_p194
-pkgrel=2
-pkgdesc='An object-oriented language for quick and easy programming'
+pkgname=('ruby' 'ruby-docs')
+pkgver=1.9.3_p286
+pkgrel=1
arch=('i686' 'x86_64')
url='http://www.ruby-lang.org/en/'
license=('BSD' 'custom')
-backup=('etc/gemrc')
-provides=('rubygems' 'rake')
-conflicts=('rake')
-depends=('openssl' 'libffi' 'libyaml')
-makedepends=('tk')
-optdepends=('tk: for Ruby/TK'
- 'ruby-docs: Ruby documentation')
+makedepends=('openssl' 'tk' 'libffi' 'doxygen' 'graphviz' 'libyaml')
options=('!emptydirs' '!makeflags')
-install='ruby.install'
source=("ftp://ftp.ruby-lang.org/pub/ruby/${pkgver%.*}/ruby-${pkgver//_/-}.tar.bz2"
'gemrc')
md5sums=('2278eff4cfed3cbc0653bc73085caa34'
@@ -32,8 +24,7 @@ build() {
--sysconfdir=/etc \
--enable-shared \
--enable-pthread \
- --disable-rpath \
- --disable-install-doc
+ --disable-rpath
make
}
@@ -44,7 +35,16 @@ check() {
make test
}
-package() {
+package_ruby() {
+ pkgdesc='An object-oriented language for quick and easy programming'
+ depends=('openssl' 'libffi' 'libyaml')
+ optdepends=('tk: for Ruby/TK'
+ 'ruby-docs: Ruby documentation')
+ provides=('rubygems' 'rake')
+ conflicts=('rake')
+ backup=('etc/gemrc')
+ install='ruby.install'
+
cd ruby-${pkgver//_/-}
make DESTDIR="${pkgdir}" install-nodoc
@@ -54,3 +54,16 @@ package() {
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/ruby/LICENSE"
install -D -m644 BSDL "${pkgdir}/usr/share/licenses/ruby/BSDL"
}
+
+package_ruby-docs() {
+ pkgdesc='Documentation files for ruby'
+
+ cd ruby-${pkgver//_/-}
+
+ make DESTDIR="${pkgdir}" install-doc install-capi
+
+ install -D -m644 COPYING "${pkgdir}/usr/share/licenses/ruby-docs/LICENSE"
+ install -D -m644 BSDL "${pkgdir}/usr/share/licenses/ruby-docs/BSDL"
+}
+md5sums=('e76848a86606a4fd5dcf14fc4b4e755e'
+ '6fb8e7a09955e0f64be3158fb4a27e7a')