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

Diff of /eclass/gnome2.eclass

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

Revision 1.108 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.108 2012/10/23 20:32:51 eva 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
129 fi 133 fi
130 134
131 # Pass --disable-scrollkeeper when possible 135 # Pass --disable-scrollkeeper when possible
132 if grep -q "disable-scrollkeeper" configure; then 136 if grep -q "disable-scrollkeeper" configure; then
133 G2CONF="${G2CONF} --disable-scrollkeeper" 137 G2CONF="${G2CONF} --disable-scrollkeeper"
138 fi
139
140 # Pass --disable-silent-rules when possible (not needed for eapi5), bug #429308
141 if has ${EAPI:-0} 0 1 2 3 4; then
142 if grep -q "disable-silent-rules" configure; then
143 G2CONF="${G2CONF} --disable-silent-rules"
144 fi
145 fi
146
147 # Pass --disable-schemas-install when possible
148 if grep -q "disable-schemas-install" configure; then
149 G2CONF="${G2CONF} --disable-schemas-install"
134 fi 150 fi
135 151
136 # Avoid sandbox violations caused by gnome-vfs (bug #128289 and #345659) 152 # Avoid sandbox violations caused by gnome-vfs (bug #128289 and #345659)
137 addwrite "$(unset HOME; echo ~)/.gnome2" 153 addwrite "$(unset HOME; echo ~)/.gnome2"
138 154
186 202
187 # Make sure this one doesn't get in the portage db 203 # Make sure this one doesn't get in the portage db
188 rm -fr "${ED}/usr/share/applications/mimeinfo.cache" 204 rm -fr "${ED}/usr/share/applications/mimeinfo.cache"
189 205
190 # Delete all .la files 206 # Delete all .la files
207 if has ${EAPI:-0} 0 1 2 3 4; then
191 if [[ "${GNOME2_LA_PUNT}" != "no" ]]; then 208 if [[ "${GNOME2_LA_PUNT}" != "no" ]]; then
192 ebegin "Removing .la files" 209 ebegin "Removing .la files"
193 if ! { has static-libs ${IUSE//+} && use static-libs; }; then 210 if ! { has static-libs ${IUSE//+} && use static-libs; }; then
194 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
195 fi 214 fi
196 eend 215 else
216 case "${GNOME2_LA_PUNT}" in
217 yes) prune_libtool_files --modules;;
218 no) ;;
219 *) prune_libtool_files;;
220 esac
197 fi 221 fi
198} 222}
199 223
200# @FUNCTION: gnome2_pkg_preinst 224# @FUNCTION: gnome2_pkg_preinst
201# @DESCRIPTION: 225# @DESCRIPTION:

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

  ViewVC Help
Powered by ViewVC 1.1.20