Fix cdemu-common.exlib exparam behaviour.

This commit is contained in:
Daniel Mierswa 2009-10-13 01:41:15 +02:00
parent d62b748c84
commit 251fa40617

View file

@ -1,19 +1,16 @@
myexparam name= myexparam name=
myexparam -b autogen=false myexparam -b autogen=false
exparam -v name name
exparam -v autogen autogen
WORK="${WORKBASE}/${name}-${PV}" WORK="${WORKBASE}/${name}-${PV}"
if [[ "${PV}" == scm ]] ; then if [[ "${PV}" == scm ]] ; then
SCM_SUBPATH="${name}" SCM_SUBPATH="$(exparam name)"
SCM_CHECKOUT_TO="${name}" SCM_CHECKOUT_TO="${SCM_SUBPATH}"
SCM_UNPACK_TO="${WORK}" SCM_UNPACK_TO="${WORK}"
SCM_REPOSITORY="https://cdemu.svn.sourceforge.net/svnroot/cdemu/" SCM_REPOSITORY="https://cdemu.svn.sourceforge.net/svnroot/cdemu/"
require scm-svn require scm-svn
${autogen} && require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.10 ] ] $(exparam autogen) && require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.10 ] ]
else else
DOWNLOADS="mirror://sourceforge/cdemu/$(exparam name)-${PV}.tar.bz2" DOWNLOADS="mirror://sourceforge/cdemu/$(exparam name)-${PV}.tar.bz2"
fi fi
@ -32,10 +29,14 @@ LICENCES="GPL-2"
REMOTE_IDS="sourceforge:cdemu freshmeat:cdemu" REMOTE_IDS="sourceforge:cdemu freshmeat:cdemu"
src_prepare() { src_prepare() {
exparam -v WANT_AUTOGEN autogen
default default
if [[ "${PV}" == scm && ${autogen} ]] ; then if [[ "${PV}" == scm ]] ; then
if ${WANT_AUTOGEN} ; then
./autogen.sh || die "autogen.sh failed" ./autogen.sh || die "autogen.sh failed"
fi fi
fi
} }