wok-current rev 9288

erlang: get patch from slitaz mirror
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 16 21:28:31 2011 +0100 (2011-03-16)
parents 04dc5e2cbe54
children c8b38336a4fe
files erlang/receipt
line diff
     1.1 --- a/erlang/receipt	Wed Mar 16 18:30:53 2011 +0100
     1.2 +++ b/erlang/receipt	Wed Mar 16 21:28:31 2011 +0100
     1.3 @@ -10,22 +10,20 @@
     1.4  WEB_SITE="http://$PACKAGE.org/"
     1.5  WGET_URL="${WEB_SITE}download/$TARBALL"
     1.6  DEPENDS="ncurses libunixODBC"
     1.7 -BUILD_DEPENDS="perl ncurses-dev openssl-dev xorg-dev flex m4"
     1.8 +BUILD_DEPENDS="perl ncurses-dev openssl-dev xorg-dev flex m4 java-jdk"
     1.9  
    1.10  # Rules to configure and make the package.
    1.11  compile_rules()
    1.12  {
    1.13  	patch=${SOURCE}_${VERSION}_OTP-7738.patch
    1.14 -	/home/slitaz/wok/erlang/otp_src-R12B-5
    1.15 -	mv ${SOURCE}_$VERSION $src
    1.16  	cd $src
    1.17  	[ -f $SOURCES_REPOSITORY/$patch ] && cp $SOURCES_REPOSITORY/$patch .
    1.18  	if [ ! -f $patch ]; then
    1.19 -		wget http://www.erlang.org/download/patches/$patch
    1.20 +		wget http://mirror.slitaz.org/sources/packages/${patch:0:1}/$patch
    1.21  		cp $patch $SOURCES_REPOSITORY
    1.22  	fi
    1.23  	if [ ! -f done.$patch ]; then
    1.24 -		patch -p1 < $patch
    1.25 +		patch -p1 < $patch || return 1
    1.26  		touch done.$patch
    1.27  	fi
    1.28  	export LANG=C