summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@gentoo.org>2011-08-14 03:46:33 +0000
committerNirbheek Chauhan <nirbheek@gentoo.org>2011-08-14 03:46:33 +0000
commit7c04205521924baf7bb730f08ea202cc3aa988ba (patch)
tree052a59f5439b329259a472a52c71e4b77355a60d /eclass/gnome2.eclass
parentFix authorship of a patch. (diff)
downloadhistorical-7c04205521924baf7bb730f08ea202cc3aa988ba.tar.gz
historical-7c04205521924baf7bb730f08ea202cc3aa988ba.tar.bz2
historical-7c04205521924baf7bb730f08ea202cc3aa988ba.zip
For ebuilds with USE=static-libs, remove .la files conditionally for GNOME2_LA_PUNT
Diffstat (limited to 'eclass/gnome2.eclass')
-rw-r--r--eclass/gnome2.eclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/eclass/gnome2.eclass b/eclass/gnome2.eclass
index b417ebbe5111..865c4cdc04cd 100644
--- a/eclass/gnome2.eclass
+++ b/eclass/gnome2.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.98 2011/07/15 17:31:37 zmedico Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.99 2011/08/14 03:46:33 nirbheek Exp $
# @ECLASS: gnome2.eclass
# @MAINTAINER:
@@ -175,7 +175,9 @@ gnome2_src_install() {
# Delete all .la files
if [[ "${GNOME2_LA_PUNT}" != "no" ]]; then
ebegin "Removing .la files"
- find "${D}" -name '*.la' -exec rm -f {} + || die "la file removal failed"
+ if ! { has static-libs ${IUSE//+} && use static-libs; }; then
+ find "${D}" -name '*.la' -exec rm -f {} + || die "la file removal failed"
+ fi
eend
fi
}