tazwok rev 298

Add stuff & wanted_stuff variable, usable in receipts.
author Antoine Bodin <gokhlayeh@slitaz.org>
date Wed Feb 16 22:51:46 2011 +0100 (2011-02-16)
parents 233b60091477
children eb2b03a65721
files tazwok
line diff
     1.1 --- a/tazwok	Wed Feb 16 22:47:46 2011 +0100
     1.2 +++ b/tazwok	Wed Feb 16 22:51:46 2011 +0100
     1.3 @@ -401,6 +401,8 @@
     1.4  		tazwok_warning "Use original name or tarball root directory because src/_pkg are defined into the receipt (this is no more needed!)."
     1.5  		src=$WOK/${WANTED:-$PACKAGE}/${SOURCE:-${WANTED:-$PACKAGE}}-$VERSION
     1.6  	fi
     1.7 +	stuff=$WOK/$PACKAGE/stuff
     1.8 +	[ "$WANTED" ] && wanted_stuff=$WOK/$WANTED/stuff
     1.9  }
    1.10  
    1.11  set_pkg_path()
    1.12 @@ -765,7 +767,7 @@
    1.13  		local PACKAGE SOURCE VERSION EXTRAVERSION CATEGORY SHORT_DESC \
    1.14  		MAINTAINER WEB_SITE WGET_URL DEPENDS BUILD_DEPENDS WANTED \
    1.15  		PACKED_SIZE UNPACKED_SIZE COOK_OPT PROVIDE CONFIG_FILES TAGS \
    1.16 -		src _pkg DESTDIR CONFIG_SITE RECEIPT LOG
    1.17 +		src _pkg DESTDIR CONFIG_SITE RECEIPT LOG stuff wanted_stuff
    1.18  		for PACKAGE in $genlist; do
    1.19  			set_common_path
    1.20  			gen_package
    1.21 @@ -1294,7 +1296,7 @@
    1.22  	unset PACKAGE SOURCE VERSION EXTRAVERSION CATEGORY SHORT_DESC \
    1.23  		MAINTAINER WEB_SITE WGET_URL DEPENDS BUILD_DEPENDS WANTED \
    1.24  		PACKED_SIZE UNPACKED_SIZE COOK_OPT PROVIDE CONFIG_FILES TAGS \
    1.25 -		src _pkg DESTDIR CONFIG_SITE BRANCH TARBALL
    1.26 +		src _pkg DESTDIR CONFIG_SITE BRANCH TARBALL stuff wanted_stuff
    1.27  	. ${RECEIPT:-$PWD/receipt}
    1.28  }
    1.29