CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
ruby: updated to 2.4.2
[ports/opt-arm.git] / ruby / Pkgfile
index 8336ab2d72504a9baae7dcece9443c6fe6e525df..4189a68b961587de6c46bb6565f2e4521b37268d 100644 (file)
@@ -5,22 +5,22 @@
 # Depends on: gdbm ncurses openssl readline zlib libffi libyaml
 
 name=ruby
-version=1.9.3-p448
+version=2.4.2
 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
 }