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

Diff of /eclass/xfconf.eclass

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

Revision 1.19 Revision 1.21
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.19 2010/11/03 17:39:59 ssuominen Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/xfconf.eclass,v 1.21 2011/01/27 17:32:49 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
54unset _xfce4_intltool 54unset _xfce4_intltool
55unset _xfce4_m4 55unset _xfce4_m4
56 56
57XFCONF_EXPF="src_unpack src_compile src_install pkg_preinst pkg_postinst pkg_postrm" 57XFCONF_EXPF="src_unpack src_compile src_install pkg_preinst pkg_postinst pkg_postrm"
58case ${EAPI:-0} in 58case ${EAPI:-0} in
59 3|2) XFCONF_EXPF="${XFCONF_EXPF} src_prepare src_configure" ;; 59 4|3|2) XFCONF_EXPF="${XFCONF_EXPF} src_prepare src_configure" ;;
60 1|0) ;; 60 1|0) ;;
61 *) die "Unknown EAPI." ;; 61 *) die "Unknown EAPI." ;;
62esac 62esac
63EXPORT_FUNCTIONS ${XFCONF_EXPF} 63EXPORT_FUNCTIONS ${XFCONF_EXPF}
64 64
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 119
120 # Convert XFCONF to an array, see base.eclass for original code 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 121 if [[ "$(declare -p XFCONF 2>/dev/null 2>&1)" != "declare -a"* ]]; then

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.21

  ViewVC Help
Powered by ViewVC 1.1.20