it works better if all files are available, and if you reference existing variables
authorFabian Groffen <grobian@gentoo.org>
Tue, 1 Jul 2008 18:47:14 +0000 (18:47 -0000)
committerFabian Groffen <grobian@gentoo.org>
Tue, 1 Jul 2008 18:47:14 +0000 (18:47 -0000)
svn path=/main/branches/prefix/; revision=10884

acinclude.m4
tarball.sh

index aca8d93f6e361cb5e96bab71c99a5380ac92f6a5..e864205a4c2866d688f5fa08fa613a864a64c0fb 100644 (file)
@@ -19,14 +19,14 @@ AC_DEFUN([GENTOO_PATH_PYTHON],
   AC_PATH_PROG([PORTAGE_PYTHON], [python], no, $2)
 
   dnl is is there at all?
-  if test "$PYTHON" = "no" ; then
+  if test "$PORTAGE_PYTHON" = "no" ; then
     AC_MSG_ERROR([no python found in your path])
   fi
 
   dnl is it the version we want?
-  ver=`$PYTHON -c 'import sys; print sys.version.split(" ")[[0]]'`
-  AC_MSG_CHECKING([whether $PYTHON $ver >= $1])
-  cmp=`$PYTHON -c 'import sys; print sys.version.split(" ")[[0]] >= "$1"'`
+  ver=`$PORTAGE_PYTHON -c 'import sys; print sys.version.split(" ")[[0]]'`
+  AC_MSG_CHECKING([whether $PORTAGE_PYTHON $ver >= $1])
+  cmp=`$PORTAGE_PYTHON -c 'import sys; print sys.version.split(" ")[[0]] >= "$1"'`
   if test "$cmp" = "True" ; then
     AC_MSG_RESULT([yes])
   else
index f1d67afff0112eb84e9cd6c5f7c7a491541b1740..aa2e02823d7f2cc25c9b2b54f7548d91d4d67731 100755 (executable)
@@ -26,6 +26,7 @@ rsync -a --exclude='.svn' . ${DEST}
 sed -i -e '/^VERSION=/s/^.*$/VERSION="'${V}-prefix'"/' ${DEST}/pym/portage/__init__.py
 sed -i -e "s/##VERSION##/${V}-prefix/g" ${DEST}/man/emerge.1
 sed -i -e "s/@version@/${V}/" ${DEST}/configure.in
+touch ${DEST}/subst-install.vars.in.in
 
 cd ${DEST}
 find -name '*~' | xargs --no-run-if-empty rm -f