--- branches/mage-next/src/smage2.functions.sh.in 2014/03/04 15:26:05 2613 +++ branches/mage-next/src/smage2.functions.sh.in 2015/03/20 08:34:04 2870 @@ -180,6 +180,13 @@ } # dummy function, used if that does not exist in smage file +pkg_setup() +{ + echo "no pkg_setup defined; doing nothing ..." + return 0 +} + +# dummy function, used if that does not exist in smage file src_prepare() { echo "no src_prepare defined; doing nothing ..." @@ -588,7 +595,14 @@ if [[ ! -z $(eval echo \$${var}_${ARCH/i*86/x86}) ]] then - echo "\$(eval echo \\\$${var}_\${ARCH/i*86/x86} | tr ';' '\n')" + # evaluate with escape strings for the magefile if called by smage + # but do not escape if the smagefile was called by depwalker directly + if [[ ${SMAGE_DEPEND} = 1 ]] + then + eval echo \$${var}_${ARCH/i*86/x86} | tr ';' '\n' + else + echo "\$(eval echo \\\$${var}_\${ARCH/i*86/x86} | tr ';' '\n')" + fi retval=0 else retval=1 @@ -606,7 +620,14 @@ if [[ ! -z $(eval echo \$${var}_${ARCH/i*86/x86}) ]] then - echo "\$(eval echo \\\$${var}_\${ARCH/i*86/x86} | tr ';' '\n')" + # evaluate with escape strings for the magefile if called by smage + # but do not escape if the smagefile was called by depwalker directly + if [[ ${SMAGE_DEPEND} = 1 ]] + then + eval echo \$${var}_${ARCH/i*86/x86} | tr ';' '\n' + else + echo "\$(eval echo \\\$${var}_\${ARCH/i*86/x86} | tr ';' '\n')" + fi retval=0 else retval=1 @@ -1126,16 +1147,9 @@ source_pkg_build() { - if [[ ${PKGTYPE} = virtual ]] - then - echo "Virtual package detected; src-pkg-tarball not necessary ..." - return 0 - fi - if [[ ! -d ${SOURCEDIR}/${PNAME} ]] then - echo "No SRC_URI defined; src-pkg-tarball not necessary ..." - return 0 + install -d ${SOURCEDIR}/${PNAME} fi [ -z "${SRCPKGDIR}" ] && die "\$SRCPKGDIR not found. Please setup your ${MAGERC} correctly."