Gentoo Archives: gentoo-commits

From: "Fabian Groffen (grobian)" <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r10884 - main/branches/prefix
Date: Tue, 01 Jul 2008 18:47:20
Message-Id: E1KDksl-0007PD-Rg@stork.gentoo.org
1 Author: grobian
2 Date: 2008-07-01 18:47:14 +0000 (Tue, 01 Jul 2008)
3 New Revision: 10884
4
5 Modified:
6 main/branches/prefix/acinclude.m4
7 main/branches/prefix/tarball.sh
8 Log:
9 it works better if all files are available, and if you reference existing variables
10
11 Modified: main/branches/prefix/acinclude.m4
12 ===================================================================
13 --- main/branches/prefix/acinclude.m4 2008-07-01 18:39:57 UTC (rev 10883)
14 +++ main/branches/prefix/acinclude.m4 2008-07-01 18:47:14 UTC (rev 10884)
15 @@ -19,14 +19,14 @@
16 AC_PATH_PROG([PORTAGE_PYTHON], [python], no, $2)
17
18 dnl is is there at all?
19 - if test "$PYTHON" = "no" ; then
20 + if test "$PORTAGE_PYTHON" = "no" ; then
21 AC_MSG_ERROR([no python found in your path])
22 fi
23
24 dnl is it the version we want?
25 - ver=`$PYTHON -c 'import sys; print sys.version.split(" ")[[0]]'`
26 - AC_MSG_CHECKING([whether $PYTHON $ver >= $1])
27 - cmp=`$PYTHON -c 'import sys; print sys.version.split(" ")[[0]] >= "$1"'`
28 + ver=`$PORTAGE_PYTHON -c 'import sys; print sys.version.split(" ")[[0]]'`
29 + AC_MSG_CHECKING([whether $PORTAGE_PYTHON $ver >= $1])
30 + cmp=`$PORTAGE_PYTHON -c 'import sys; print sys.version.split(" ")[[0]] >= "$1"'`
31 if test "$cmp" = "True" ; then
32 AC_MSG_RESULT([yes])
33 else
34
35 Modified: main/branches/prefix/tarball.sh
36 ===================================================================
37 --- main/branches/prefix/tarball.sh 2008-07-01 18:39:57 UTC (rev 10883)
38 +++ main/branches/prefix/tarball.sh 2008-07-01 18:47:14 UTC (rev 10884)
39 @@ -26,6 +26,7 @@
40 sed -i -e '/^VERSION=/s/^.*$/VERSION="'${V}-prefix'"/' ${DEST}/pym/portage/__init__.py
41 sed -i -e "s/##VERSION##/${V}-prefix/g" ${DEST}/man/emerge.1
42 sed -i -e "s/@version@/${V}/" ${DEST}/configure.in
43 +touch ${DEST}/subst-install.vars.in.in
44
45 cd ${DEST}
46 find -name '*~' | xargs --no-run-if-empty rm -f
47
48 --
49 gentoo-commits@l.g.o mailing list