wok-6.x diff ruby/receipt @ rev 16214

wget: update deps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 31 13:30:47 2014 +0000 (2014-03-31)
parents 1040bd60b471
children e2dc7c2d000d
line diff
     1.1 --- a/ruby/receipt	Sun Aug 11 20:45:50 2013 +0000
     1.2 +++ b/ruby/receipt	Mon Mar 31 13:30:47 2014 +0000
     1.3 @@ -9,20 +9,34 @@
     1.4  TARBALL="$PACKAGE-$VERSION.tar.bz2"
     1.5  WEB_SITE="http://www.ruby-lang.org/"
     1.6  WGET_URL="ftp://ftp.ruby-lang.org/pub/ruby/${VERSION%.*}/$TARBALL"
     1.7 +TAGS="ruby language programming"
     1.8 +HOST_ARCH="i486 arm"
     1.9 +
    1.10  SUGGESTED="tk"
    1.11 -TAGS="ruby language programming"
    1.12 +RELATED="libruby libruby-dev libruby-extras ruby-dev"
    1.13 +DEPENDS="libdb ncurses openssl readline zlib gdbm"
    1.14 +BUILD_DEPENDS="zlib-dev tcl-dev openssl-dev db-dev readline-dev"
    1.15  
    1.16 -DEPENDS="libdb ncurses openssl readline zlib gdbm"
    1.17 -BUILD_DEPENDS="coreutils-file-output-full zlib-dev tk-dev tcl-dev openssl-dev \
    1.18 -db-dev readline-dev"
    1.19 +# Handle cross compilation.
    1.20 +case "$ARCH" in
    1.21 +	i?86) 
    1.22 +		BUILD_DEPENDS="$BUILD_DEPENDS coreutils-file-output-full tk-dev " ;;
    1.23 +	arm*)
    1.24 +		# executable host ruby is required. use --with-baseruby option.
    1.25 +		# --with-arch=arm 
    1.26 +		export ac_cv_func_getpgrp_void=yes
    1.27 +		export ac_cv_func_setpgrp_void=yes 
    1.28 +		ARCH_ARGS="--with-baseruby=/usr/bin/ruby" ;;
    1.29 +esac
    1.30  
    1.31  # Rules to configure and make the package.
    1.32  compile_rules()
    1.33  {
    1.34 -	cd $src
    1.35 -	patch -Np1 < $stuff/openssl-1.0.patch
    1.36 -	./configure --prefix=/usr --enable-shared \
    1.37 -		$CONFIGURE_ARGS &&
    1.38 +	#patch -Np1 < $stuff/openssl-1.0.patch
    1.39 +	./configure \
    1.40 +		--prefix=/usr \
    1.41 +		--enable-shared \
    1.42 +		$CONFIGURE_ARGS ${ARCH_ARGS} &&
    1.43  	make $MAKEFLAGS &&
    1.44  	make DESTDIR=$DESTDIR install
    1.45  }