| 1 | # Copyright 1999-2004 Gentoo Foundation |
1 | # Copyright 1999-2004 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.126 2004/12/08 01:31:38 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.127 2004/12/11 21:09:23 vapier Exp $ |
| 4 | # |
4 | # |
| 5 | # Author: Martin Schlemmer <azarah@gentoo.org> |
5 | # Author: Martin Schlemmer <azarah@gentoo.org> |
| 6 | # |
6 | # |
| 7 | # This eclass is for general purpose functions that most ebuilds |
7 | # This eclass is for general purpose functions that most ebuilds |
| 8 | # have to implement themselves. |
8 | # have to implement themselves. |
| … | |
… | |
| 1537 | } |
1537 | } |
| 1538 | |
1538 | |
| 1539 | # Many configure scripts wrongly bail when a C++ compiler |
1539 | # Many configure scripts wrongly bail when a C++ compiler |
| 1540 | # could not be detected. #73450 |
1540 | # could not be detected. #73450 |
| 1541 | epunt_cxx() { |
1541 | epunt_cxx() { |
| 1542 | EPATCH_SINGLE_MSG="Removing useless C++ checks ..." \ |
1542 | local dir=$1 |
|
|
1543 | [[ -z ${dir} ]] && dir=${S} |
|
|
1544 | ebegin "Removing useless C++ checks" |
|
|
1545 | local f |
|
|
1546 | for f in $(find ${dir} -name configure) ; do |
| 1543 | epatch "${PORTDIR}/eclass/ELT-patches/nocxx/nocxx.patch" |
1547 | patch -p0 "${f}" "${PORTDIR}/eclass/ELT-patches/nocxx/nocxx.patch" > /dev/null |
|
|
1548 | done |
|
|
1549 | eend 0 |
| 1544 | } |
1550 | } |