have epunt_cxx scan for configure files
authorMike Frysinger <vapier@gentoo.org>
Sat, 11 Dec 2004 21:09:23 +0000 (21:09 +0000)
committerMike Frysinger <vapier@gentoo.org>
Sat, 11 Dec 2004 21:09:23 +0000 (21:09 +0000)
eclass/eutils.eclass

index 653c39a1b49fc11e0d25d29f2215cf1371cff04f..8b9e72c73b2d5a1ca395a0db5fc41a7b47e3c5d2 100644 (file)
@@ -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
 }