/[gentoo-x86]/eclass/eutils.eclass
Gentoo

Diff of /eclass/eutils.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.414 Revision 1.415
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 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.414 2013/03/11 00:13:16 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.415 2013/03/12 14:16:15 vapier Exp $
4 4
5# @ECLASS: eutils.eclass 5# @ECLASS: eutils.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# base-system@gentoo.org 7# base-system@gentoo.org
8# @BLURB: many extra (but common) functions that are used in ebuilds 8# @BLURB: many extra (but common) functions that are used in ebuilds
1267# http://bugs.gentoo.org/73450 1267# http://bugs.gentoo.org/73450
1268epunt_cxx() { 1268epunt_cxx() {
1269 local dir=$1 1269 local dir=$1
1270 [[ -z ${dir} ]] && dir=${S} 1270 [[ -z ${dir} ]] && dir=${S}
1271 ebegin "Removing useless C++ checks" 1271 ebegin "Removing useless C++ checks"
1272 local f any_found 1272 local f p any_found
1273 while IFS= read -r -d '' f; do 1273 while IFS= read -r -d '' f; do
1274 patch --no-backup-if-mismatch -p0 "${f}" \ 1274 for p in "${PORTDIR}"/eclass/ELT-patches/nocxx/*.patch ; do
1275 "${PORTDIR}/eclass/ELT-patches/nocxx/nocxx.patch" > /dev/null \ 1275 if patch --no-backup-if-mismatch -p1 "${f}" "${p}" >/dev/null ; then
1276 && any_found=1 1276 any_found=1
1277 break
1278 fi
1279 done
1277 done < <(find "${dir}" -name configure -print0) 1280 done < <(find "${dir}" -name configure -print0)
1278 1281
1279# if [[ -z ${any_found} ]]; then 1282 if [[ -z ${any_found} ]]; then
1280# eqawarn "epunt_cxx called unnecessarily (no C++ checks to punt)." 1283 eqawarn "epunt_cxx called unnecessarily (no C++ checks to punt)."
1281# fi 1284 fi
1282 eend 0 1285 eend 0
1283} 1286}
1284 1287
1285# @FUNCTION: make_wrapper 1288# @FUNCTION: make_wrapper
1286# @USAGE: <wrapper> <target> [chdir] [libpaths] [installpath] 1289# @USAGE: <wrapper> <target> [chdir] [libpaths] [installpath]

Legend:
Removed from v.1.414  
changed lines
  Added in v.1.415

  ViewVC Help
Powered by ViewVC 1.1.20