summaryrefslogtreecommitdiff
path: root/extra/ruby/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/ruby/PKGBUILD')
-rw-r--r--extra/ruby/PKGBUILD33
1 files changed, 20 insertions, 13 deletions
diff --git a/extra/ruby/PKGBUILD b/extra/ruby/PKGBUILD
index fc4fb1009..aa7ded71a 100644
--- a/extra/ruby/PKGBUILD
+++ b/extra/ruby/PKGBUILD
@@ -4,20 +4,28 @@
# Contributor: Jeramy Rutley <jrutley@gmail.com>
pkgname=('ruby' 'ruby-docs')
-pkgver=2.0.0_p353
-pkgrel=1
+pkgver=2.1.0
+pkgrel=2
arch=('i686' 'x86_64')
url='http://www.ruby-lang.org/en/'
license=('BSD' 'custom')
-makedepends=('gdbm' 'openssl' 'tk' 'libffi' 'doxygen' 'graphviz' 'libyaml')
+# disable ruby tk since 1.9.3 it has caused a segfault on require 'tk'
+# https://bugs.ruby-lang.org/issues/8000
+# wait for upstream to start supporting tk 8.6
+makedepends=('gdbm' 'openssl' 'libffi' 'doxygen' 'graphviz' 'libyaml') # 'tk'
options=('!emptydirs' '!makeflags' 'staticlibs')
-source=("http://cache.ruby-lang.org/pub/ruby/${pkgver%.*}/ruby-${pkgver//_/-}.tar.bz2"
- 'gemrc')
-md5sums=('20eb8f067d20f6b76b7e16cce2a85a55'
- '6fb8e7a09955e0f64be3158fb4a27e7a')
+source=("http://cache.ruby-lang.org/pub/ruby/ruby-${pkgver}.tar.bz2"
+ 'gemrc'
+ '0001-Fix-installing-gem-from-file-without-dependencies.patch')
+md5sums=('1546eeb763ac7754365664be763a1e8f'
+ '6fb8e7a09955e0f64be3158fb4a27e7a'
+ '61a1507f260866805fc6451c14733b25')
build() {
- cd ruby-${pkgver//_/-}
+ cd ruby-${pkgver}
+
+ # fixes https://github.com/rubygems/rubygems/issues/760
+ patch -Np1 -i ${srcdir}/0001-Fix-installing-gem-from-file-without-dependencies.patch
PKG_CONFIG=/usr/bin/pkg-config ./configure \
--prefix=/usr \
@@ -30,7 +38,7 @@ build() {
}
check() {
- cd ruby-${pkgver//_/-}
+ cd ruby-${pkgver}
make test
}
@@ -38,14 +46,13 @@ check() {
package_ruby() {
pkgdesc='An object-oriented language for quick and easy programming'
depends=('gdbm' 'openssl' 'libffi' 'libyaml')
- optdepends=('tk: for Ruby/TK'
- 'ruby-docs: Ruby documentation')
+ optdepends=('ruby-docs: Ruby documentation') # 'tk: for Ruby/TK'
provides=('rubygems' 'rake')
conflicts=('rake')
backup=('etc/gemrc')
install='ruby.install'
- cd ruby-${pkgver//_/-}
+ cd ruby-${pkgver}
make DESTDIR="${pkgdir}" install-nodoc
@@ -58,7 +65,7 @@ package_ruby() {
package_ruby-docs() {
pkgdesc='Documentation files for ruby'
- cd ruby-${pkgver//_/-}
+ cd ruby-${pkgver}
make DESTDIR="${pkgdir}" install-doc install-capi