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

Diff of /eclass/xfconf.eclass

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

Revision 1.40 Revision 1.43
1# Copyright 1999-2012 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.40 2012/01/16 21:14:13 ssuominen Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/xfconf.eclass,v 1.43 2012/09/02 07:58:15 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
23 19
24AUTOTOOLS_AUTO_DEPEND="no" 20AUTOTOOLS_AUTO_DEPEND=no
25 21
26unset _xfconf_live 22unset _xfconf_live
27[[ $PV == *9999* ]] && _xfconf_live=git-2 23[[ $PV == *9999* ]] && _xfconf_live=git-2
28 24
29inherit ${_xfconf_live} autotools base eutils fdo-mime gnome2-utils libtool 25inherit ${_xfconf_live} autotools base eutils fdo-mime gnome2-utils libtool
30 26
31EGIT_BOOTSTRAP="autogen.sh" 27EGIT_BOOTSTRAP=autogen.sh
32EGIT_REPO_URI="git://git.xfce.org/xfce/${MY_PN:-${PN}}" 28EGIT_REPO_URI="git://git.xfce.org/xfce/${MY_PN:-${PN}}"
33 29
34_xfconf_deps="" 30_xfconf_deps=""
35_xfconf_m4=">=dev-util/xfce4-dev-tools-4.9.1 ${AUTOTOOLS_DEPEND}" 31_xfconf_m4=">=dev-util/xfce4-dev-tools-4.10 ${AUTOTOOLS_DEPEND}"
36 32
37[[ -n $_xfconf_live ]] && _xfconf_deps+=" dev-util/gtk-doc ${_xfconf_m4}" 33[[ -n $_xfconf_live ]] && _xfconf_deps+=" dev-util/gtk-doc ${_xfconf_m4}"
38[[ -n $EINTLTOOLIZE ]] && _xfconf_deps+=" dev-util/intltool"
39[[ -n $EAUTORECONF ]] && _xfconf_deps+=" ${_xfconf_m4}" 34[[ -n $EAUTORECONF ]] && _xfconf_deps+=" ${_xfconf_m4}"
40 35
41RDEPEND="" 36RDEPEND=""
42DEPEND="${_xfconf_deps}" 37DEPEND="${_xfconf_deps}"
43 38
86# Run base_src_prepare and eautoreconf or elibtoolize 81# Run base_src_prepare and eautoreconf or elibtoolize
87xfconf_src_prepare() { 82xfconf_src_prepare() {
88 debug-print-function ${FUNCNAME} "$@" 83 debug-print-function ${FUNCNAME} "$@"
89 base_src_prepare 84 base_src_prepare
90 85
91 if [[ -n $EINTLTOOLIZE ]]; then
92 local _intltoolize="intltoolize --force --copy --automake"
93 ebegin "Running ${_intltoolize}"
94 ${_intltoolize} || die
95 eend $?
96 fi
97
98 if [[ -n $EAUTORECONF ]]; then 86 if [[ -n $EAUTORECONF ]]; then
99 AT_M4DIR=${EPREFIX}/usr/share/xfce4/dev-tools/m4macros eautoreconf 87 AT_M4DIR=${EPREFIX}/usr/share/xfce4/dev-tools/m4macros eautoreconf
100 else 88 else
101 elibtoolize 89 elibtoolize
102 fi 90 fi
122 touch ChangeLog 110 touch ChangeLog
123 fi 111 fi
124 112
125 base_src_install "$@" || die 113 base_src_install "$@" || die
126 114
127 find "${ED}" -name '*.la' -exec rm -f {} + 115 prune_libtool_files --all
128
129 validate_desktop_entries
130} 116}
131 117
132# @FUNCTION: xfconf_pkg_preinst 118# @FUNCTION: xfconf_pkg_preinst
133# @DESCRIPTION: 119# @DESCRIPTION:
134# Run gnome2_icon_savelist 120# Run gnome2_icon_savelist

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.43

  ViewVC Help
Powered by ViewVC 1.1.20