# HG changeset patch # User Christophe Lincoln # Date 1396201195 -7200 # Node ID fa43369c61c4d88f6455e82b9e780683e30b7c57 # Parent 6ae8ed78da10a8b702e4faeb4cd0d235bb23943c ARM: add ruby!!! diff -r 6ae8ed78da10 -r fa43369c61c4 libruby-extras/receipt --- a/libruby-extras/receipt Sun Mar 30 18:14:36 2014 +0000 +++ b/libruby-extras/receipt Sun Mar 30 19:39:55 2014 +0200 @@ -8,6 +8,7 @@ LICENSE="GPL2" WEB_SITE="http://www.ruby-lang.org/" WANTED="ruby" +HOST_ARCH="i486 arm" DEPENDS="libruby" diff -r 6ae8ed78da10 -r fa43369c61c4 libruby/receipt --- a/libruby/receipt Sun Mar 30 18:14:36 2014 +0000 +++ b/libruby/receipt Sun Mar 30 19:39:55 2014 +0200 @@ -8,13 +8,14 @@ LICENSE="GPL2" WEB_SITE="http://www.ruby-lang.org/" WANTED="ruby" +HOST_ARCH="i486 arm" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib/ cp -a $install/usr/lib/*.so* $fs/usr/lib -# cp -a $install/usr/lib/ruby $fs/usr/lib + #cp -a $install/usr/lib/ruby $fs/usr/lib # Remove devel files --> ruby-dev #~ rm $fs/usr/lib/ruby/${VERSION%.*}/i486-linux/*.h diff -r 6ae8ed78da10 -r fa43369c61c4 ruby-dev/receipt --- a/ruby-dev/receipt Sun Mar 30 18:14:36 2014 +0000 +++ b/ruby-dev/receipt Sun Mar 30 19:39:55 2014 +0200 @@ -8,6 +8,7 @@ LICENSE="GPL2" WEB_SITE="http://www.ruby-lang.org/" WANTED="ruby" +HOST_ARCH="i486 arm" DEPENDS="ruby" diff -r 6ae8ed78da10 -r fa43369c61c4 ruby/receipt --- a/ruby/receipt Sun Mar 30 18:14:36 2014 +0000 +++ b/ruby/receipt Sun Mar 30 19:39:55 2014 +0200 @@ -9,20 +9,34 @@ TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="http://www.ruby-lang.org/" WGET_URL="ftp://ftp.ruby-lang.org/pub/ruby/${VERSION%.*}/$TARBALL" +TAGS="ruby language programming" +HOST_ARCH="i486 arm" + SUGGESTED="tk" -TAGS="ruby language programming" +RELATED="libruby libruby-dev libruby-extras ruby-dev" +DEPENDS="libdb ncurses openssl readline zlib gdbm" +BUILD_DEPENDS="zlib-dev tcl-dev openssl-dev db-dev readline-dev" -DEPENDS="libdb ncurses openssl readline zlib gdbm" -BUILD_DEPENDS="coreutils-file-output-full zlib-dev tk-dev tcl-dev openssl-dev \ -db-dev readline-dev" +# Handle cross compilation. +case "$ARCH" in + i?86) + BUILD_DEPENDS="$BUILD_DEPENDS coreutils-file-output-full tk-dev " ;; + arm*) + # executable host ruby is required. use --with-baseruby option. + # --with-arch=arm + export ac_cv_func_getpgrp_void=yes + export ac_cv_func_setpgrp_void=yes + ARCH_ARGS="--with-baseruby=/usr/bin/ruby" ;; +esac # Rules to configure and make the package. compile_rules() { - cd $src - patch -Np1 < $stuff/openssl-1.0.patch - ./configure --prefix=/usr --enable-shared \ - $CONFIGURE_ARGS && + #patch -Np1 < $stuff/openssl-1.0.patch + ./configure \ + --prefix=/usr \ + --enable-shared \ + $CONFIGURE_ARGS ${ARCH_ARGS} && make $MAKEFLAGS && make DESTDIR=$DESTDIR install } diff -r 6ae8ed78da10 -r fa43369c61c4 rubygems/receipt --- a/rubygems/receipt Sun Mar 30 18:14:36 2014 +0000 +++ b/rubygems/receipt Sun Mar 30 19:39:55 2014 +0200 @@ -10,22 +10,22 @@ WEB_SITE="http://www.rubygems.org/" WGET_URL="http://production.cf.rubygems.org/rubygems/$TARBALL" TAGS="ruby" +HOST_ARCH="i486 arm" +# ARM: ruby-dev libruby-extras build host must be installed DEPENDS="ruby libruby-extras" BUILD_DEPENDS="ruby ruby-dev libruby-extras" # Rules to configure and make the package. compile_rules() { - cd $src ruby setup.rb --destdir=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/ - + mkdir -p $fs/usr cp -a $install/usr/lib $fs/usr cp -a $install/usr/bin $fs/usr }