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

Diff of /eclass/xfconf.eclass

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

Revision 1.45 Revision 1.46
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.45 2012/11/28 12:41:23 ssuominen Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/xfconf.eclass,v 1.46 2014/02/27 17:12:01 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
20AUTOTOOLS_AUTO_DEPEND=no 20AUTOTOOLS_AUTO_DEPEND=no
21 21
22unset _xfconf_live 22unset _xfconf_live
23[[ $PV == *9999* ]] && _xfconf_live=git-2 23[[ $PV == *9999* ]] && _xfconf_live=git-2
24 24
25inherit ${_xfconf_live} autotools base eutils fdo-mime gnome2-utils libtool 25inherit ${_xfconf_live} autotools eutils fdo-mime gnome2-utils libtool
26 26
27EGIT_BOOTSTRAP=autogen.sh 27EGIT_BOOTSTRAP=autogen.sh
28EGIT_REPO_URI="git://git.xfce.org/xfce/${MY_PN:-${PN}}" 28EGIT_REPO_URI="git://git.xfce.org/xfce/${MY_PN:-${PN}}"
29 29
30_xfconf_deps="" 30_xfconf_deps=""
76 NOCONFIGURE=1 git-2_src_unpack 76 NOCONFIGURE=1 git-2_src_unpack
77} 77}
78 78
79# @FUNCTION: xfconf_src_prepare 79# @FUNCTION: xfconf_src_prepare
80# @DESCRIPTION: 80# @DESCRIPTION:
81# Run base_src_prepare and eautoreconf or elibtoolize 81# Process PATCHES with epatch and run epatch_user followed by run of
82# elibtoolize, or eautoreconf if EAUTORECONF is set.
82xfconf_src_prepare() { 83xfconf_src_prepare() {
83 debug-print-function ${FUNCNAME} "$@" 84 debug-print-function ${FUNCNAME} "$@"
84 base_src_prepare 85
86 [[ ${PATCHES[@]} ]] && epatch "${PATCHES[@]}"
87 epatch_user
85 88
86 if [[ -n $EAUTORECONF ]]; then 89 if [[ -n $EAUTORECONF ]]; then
87 AT_M4DIR=${EPREFIX}/usr/share/xfce4/dev-tools/m4macros eautoreconf 90 AT_M4DIR=${EPREFIX}/usr/share/xfce4/dev-tools/m4macros eautoreconf
88 else 91 else
89 elibtoolize 92 elibtoolize
99 econf "${XFCONF[@]}" 102 econf "${XFCONF[@]}"
100} 103}
101 104
102# @FUNCTION: xfconf_src_install 105# @FUNCTION: xfconf_src_install
103# @DESCRIPTION: 106# @DESCRIPTION:
104# Run emake install and install documentation in the DOCS array 107# Run emake install to DESTDIR, einstalldocs to process DOCS and
108# prune_libtool_files --all to always remove libtool files (.la)
105xfconf_src_install() { 109xfconf_src_install() {
106 debug-print-function ${FUNCNAME} "$@" 110 debug-print-function ${FUNCNAME} "$@"
107 111
108 # FIXME 112 # FIXME
109 if [[ -n $_xfconf_live ]] && ! [[ -e ChangeLog ]]; then 113 if [[ -n $_xfconf_live ]] && ! [[ -e ChangeLog ]]; then
110 touch ChangeLog 114 touch ChangeLog
111 fi 115 fi
112 116
113 base_src_install "$@" || die 117 emake DESTDIR="${D}" "$@" install
118
119 einstalldocs
114 120
115 prune_libtool_files --all 121 prune_libtool_files --all
116} 122}
117 123
118# @FUNCTION: xfconf_pkg_preinst 124# @FUNCTION: xfconf_pkg_preinst

Legend:
Removed from v.1.45  
changed lines
  Added in v.1.46

  ViewVC Help
Powered by ViewVC 1.1.20