wok-6.x rev 16189

ARM: add ruby!!!
author Christophe Lincoln <pankso@slitaz.org>
date Sun Mar 30 19:39:55 2014 +0200 (2014-03-30)
parents 6ae8ed78da10
children 6dd5b7ae0e11
files libruby-extras/receipt libruby/receipt ruby-dev/receipt ruby/receipt rubygems/receipt
line diff
     1.1 --- a/libruby-extras/receipt	Sun Mar 30 18:14:36 2014 +0000
     1.2 +++ b/libruby-extras/receipt	Sun Mar 30 19:39:55 2014 +0200
     1.3 @@ -8,6 +8,7 @@
     1.4  LICENSE="GPL2"
     1.5  WEB_SITE="http://www.ruby-lang.org/"
     1.6  WANTED="ruby"
     1.7 +HOST_ARCH="i486 arm"
     1.8  
     1.9  DEPENDS="libruby"
    1.10  
     2.1 --- a/libruby/receipt	Sun Mar 30 18:14:36 2014 +0000
     2.2 +++ b/libruby/receipt	Sun Mar 30 19:39:55 2014 +0200
     2.3 @@ -8,13 +8,14 @@
     2.4  LICENSE="GPL2"
     2.5  WEB_SITE="http://www.ruby-lang.org/"
     2.6  WANTED="ruby"
     2.7 +HOST_ARCH="i486 arm"
     2.8  
     2.9  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.10  genpkg_rules()
    2.11  {
    2.12  	mkdir -p $fs/usr/lib/
    2.13  	cp -a $install/usr/lib/*.so* $fs/usr/lib
    2.14 -#	cp -a $install/usr/lib/ruby $fs/usr/lib
    2.15 +	#cp -a $install/usr/lib/ruby $fs/usr/lib
    2.16  	
    2.17  	# Remove devel files --> ruby-dev
    2.18  	#~ rm $fs/usr/lib/ruby/${VERSION%.*}/i486-linux/*.h
     3.1 --- a/ruby-dev/receipt	Sun Mar 30 18:14:36 2014 +0000
     3.2 +++ b/ruby-dev/receipt	Sun Mar 30 19:39:55 2014 +0200
     3.3 @@ -8,6 +8,7 @@
     3.4  LICENSE="GPL2"
     3.5  WEB_SITE="http://www.ruby-lang.org/"
     3.6  WANTED="ruby"
     3.7 +HOST_ARCH="i486 arm"
     3.8  
     3.9  DEPENDS="ruby"
    3.10  
     4.1 --- a/ruby/receipt	Sun Mar 30 18:14:36 2014 +0000
     4.2 +++ b/ruby/receipt	Sun Mar 30 19:39:55 2014 +0200
     4.3 @@ -9,20 +9,34 @@
     4.4  TARBALL="$PACKAGE-$VERSION.tar.bz2"
     4.5  WEB_SITE="http://www.ruby-lang.org/"
     4.6  WGET_URL="ftp://ftp.ruby-lang.org/pub/ruby/${VERSION%.*}/$TARBALL"
     4.7 +TAGS="ruby language programming"
     4.8 +HOST_ARCH="i486 arm"
     4.9 +
    4.10  SUGGESTED="tk"
    4.11 -TAGS="ruby language programming"
    4.12 +RELATED="libruby libruby-dev libruby-extras ruby-dev"
    4.13 +DEPENDS="libdb ncurses openssl readline zlib gdbm"
    4.14 +BUILD_DEPENDS="zlib-dev tcl-dev openssl-dev db-dev readline-dev"
    4.15  
    4.16 -DEPENDS="libdb ncurses openssl readline zlib gdbm"
    4.17 -BUILD_DEPENDS="coreutils-file-output-full zlib-dev tk-dev tcl-dev openssl-dev \
    4.18 -db-dev readline-dev"
    4.19 +# Handle cross compilation.
    4.20 +case "$ARCH" in
    4.21 +	i?86) 
    4.22 +		BUILD_DEPENDS="$BUILD_DEPENDS coreutils-file-output-full tk-dev " ;;
    4.23 +	arm*)
    4.24 +		# executable host ruby is required. use --with-baseruby option.
    4.25 +		# --with-arch=arm 
    4.26 +		export ac_cv_func_getpgrp_void=yes
    4.27 +		export ac_cv_func_setpgrp_void=yes 
    4.28 +		ARCH_ARGS="--with-baseruby=/usr/bin/ruby" ;;
    4.29 +esac
    4.30  
    4.31  # Rules to configure and make the package.
    4.32  compile_rules()
    4.33  {
    4.34 -	cd $src
    4.35 -	patch -Np1 < $stuff/openssl-1.0.patch
    4.36 -	./configure --prefix=/usr --enable-shared \
    4.37 -		$CONFIGURE_ARGS &&
    4.38 +	#patch -Np1 < $stuff/openssl-1.0.patch
    4.39 +	./configure \
    4.40 +		--prefix=/usr \
    4.41 +		--enable-shared \
    4.42 +		$CONFIGURE_ARGS ${ARCH_ARGS} &&
    4.43  	make $MAKEFLAGS &&
    4.44  	make DESTDIR=$DESTDIR install
    4.45  }
     5.1 --- a/rubygems/receipt	Sun Mar 30 18:14:36 2014 +0000
     5.2 +++ b/rubygems/receipt	Sun Mar 30 19:39:55 2014 +0200
     5.3 @@ -10,22 +10,22 @@
     5.4  WEB_SITE="http://www.rubygems.org/"
     5.5  WGET_URL="http://production.cf.rubygems.org/rubygems/$TARBALL"
     5.6  TAGS="ruby"
     5.7 +HOST_ARCH="i486 arm"
     5.8  
     5.9 +# ARM: ruby-dev libruby-extras build host must be installed
    5.10  DEPENDS="ruby libruby-extras"
    5.11  BUILD_DEPENDS="ruby ruby-dev libruby-extras"
    5.12  
    5.13  # Rules to configure and make the package.
    5.14  compile_rules()
    5.15  {
    5.16 -	cd $src
    5.17  	ruby setup.rb --destdir=$DESTDIR
    5.18  }
    5.19  
    5.20  # Rules to gen a SliTaz package suitable for Tazpkg.
    5.21  genpkg_rules()
    5.22  {
    5.23 -	mkdir -p $fs/usr/
    5.24 -	
    5.25 +	mkdir -p $fs/usr
    5.26  	cp -a $install/usr/lib $fs/usr
    5.27  	cp -a $install/usr/bin $fs/usr
    5.28  }