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

Diff of /eclass/eutils.eclass

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

Revision 1.408 Revision 1.409
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 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.408 2012/10/11 16:52:05 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.409 2012/10/23 21:09:39 mgorny 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
1460 else 1460 else
1461 if [[ ! ${pkgconfig_scanned} ]]; then 1461 if [[ ! ${pkgconfig_scanned} ]]; then
1462 # Create a list of all .pc-covered libs. 1462 # Create a list of all .pc-covered libs.
1463 local pc_libs=() 1463 local pc_libs=()
1464 if [[ ! ${removing_all} ]]; then 1464 if [[ ! ${removing_all} ]]; then
1465 local f 1465 local pc
1466 local tf=${T}/prune-lt-files.pc 1466 local tf=${T}/prune-lt-files.pc
1467 local pkgconf=$(tc-getPKG_CONFIG) 1467 local pkgconf=$(tc-getPKG_CONFIG)
1468 1468
1469 while IFS= read -r -d '' f; do # for all .pc files 1469 while IFS= read -r -d '' pc; do # for all .pc files
1470 local arg 1470 local arg
1471 1471
1472 sed -e '/^Requires:/d' "${f}" > "${tf}" 1472 sed -e '/^Requires:/d' "${pc}" > "${tf}"
1473 for arg in $("${pkgconf}" --libs "${tf}"); do 1473 for arg in $("${pkgconf}" --libs "${tf}"); do
1474 [[ ${arg} == -l* ]] && pc_libs+=( lib${arg#-l}.la ) 1474 [[ ${arg} == -l* ]] && pc_libs+=( lib${arg#-l}.la )
1475 done 1475 done
1476 done < <(find "${D}" -type f -name '*.pc' -print0) 1476 done < <(find "${D}" -type f -name '*.pc' -print0)
1477 1477

Legend:
Removed from v.1.408  
changed lines
  Added in v.1.409

  ViewVC Help
Powered by ViewVC 1.1.20