diff options
author | Gilles Dartiguelongue <eva@gentoo.org> | 2011-04-21 21:27:40 +0000 |
---|---|---|
committer | Gilles Dartiguelongue <eva@gentoo.org> | 2011-04-21 21:27:40 +0000 |
commit | 1f3cb4ce0ff82e46cc227e529a5264ac45f12e5b (patch) | |
tree | e22a0d2103372a412e6502c3f02f324cbc89539a /eclass | |
parent | Version bump (diff) | |
download | gentoo-2-1f3cb4ce0ff82e46cc227e529a5264ac45f12e5b.tar.gz gentoo-2-1f3cb4ce0ff82e46cc227e529a5264ac45f12e5b.tar.bz2 gentoo-2-1f3cb4ce0ff82e46cc227e529a5264ac45f12e5b.zip |
Add GNOME2_LA_PUNT support from the overlay.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/gnome2.eclass | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/eclass/gnome2.eclass b/eclass/gnome2.eclass index 8d9e57678506..248eb772600a 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.94 2011/04/21 21:06:15 eva Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.95 2011/04/21 21:27:40 eva Exp $ # @ECLASS: gnome2.eclass # @MAINTAINER: @@ -28,6 +28,12 @@ esac # Extra configure opts passed to econf G2CONF=${G2CONF:-""} +# @ECLASS-VARIABLE: GNOME2_LA_PUNT +# @DESCRIPTION: +# Should we delete all the .la files? +# NOT to be used without due consideration. +GNOME2_LA_PUNT=${GNOME2_LA_PUNT:-"no"} + # @ECLASS-VARIABLE: ELTCONF # @DEFAULT-UNSET # @DESCRIPTION: @@ -128,7 +134,7 @@ gnome2_src_compile() { # @FUNCTION: gnome2_src_install # @DESCRIPTION: # Gnome specific install. Handles typical GConf and scrollkeeper setup -# in packages. +# in packages and removal of .la files if requested gnome2_src_install() { has ${EAPI:-0} 0 1 2 && ! use prefix && ED="${D}" # if this is not present, scrollkeeper-update may segfault and @@ -165,6 +171,13 @@ gnome2_src_install() { # Make sure this one doesn't get in the portage db rm -fr "${ED}/usr/share/applications/mimeinfo.cache" + + # Delete all .la files + if [[ "${GNOME2_LA_PUNT}" != "no" ]]; then + ebegin "Removing .la files" + find "${ED}" -name '*.la' -delete || die "la file removal failed" + eend + fi } # @FUNCTION: gnome2_pkg_preinst |