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

Diff of /eclass/xfconf.eclass

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

Revision 1.24 Revision 1.25
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.24 2011/02/14 19:52:14 ssuominen Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/xfconf.eclass,v 1.25 2011/04/09 09:15:51 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
61 61
62EXPORT_FUNCTIONS src_prepare src_configure src_install pkg_preinst pkg_postinst pkg_postrm 62EXPORT_FUNCTIONS src_prepare src_configure src_install pkg_preinst pkg_postinst pkg_postrm
63 63
64# @FUNCTION: xfconf_use_debug 64# @FUNCTION: xfconf_use_debug
65# @DESCRIPTION: 65# @DESCRIPTION:
66# Return --enable-debug, null, --enable-debug=full or --disable-debug based on 66# If IUSE has debug, return --enable-debug=minimum.
67# XFCONF_FULL_DEBUG variable and USE debug 67# If USE debug is enabled, return --enable-debug which is same as --enable-debug=yes.
68# If USE debug is enabled and XFCONF_FULL_DEBUG variable is set, return --enable-debug=full.
68xfconf_use_debug() { 69xfconf_use_debug() {
69 if has debug ${IUSE}; then 70 if has debug ${IUSE}; then
70 if use debug; then 71 if use debug; then
71 if [[ -n $XFCONF_FULL_DEBUG ]]; then 72 if [[ -n $XFCONF_FULL_DEBUG ]]; then
72 echo "--enable-debug=full" 73 echo "--enable-debug=full"
73 else 74 else
74 echo "--enable-debug" 75 echo "--enable-debug"
75 fi 76 fi
76 else 77 else
77 if [[ -n $XFCONF_FULL_DEBUG ]]; then
78 echo "--disable-debug" 78 echo "--enable-debug=minimum"
79 fi
80 fi 79 fi
81 fi 80 fi
82} 81}
83 82
84# @FUNCTION: xfconf_src_prepare 83# @FUNCTION: xfconf_src_prepare

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

  ViewVC Help
Powered by ViewVC 1.1.20