wok-next rev 7856

ruby: build and package with shared library, added zlib-dev BUILD_DEPENDS.
author Liu Peng <rocky@slitaz.org>
date Fri Dec 31 08:55:12 2010 +0000 (2010-12-31)
parents 091548cc3ca5
children dfaf237903f2
files ruby/receipt
line diff
     1.1 --- a/ruby/receipt	Fri Dec 31 08:51:37 2010 +0000
     1.2 +++ b/ruby/receipt	Fri Dec 31 08:55:12 2010 +0000
     1.3 @@ -9,7 +9,7 @@
     1.4  WEB_SITE="http://www.ruby-lang.org/"
     1.5  WGET_URL="ftp://ftp.ruby-lang.org/pub/ruby/${VERSION%.*}/$TARBALL"
     1.6  DEPENDS="libdb ncurses openssl readline zlib tk xorg-libXss gdbm"
     1.7 -BUILD_DEPENDS=" coreutils-file-output-full"
     1.8 +BUILD_DEPENDS=" coreutils-file-output-full zlib-dev"
     1.9  TAGS="ruby language programming"
    1.10  
    1.11  # Rules to configure and make the package.
    1.12 @@ -17,7 +17,7 @@
    1.13  {
    1.14  	cd $src
    1.15  	patch -Np1 < ../stuff/openssl-1.0.patch 
    1.16 -	./configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man $CONFIGURE_ARGS && 		 
    1.17 +	./configure --prefix=/usr --enable-shared --infodir=/usr/share/info --mandir=/usr/share/man $CONFIGURE_ARGS && 		 
    1.18  	make -j 4 &&
    1.19  	make DESTDIR=$PWD/_pkg install
    1.20  }
    1.21 @@ -28,4 +28,5 @@
    1.22  	mkdir -p $fs/usr/lib
    1.23  	cp -a $_pkg/usr/lib/ruby $fs/usr/lib
    1.24  	cp -a $_pkg/usr/bin $fs/usr	
    1.25 +	cp -a $_pkg/usr/lib/libruby.so* $fs/usr/lib
    1.26  }