Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: xfconf.eclass
Date: Sat, 30 Apr 2011 07:38:45
Message-Id: 20110430073834.8A00B20054@flycatcher.gentoo.org
1 ssuominen 11/04/30 07:38:34
2
3 Modified: xfconf.eclass
4 Log:
5 Add support for DOCS being an array with backward compat
6
7 Revision Changes Path
8 1.32 eclass/xfconf.eclass
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/xfconf.eclass?rev=1.32&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/xfconf.eclass?rev=1.32&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/xfconf.eclass?r1=1.31&r2=1.32
13
14 Index: xfconf.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/xfconf.eclass,v
17 retrieving revision 1.31
18 retrieving revision 1.32
19 diff -u -r1.31 -r1.32
20 --- xfconf.eclass 20 Apr 2011 21:04:10 -0000 1.31
21 +++ xfconf.eclass 30 Apr 2011 07:38:34 -0000 1.32
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2009 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/xfconf.eclass,v 1.31 2011/04/20 21:04:10 angelos Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/xfconf.eclass,v 1.32 2011/04/30 07:38:34 ssuominen Exp $
27
28 # @ECLASS: xfconf.eclass
29 # @MAINTAINER:
30 @@ -19,7 +19,7 @@
31
32 # @ECLASS-VARIABLE: DOCS
33 # @DESCRIPTION:
34 -# This should be a variable defining documentation to install
35 +# This should be an array defining documentation to install
36
37 # @ECLASS-VARIABLE: PATCHES
38 # @DESCRIPTION:
39 @@ -74,7 +74,7 @@
40
41 # @FUNCTION: xfconf_src_prepare
42 # @DESCRIPTION:
43 -# Run base_src_util autopatch and eautoreconf or elibtoolize
44 +# Run base_src_prepare and eautoreconf or elibtoolize
45 xfconf_src_prepare() {
46 debug-print-function ${FUNCNAME} "$@"
47 base_src_prepare
48 @@ -84,7 +84,7 @@
49 fi
50
51 if [[ -n $EAUTORECONF ]]; then
52 - AT_M4DIR="${EPREFIX}/usr/share/xfce4/dev-tools/m4macros" eautoreconf
53 + AT_M4DIR=${EPREFIX}/usr/share/xfce4/dev-tools/m4macros eautoreconf
54 else
55 elibtoolize
56 fi
57 @@ -95,7 +95,7 @@
58 # Run econf with opts from the XFCONF array
59 xfconf_src_configure() {
60 debug-print-function ${FUNCNAME} "$@"
61 - econf ${XFCONF[@]}
62 + econf "${XFCONF[@]}"
63 }
64
65 # @FUNCTION: xfconf_src_install
66 @@ -105,8 +105,12 @@
67 debug-print-function ${FUNCNAME} "$@"
68 emake DESTDIR="${D}" "$@" install || die
69
70 - if [[ -n ${DOCS} ]]; then
71 - dodoc ${DOCS} || die
72 + if [[ -n ${DOCS[@]} ]]; then
73 + if [[ $(declare -p DOCS) == "declare -a "* ]]; then
74 + dodoc "${DOCS[@]}" || die
75 + else
76 + dodoc ${DOCS} || die
77 + fi
78 fi
79
80 find "${ED}" -name '*.la' -exec rm -f {} +