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

Diff of /eclass/xfconf.eclass

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

Revision 1.16 Revision 1.20
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 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/xfconf.eclass,v 1.16 2010/06/13 16:10:21 ssuominen Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/xfconf.eclass,v 1.20 2010/11/03 17:43:13 ssuominen Exp $
4 4
5# @ECLASS: xfconf.eclass 5# @ECLASS: xfconf.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# XFCE maintainers <xfce@gentoo.org> 7# XFCE maintainers <xfce@gentoo.org>
8# @BLURB: Default XFCE ebuild layout 8# @BLURB: Default XFCE ebuild layout
27 27
28# @ECLASS-VARIABLE: XFCONF 28# @ECLASS-VARIABLE: XFCONF
29# @DESCRIPTION: 29# @DESCRIPTION:
30# Define options for econf 30# Define options for econf
31 31
32inherit autotools base fdo-mime gnome2-utils libtool 32inherit autotools base eutils fdo-mime gnome2-utils libtool
33 33
34if ! [[ ${MY_P} ]]; then 34if ! [[ ${MY_P} ]]; then
35 MY_P=${P} 35 MY_P=${P}
36else 36else
37 S=${WORKDIR}/${MY_P} 37 S=${WORKDIR}/${MY_P}
111 fi 111 fi
112} 112}
113 113
114# @FUNCTION: xfconf_src_configure 114# @FUNCTION: xfconf_src_configure
115# @DESCRIPTION: 115# @DESCRIPTION:
116# Run econf with opts in XFCONF variable 116# Run econf with opts in XFCONF array
117xfconf_src_configure() { 117xfconf_src_configure() {
118 debug-print-function ${FUNCNAME} "$@" 118 debug-print-function ${FUNCNAME} "$@"
119
120 # Convert XFCONF to an array, see base.eclass for original code
121 if [[ "$(declare -p XFCONF 2>/dev/null 2>&1)" != "declare -a"* ]]; then
122 XFCONF=( ${XFCONF} )
123 fi
124
119 econf ${XFCONF} 125 econf ${XFCONF[@]}
120} 126}
121 127
122# @FUNCTION: xfconf_src_compile 128# @FUNCTION: xfconf_src_compile
123# @DESCRIPTION: 129# @DESCRIPTION:
124# Run econf with opts in XFCONF variable 130# Run econf with opts in XFCONF variable
136 emake DESTDIR="${D}" "$@" install || die "emake install failed" 142 emake DESTDIR="${D}" "$@" install || die "emake install failed"
137 143
138 if [[ -n ${DOCS} ]]; then 144 if [[ -n ${DOCS} ]]; then
139 dodoc ${DOCS} || die "dodoc failed" 145 dodoc ${DOCS} || die "dodoc failed"
140 fi 146 fi
147
148 has "${EAPI:-0}" 0 1 2 && ! use prefix && ED="${D}"
149 find "${ED}" -name '*.la' -exec rm -f {} +
150
151 validate_desktop_entries
141} 152}
142 153
143# @FUNCTION: xfconf_pkg_preinst 154# @FUNCTION: xfconf_pkg_preinst
144# @DESCRIPTION: 155# @DESCRIPTION:
145# Run gnome2_icon_savelist 156# Run gnome2_icon_savelist

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.20

  ViewVC Help
Powered by ViewVC 1.1.20