summaryrefslogtreecommitdiffstats
path: root/abs/extra
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra')
-rw-r--r--abs/extra/ruby/PKGBUILD66
-rw-r--r--abs/extra/ruby/gemrc2
2 files changed, 42 insertions, 26 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"
+}
diff --git a/abs/extra/ruby/gemrc b/abs/extra/ruby/gemrc
index 3d11de1..6516311 100644
--- a/abs/extra/ruby/gemrc
+++ b/abs/extra/ruby/gemrc
@@ -1,4 +1,4 @@
-# Read about the gemrc format at http://docs.rubygems.org/read/chapter/11
+# Read about the gemrc format at http://guides.rubygems.org/command-reference/#gem-environment
# --user-install is used to install to $HOME/.gem/ by default since we want to separate
# pacman installed gems and gem installed gems