xbps-src: helpers/waf run thru python directly (avoids env(1) call).

This commit is contained in:
Juan RP 2011-10-28 10:47:20 +02:00
parent 4da3d0fcbf
commit b90ac2b630
1 changed files with 3 additions and 12 deletions

View File

@ -2,25 +2,16 @@
# This helper is for templates using WAF to build/install. # This helper is for templates using WAF to build/install.
# #
do_configure() { do_configure() {
if [ -z "$configure_script" ]; then python waf configure --prefix=/usr ${configure_args}
configure_script="./waf"
fi
${configure_script} configure --prefix=/usr ${configure_args}
} }
do_build() { do_build() {
if [ -z "$make_cmd" ]; then python waf build ${make_build_args}
make_cmd="./waf"
fi
${make_cmd} build ${make_build_args}
} }
do_install() { do_install() {
if [ -z "$make_cmd" ]; then
make_cmd="./waf"
fi
if [ -z "$make_install_args" ]; then if [ -z "$make_install_args" ]; then
make_install_args="--destdir=$DESTDIR" make_install_args="--destdir=$DESTDIR"
fi fi
${make_cmd} install ${make_install_args} python waf install ${make_install_args}
} }