wok-current rev 12980

icedtea6-jdk: add source links
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 02 13:16:54 2012 +0200 (2012-06-02)
parents b51cca15f344
children 7ae8c5d88295
files icedtea6-jdk/receipt
line diff
     1.1 --- a/icedtea6-jdk/receipt	Sat Jun 02 12:57:29 2012 +0200
     1.2 +++ b/icedtea6-jdk/receipt	Sat Jun 02 13:16:54 2012 +0200
     1.3 @@ -46,11 +46,16 @@
     1.4  	sed -i -e 's/mkdir -p drops/true/' -e 's/ jar xf/ fastjar xf/'  Makefile*
     1.5  	
     1.6  	# Check than all sources files are available, or exit.
     1.7 +	REPO=http://icedtea.classpath.org/download/drops
     1.8  	if [ -x /usr/bin/cook ]; then
     1.9  		for i in jdk6-jaxws jdk6-jaxp jdk6-jaf; do
    1.10 +			[ -s $SOURCES_REPOSITORY/$i-$openjdk_version.zip ] ||
    1.11 +			     wget -P $SOURCES_REPOSITORY $REPO/$i-$openjdk_version.zip
    1.12  			cp $SOURCES_REPOSITORY/$i-$openjdk_version.zip drops || return 1
    1.13  		done
    1.14  		# openjdk-6-src is in BUILD_DEPENDS and must be build like jdk6-* pkgs.
    1.15 +		[ -s $SOURCES_REPOSITORY/openjdk-6-src-$openjdk_version-$openjdk_date.tar.gz ] ||
    1.16 +		    wget -P $SOURCES_REPOSITORY $REPO/openjdk-6-src-$openjdk_version-$openjdk_date.tar.gz
    1.17  		cp $SOURCES_REPOSITORY/openjdk-6-src-$openjdk_version-$openjdk_date.tar.gz .
    1.18  	else
    1.19  		report open-bloc