| 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.399 2012/06/14 23:40:29 ssuominen Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.400 2012/06/20 09:26:50 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 |
| … | |
… | |
| 1436 | |
1436 | |
| 1437 | [[ ${f} != ${archivefile} ]] || die 'regex sanity check failed' |
1437 | [[ ${f} != ${archivefile} ]] || die 'regex sanity check failed' |
| 1438 | |
1438 | |
| 1439 | # Remove static libs we're not supposed to link against. |
1439 | # Remove static libs we're not supposed to link against. |
| 1440 | if grep -q '^shouldnotlink=yes$' "${f}"; then |
1440 | if grep -q '^shouldnotlink=yes$' "${f}"; then |
|
|
1441 | if [[ -f ${archivefile} ]]; then |
| 1441 | einfo "Removing unnecessary ${archivefile#${D%/}}" |
1442 | einfo "Removing unnecessary ${archivefile#${D%/}} (static plugin)" |
| 1442 | rm -f "${archivefile}" |
1443 | rm -f "${archivefile}" |
|
|
1444 | fi |
| 1443 | |
1445 | |
| 1444 | # The .la file may be used by a module loader, so avoid removing it |
1446 | # The .la file may be used by a module loader, so avoid removing it |
| 1445 | # unless explicitly requested. |
1447 | # unless explicitly requested. |
| 1446 | [[ ${removing_all} ]] || continue |
1448 | [[ ${removing_all} ]] || continue |
| 1447 | fi |
1449 | fi |