| 1 | # Copyright 1999-2011 Gentoo Foundation |
1 | # Copyright 1999-2011 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.94 2011/04/21 21:06:15 eva Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.95 2011/04/21 21:27:40 eva 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: |
| … | |
… | |
| 26 | # @DEFAULT-UNSET |
26 | # @DEFAULT-UNSET |
| 27 | # @DESCRIPTION: |
27 | # @DESCRIPTION: |
| 28 | # Extra configure opts passed to econf |
28 | # Extra configure opts passed to econf |
| 29 | G2CONF=${G2CONF:-""} |
29 | G2CONF=${G2CONF:-""} |
| 30 | |
30 | |
|
|
31 | # @ECLASS-VARIABLE: GNOME2_LA_PUNT |
|
|
32 | # @DESCRIPTION: |
|
|
33 | # Should we delete all the .la files? |
|
|
34 | # NOT to be used without due consideration. |
|
|
35 | GNOME2_LA_PUNT=${GNOME2_LA_PUNT:-"no"} |
|
|
36 | |
| 31 | # @ECLASS-VARIABLE: ELTCONF |
37 | # @ECLASS-VARIABLE: ELTCONF |
| 32 | # @DEFAULT-UNSET |
38 | # @DEFAULT-UNSET |
| 33 | # @DESCRIPTION: |
39 | # @DESCRIPTION: |
| 34 | # Extra options passed to elibtoolize |
40 | # Extra options passed to elibtoolize |
| 35 | ELTCONF=${ELTCONF:-""} |
41 | ELTCONF=${ELTCONF:-""} |
| … | |
… | |
| 126 | } |
132 | } |
| 127 | |
133 | |
| 128 | # @FUNCTION: gnome2_src_install |
134 | # @FUNCTION: gnome2_src_install |
| 129 | # @DESCRIPTION: |
135 | # @DESCRIPTION: |
| 130 | # Gnome specific install. Handles typical GConf and scrollkeeper setup |
136 | # Gnome specific install. Handles typical GConf and scrollkeeper setup |
| 131 | # in packages. |
137 | # in packages and removal of .la files if requested |
| 132 | gnome2_src_install() { |
138 | gnome2_src_install() { |
| 133 | has ${EAPI:-0} 0 1 2 && ! use prefix && ED="${D}" |
139 | has ${EAPI:-0} 0 1 2 && ! use prefix && ED="${D}" |
| 134 | # if this is not present, scrollkeeper-update may segfault and |
140 | # if this is not present, scrollkeeper-update may segfault and |
| 135 | # create bogus directories in /var/lib/ |
141 | # create bogus directories in /var/lib/ |
| 136 | local sk_tmp_dir="/var/lib/scrollkeeper" |
142 | local sk_tmp_dir="/var/lib/scrollkeeper" |
| … | |
… | |
| 163 | fi |
169 | fi |
| 164 | rm -rf "${ED}${sk_tmp_dir}" |
170 | rm -rf "${ED}${sk_tmp_dir}" |
| 165 | |
171 | |
| 166 | # Make sure this one doesn't get in the portage db |
172 | # Make sure this one doesn't get in the portage db |
| 167 | rm -fr "${ED}/usr/share/applications/mimeinfo.cache" |
173 | rm -fr "${ED}/usr/share/applications/mimeinfo.cache" |
|
|
174 | |
|
|
175 | # Delete all .la files |
|
|
176 | if [[ "${GNOME2_LA_PUNT}" != "no" ]]; then |
|
|
177 | ebegin "Removing .la files" |
|
|
178 | find "${ED}" -name '*.la' -delete || die "la file removal failed" |
|
|
179 | eend |
|
|
180 | fi |
| 168 | } |
181 | } |
| 169 | |
182 | |
| 170 | # @FUNCTION: gnome2_pkg_preinst |
183 | # @FUNCTION: gnome2_pkg_preinst |
| 171 | # @DESCRIPTION: |
184 | # @DESCRIPTION: |
| 172 | # Finds Icons, GConf and GSettings schemas for later handling in pkg_postinst |
185 | # Finds Icons, GConf and GSettings schemas for later handling in pkg_postinst |