Added logic to src_compile for enabling debug support when IUSE has debug.
authorJoshua Nichols <nichoj@gentoo.org>
Sat, 6 Jan 2007 17:54:01 +0000 (17:54 +0000)
committerJoshua Nichols <nichoj@gentoo.org>
Sat, 6 Jan 2007 17:54:01 +0000 (17:54 +0000)
eclass/xfce44.eclass

index b791261287183419524e12bc6b5ec5745153cc13..866a305f6cc7eea3179c85a876e8231014ee887b 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2006 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/xfce44.eclass,v 1.8 2007/01/05 04:21:35 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/xfce44.eclass,v 1.9 2007/01/06 17:54:01 nichoj Exp $
 
 # Xfce44 Eclass
 #
@@ -108,9 +108,12 @@ DEPEND="${RDEPEND}
 
 xfce44_src_compile() {
        ## XFCE_CONFIG sets extra config parameters
+       if has debug ${IUSE} && use debug ; then
+               XFCE_CONFIG="${XFCE_CONFIG} $(use_enable debug)"
+       fi
+       ${CONFIGURE} ${XFCE_CONFIG} || die
        ## JOBS is unset and defaults to make.conf settings
        ## unless set by single_make
-       ${CONFIGURE} ${XFCE_CONFIG} || die
        emake ${JOBS} || die
 }