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

Diff of /eclass/gnome2.eclass

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

Revision 1.110 Revision 1.111
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/gnome2.eclass,v 1.110 2012/11/07 19:25:35 pacho Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.111 2012/11/17 13:03:05 pacho Exp $
4 4
5# @ECLASS: gnome2.eclass 5# @ECLASS: gnome2.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# gnome@gentoo.org 7# gnome@gentoo.org
8# @BLURB: 8# @BLURB:
9# @DESCRIPTION: 9# @DESCRIPTION:
10# Exports portage base functions used by ebuilds written for packages using the 10# Exports portage base functions used by ebuilds written for packages using the
11# GNOME framework. For additional functions, see gnome2-utils.eclass. 11# GNOME framework. For additional functions, see gnome2-utils.eclass.
12 12
13inherit fdo-mime libtool gnome.org gnome2-utils 13inherit eutils fdo-mime libtool gnome.org gnome2-utils
14 14
15case "${EAPI:-0}" in 15case "${EAPI:-0}" in
16 0|1) 16 0|1)
17 EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_preinst pkg_postinst pkg_postrm 17 EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_preinst pkg_postinst pkg_postrm
18 ;; 18 ;;
28# Extra configure opts passed to econf 28# Extra configure opts passed to econf
29G2CONF=${G2CONF:-""} 29G2CONF=${G2CONF:-""}
30 30
31# @ECLASS-VARIABLE: GNOME2_LA_PUNT 31# @ECLASS-VARIABLE: GNOME2_LA_PUNT
32# @DESCRIPTION: 32# @DESCRIPTION:
33# Should we delete all the .la files? 33# Should we delete ALL the .la files?
34# NOT to be used without due consideration. 34# NOT to be used without due consideration.
35if has ${EAPI:-0} 0 1 2 3 4; then
35GNOME2_LA_PUNT=${GNOME2_LA_PUNT:-"no"} 36 GNOME2_LA_PUNT=${GNOME2_LA_PUNT:-"no"}
37else
38 GNOME2_LA_PUNT=${GNOME2_LA_PUNT:-""}
39fi
36 40
37# @ECLASS-VARIABLE: ELTCONF 41# @ECLASS-VARIABLE: ELTCONF
38# @DEFAULT-UNSET 42# @DEFAULT-UNSET
39# @DESCRIPTION: 43# @DESCRIPTION:
40# Extra options passed to elibtoolize 44# Extra options passed to elibtoolize
198 202
199 # Make sure this one doesn't get in the portage db 203 # Make sure this one doesn't get in the portage db
200 rm -fr "${ED}/usr/share/applications/mimeinfo.cache" 204 rm -fr "${ED}/usr/share/applications/mimeinfo.cache"
201 205
202 # Delete all .la files 206 # Delete all .la files
207 if has ${EAPI:-0} 0 1 2 3 4; then
203 if [[ "${GNOME2_LA_PUNT}" != "no" ]]; then 208 if [[ "${GNOME2_LA_PUNT}" != "no" ]]; then
204 ebegin "Removing .la files" 209 ebegin "Removing .la files"
205 if ! { has static-libs ${IUSE//+} && use static-libs; }; then 210 if ! { has static-libs ${IUSE//+} && use static-libs; }; then
206 find "${D}" -name '*.la' -exec rm -f {} + || die "la file removal failed" 211 find "${D}" -name '*.la' -exec rm -f {} + || die "la file removal failed"
212 fi
213 eend
207 fi 214 fi
208 eend 215 else
216 case "${GNOME2_LA_PUNT}" in
217 yes) prune_libtool_files --modules;;
218 no) ;;
219 *) prune_libtool_files;;
220 esac
209 fi 221 fi
210} 222}
211 223
212# @FUNCTION: gnome2_pkg_preinst 224# @FUNCTION: gnome2_pkg_preinst
213# @DESCRIPTION: 225# @DESCRIPTION:

Legend:
Removed from v.1.110  
changed lines
  Added in v.1.111

  ViewVC Help
Powered by ViewVC 1.1.20