Gentoo Archives: gentoo-commits

From: "Peter Alfredsen (loki_val)" <loki_val@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: base.eclass
Date: Sun, 18 Jan 2009 18:21:11
Message-Id: E1LOcGi-0003r5-Uw@stork.gentoo.org
1 loki_val 09/01/18 18:21:08
2
3 Modified: base.eclass
4 Log:
5 Rip default() functions so we only run econf and emake if the appropriate files exist.
6
7 Revision Changes Path
8 1.37 eclass/base.eclass
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/base.eclass?rev=1.37&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/base.eclass?rev=1.37&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/base.eclass?r1=1.36&r2=1.37
13
14 Index: base.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/base.eclass,v
17 retrieving revision 1.36
18 retrieving revision 1.37
19 diff -u -r1.36 -r1.37
20 --- base.eclass 17 Jan 2009 16:56:55 -0000 1.36
21 +++ base.eclass 18 Jan 2009 18:21:08 -0000 1.37
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2008 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/base.eclass,v 1.36 2009/01/17 16:56:55 mr_bones_ Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/base.eclass,v 1.37 2009/01/18 18:21:08 loki_val Exp $
27
28 # @ECLASS: base.eclass
29 # @MAINTAINER:
30 @@ -166,11 +166,17 @@
31 case $1 in
32 configure)
33 debug-print-section configure
34 - econf || die "died running econf, $FUNCNAME:configure"
35 + if [[ -x ${ECONF_SOURCE:-.}/configure ]]
36 + then
37 + econf || die "died running econf, $FUNCNAME:configure"
38 + fi
39 ;;
40 make)
41 debug-print-section make
42 - emake || die "died running emake, $FUNCNAME:make"
43 + if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]
44 + then
45 + emake || die "died running emake, $FUNCNAME:make"
46 + fi
47 ;;
48 all)
49 debug-print-section all