| 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.42 2012/07/02 08:43:37 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 | |
|
|
20 | AUTOTOOLS_AUTO_DEPEND=no |
| 23 | |
21 | |
| 24 | unset _xfconf_live |
22 | unset _xfconf_live |
| 25 | [[ $PV == *9999* ]] && _xfconf_live=git-2 |
23 | [[ $PV == *9999* ]] && _xfconf_live=git-2 |
| 26 | |
24 | |
| 27 | inherit ${_xfconf_live} autotools base eutils fdo-mime gnome2-utils libtool |
25 | inherit ${_xfconf_live} autotools base eutils fdo-mime gnome2-utils libtool |
| 28 | |
26 | |
| 29 | EGIT_BOOTSTRAP="autogen.sh" |
27 | EGIT_BOOTSTRAP=autogen.sh |
| 30 | EGIT_REPO_URI="git://git.xfce.org/xfce/${MY_PN:-${PN}}" |
28 | EGIT_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.10 ${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 | |
| 39 | RDEPEND="" |
36 | RDEPEND="" |
| 40 | DEPEND="${_xfconf_deps}" |
37 | DEPEND="${_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 |
| 85 | xfconf_src_prepare() { |
82 | xfconf_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 |