summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-12-11 21:09:23 +0000
committerMike Frysinger <vapier@gentoo.org>2004-12-11 21:09:23 +0000
commit8f31da0f184376bf8b67d7a622d58cd3c710da16 (patch)
treea0899502767003bf9393646397f63b983afdc976 /eclass
parent (Manifest recommit) (diff)
downloadgentoo-2-8f31da0f184376bf8b67d7a622d58cd3c710da16.tar.gz
gentoo-2-8f31da0f184376bf8b67d7a622d58cd3c710da16.tar.bz2
gentoo-2-8f31da0f184376bf8b67d7a622d58cd3c710da16.zip
have epunt_cxx scan for configure files
Diffstat (limited to 'eclass')
-rw-r--r--eclass/eutils.eclass12
1 files changed, 9 insertions, 3 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index 653c39a1b49f..8b9e72c73b2d 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.126 2004/12/08 01:31:38 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.127 2004/12/11 21:09:23 vapier Exp $
#
# Author: Martin Schlemmer <azarah@gentoo.org>
#
@@ -1539,6 +1539,12 @@ built_with_use() {
# Many configure scripts wrongly bail when a C++ compiler
# could not be detected. #73450
epunt_cxx() {
- EPATCH_SINGLE_MSG="Removing useless C++ checks ..." \
- epatch "${PORTDIR}/eclass/ELT-patches/nocxx/nocxx.patch"
+ local dir=$1
+ [[ -z ${dir} ]] && dir=${S}
+ ebegin "Removing useless C++ checks"
+ local f
+ for f in $(find ${dir} -name configure) ; do
+ patch -p0 "${f}" "${PORTDIR}/eclass/ELT-patches/nocxx/nocxx.patch" > /dev/null
+ done
+ eend 0
}