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

Diff of /eclass/xfconf.eclass

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

Revision 1.37 Revision 1.41
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2012 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.37 2011/10/15 21:08:59 ssuominen Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/xfconf.eclass,v 1.41 2012/05/22 10:57:17 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
11 11
12# @ECLASS-VARIABLE: EAUTORECONF 12# @ECLASS-VARIABLE: EAUTORECONF
13# @DESCRIPTION: 13# @DESCRIPTION:
14# Run eautoreconf instead of elibtoolize if the variable is set 14# Run eautoreconf instead of elibtoolize if the variable is set
15 15
16# @ECLASS-VARIABLE: EINTLTOOLIZE
17# @DESCRIPTION:
18# Run intltoolize --force --copy --automake if the variable is set
19
20# @ECLASS-VARIABLE: XFCONF 16# @ECLASS-VARIABLE: XFCONF
21# @DESCRIPTION: 17# @DESCRIPTION:
22# This should be an array defining arguments for econf 18# This should be an array defining arguments for econf
19
20AUTOTOOLS_AUTO_DEPEND="no"
23 21
24unset _xfconf_live 22unset _xfconf_live
25[[ $PV == *9999* ]] && _xfconf_live=git-2 23[[ $PV == *9999* ]] && _xfconf_live=git-2
26 24
27inherit ${_xfconf_live} autotools base eutils fdo-mime gnome2-utils libtool 25inherit ${_xfconf_live} autotools base eutils fdo-mime gnome2-utils libtool
28 26
29EGIT_BOOTSTRAP="autogen.sh" 27EGIT_BOOTSTRAP="autogen.sh"
30EGIT_REPO_URI="git://git.xfce.org/xfce/${MY_PN:-${PN}}" 28EGIT_REPO_URI="git://git.xfce.org/xfce/${MY_PN:-${PN}}"
31 29
32_xfconf_deps="" 30_xfconf_deps=""
33_xfconf_m4=">=dev-util/xfce4-dev-tools-4.8.0" 31_xfconf_m4=">=dev-util/xfce4-dev-tools-4.9.1 ${AUTOTOOLS_DEPEND}"
34 32
35[[ -n $_xfconf_live ]] && _xfconf_deps+=" dev-util/gtk-doc ${_xfconf_m4}" 33[[ -n $_xfconf_live ]] && _xfconf_deps+=" dev-util/gtk-doc ${_xfconf_m4}"
36[[ -n $EINTLTOOLIZE ]] && _xfconf_deps+=" dev-util/intltool"
37[[ -n $EAUTORECONF ]] && _xfconf_deps+=" ${_xfconf_m4}" 34[[ -n $EAUTORECONF ]] && _xfconf_deps+=" ${_xfconf_m4}"
38 35
39RDEPEND="" 36RDEPEND=""
40DEPEND="${_xfconf_deps}" 37DEPEND="${_xfconf_deps}"
41 38
83# @DESCRIPTION: 80# @DESCRIPTION:
84# Run base_src_prepare and eautoreconf or elibtoolize 81# Run base_src_prepare and eautoreconf or elibtoolize
85xfconf_src_prepare() { 82xfconf_src_prepare() {
86 debug-print-function ${FUNCNAME} "$@" 83 debug-print-function ${FUNCNAME} "$@"
87 base_src_prepare 84 base_src_prepare
88
89 if [[ -n $EINTLTOOLIZE ]]; then
90 local _intltoolize="intltoolize --force --copy --automake"
91 ebegin "Running ${_intltoolize}"
92 ${_intltoolize} || die
93 eend $?
94 fi
95 85
96 if [[ -n $EAUTORECONF ]]; then 86 if [[ -n $EAUTORECONF ]]; then
97 AT_M4DIR=${EPREFIX}/usr/share/xfce4/dev-tools/m4macros eautoreconf 87 AT_M4DIR=${EPREFIX}/usr/share/xfce4/dev-tools/m4macros eautoreconf
98 else 88 else
99 elibtoolize 89 elibtoolize

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.41

  ViewVC Help
Powered by ViewVC 1.1.20