summaryrefslogtreecommitdiffstats
path: root/abs/extra/ruby/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra/ruby/PKGBUILD')
-rw-r--r--abs/extra/ruby/PKGBUILD66
1 files changed, 41 insertions, 25 deletions
diff --git a/abs/extra/ruby/PKGBUILD b/abs/extra/ruby/PKGBUILD
index 0845452..2e104bd 100644
--- a/abs/extra/ruby/PKGBUILD
+++ b/abs/extra/ruby/PKGBUILD
@@ -3,49 +3,54 @@
# 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'
-arch=('i686' 'x86_64')
+pkgname=(ruby ruby-docs)
+pkgver=2.4.0
+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')
-options=('!emptydirs' '!makeflags')
-install='ruby.install'
-source=("ftp://ftp.ruby-lang.org/pub/ruby/${pkgver%.*}/ruby-${pkgver//_/-}.tar.bz2"
- 'gemrc')
-md5sums=('2278eff4cfed3cbc0653bc73085caa34'
- '6fb8e7a09955e0f64be3158fb4a27e7a')
+license=(BSD custom)
+makedepends=(gdbm openssl libffi doxygen graphviz libyaml ttf-dejavu tk)
+options=(!emptydirs)
+source=(https://cache.ruby-lang.org/pub/ruby/${pkgver:0:3}/ruby-${pkgver}.tar.xz
+ gemrc)
+sha1sums=('038804bbd0e77508dd2510b729a9f3b325489b2e'
+ 'dc536754c8fac2c3d82965c5a708cd8f79562d98')
build() {
- cd ruby-${pkgver//_/-}
+ cd ruby-${pkgver}
PKG_CONFIG=/usr/bin/pkg-config ./configure \
--prefix=/usr \
--sysconfdir=/etc \
+ --localstatedir=/var \
+ --sharedstatedir=/var/lib \
+ --libexecdir=/usr/lib/ruby \
--enable-shared \
- --enable-pthread \
--disable-rpath \
- --disable-install-doc
+ --with-dbm-type=gdbm_compat
make
}
check() {
- cd ruby-${pkgver//_/-}
+ cd ruby-${pkgver}
make test
}
-package() {
- cd ruby-${pkgver//_/-}
+package_ruby() {
+ pkgdesc='An object-oriented language for quick and easy programming'
+ depends=(gdbm openssl libffi libyaml gmp zlib)
+ optdepends=(
+ 'ruby-docs: Ruby documentation'
+ 'tk: for Ruby/TK'
+ )
+ provides=(rubygems rake)
+ conflicts=(rake)
+ backup=(etc/gemrc)
+ install=ruby.install
+
+ cd ruby-${pkgver}
make DESTDIR="${pkgdir}" install-nodoc
@@ -54,3 +59,14 @@ 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"
+}