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

Diff of /eclass/xfconf.eclass

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

Revision 1.8 Revision 1.14
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.8 2010/03/22 15:53:50 darkside Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/xfconf.eclass,v 1.14 2010/03/26 12:17:16 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
42if [[ "${EINTLTOOLIZE}" == "yes" ]]; then 42if [[ "${EINTLTOOLIZE}" == "yes" ]]; then
43 _xfce4_intltool="dev-util/intltool" 43 _xfce4_intltool="dev-util/intltool"
44fi 44fi
45 45
46if [[ "${EAUTORECONF}" == "yes" ]]; then 46if [[ "${EAUTORECONF}" == "yes" ]]; then
47 _xfce4_m4="dev-util/xfce4-dev-tools" 47 _xfce4_m4=">=dev-util/xfce4-dev-tools-4.7.0"
48fi 48fi
49 49
50RDEPEND="" 50RDEPEND=""
51DEPEND="${_xfce4_intltool} 51DEPEND="${_xfce4_intltool}
52 ${_xfce4_m4}" 52 ${_xfce4_m4}"
59 3|2) XFCONF_EXPF="${XFCONF_EXPF} src_prepare src_configure" ;; 59 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
65# @FUNCTION: xfconf_use_debug
66# @DESCRIPTION:
67# Return --enable-debug, null, --enable-debug=full or --disable-debug based on
68# XFCONF_FULL_DEBUG variable and USE debug
69xfconf_use_debug() {
70 if has debug ${IUSE}; then
71 if use debug; then
72 if [[ -n $XFCONF_FULL_DEBUG ]]; then
73 echo "--enable-debug=full"
74 else
75 echo "--enable-debug"
76 fi
77 else
78 if [[ -n $XFCONF_FULL_DEBUG ]]; then
79 echo "--disable-debug"
80 fi
81 fi
82 fi
83}
64 84
65# @FUNCTION: xfconf_src_unpack 85# @FUNCTION: xfconf_src_unpack
66# @DESCRIPTION: 86# @DESCRIPTION:
67# Run base_src_util autopatch and eautoreconf or elibtoolize 87# Run base_src_util autopatch and eautoreconf or elibtoolize
68xfconf_src_unpack() { 88xfconf_src_unpack() {
80 if [[ "${EINTLTOOLIZE}" == "yes" ]]; then 100 if [[ "${EINTLTOOLIZE}" == "yes" ]]; then
81 intltoolize --force --copy --automake || die "intltoolize failed" 101 intltoolize --force --copy --automake || die "intltoolize failed"
82 fi 102 fi
83 103
84 if [[ "${EAUTORECONF}" == "yes" ]]; then 104 if [[ "${EAUTORECONF}" == "yes" ]]; then
85 has "${EAPI:-0}" 0 1 2 && EPREFIX= 105 has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX=
86 AT_M4DIR="${EPREFIX}/usr/share/xfce4/dev-tools/m4macros" eautoreconf 106 AT_M4DIR="${EPREFIX}/usr/share/xfce4/dev-tools/m4macros" eautoreconf
87 else 107 else
88 elibtoolize 108 elibtoolize
89 fi 109 fi
90} 110}

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.20