CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
ruby: updated to 2.4.3
[ports/opt-arm.git] / ruby / Pkgfile
index e21941f775f4dd31a045f6d32c5c85cbde74f115..5eee22e849c674ca86a59dfe32f61e7859dace9d 100644 (file)
@@ -1,25 +1,26 @@
-# Maintainer:  Juergen Daubert, jue at crux dot nu
 # Description: Ruby interpreter
-# URL:         http://www.ruby-lang.org
-# Depends on:  db, gdbm, ncurses, openssl, readline, zlib
+# URL: http://www.ruby-lang.org
+# Maintainer: Juergen Daubert, jue at crux dot nu
+# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
+# Depends on: gdbm ncurses openssl readline zlib libffi libyaml
 
 name=ruby
-version=1.9.3-p194
+version=2.4.3
 release=1
-source=(ftp://ftp.ruby-lang.org/pub/$name/1.9/$name-$version.tar.bz2 \
+source=(http://cache.ruby-lang.org/pub/$name/${version%.*}/$name-$version.tar.xz
         $name-arch.patch)
 
 build () {
-    cd $name-$version
+  cd $name-$version
 
-    patch -p0 -i $SRC/$name-arch.patch
+  patch -p0 -i $SRC/$name-arch.patch
 
-    ./configure --prefix=/usr \
-                --mandir=/usr/man \
-                --enable-shared \
-                --disable-install-doc \
-                --with-ruby-version=minor 
+  ./configure --prefix=/usr \
+              --mandir=/usr/man \
+              --enable-shared \
+              --disable-install-doc \
+              --with-ruby-version=minor 
 
-    make
-    make DESTDIR=$PKG install
+  make
+  make DESTDIR=$PKG install
 }