Gentoo Archives: gentoo-commits

From: "Nirbheek Chauhan (nirbheek)" <nirbheek@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: clutter.eclass
Date: Mon, 07 Feb 2011 16:50:52
Message-Id: 20110207165042.D7EF420057@flycatcher.gentoo.org
1 nirbheek 11/02/07 16:50:42
2
3 Modified: clutter.eclass
4 Log:
5 Add a variable to remove all .la files if requested
6
7 Revision Changes Path
8 1.3 eclass/clutter.eclass
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/clutter.eclass?rev=1.3&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/clutter.eclass?rev=1.3&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/clutter.eclass?r1=1.2&r2=1.3
13
14 Index: clutter.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/clutter.eclass,v
17 retrieving revision 1.2
18 retrieving revision 1.3
19 diff -u -r1.2 -r1.3
20 --- clutter.eclass 26 Jun 2010 01:26:39 -0000 1.2
21 +++ clutter.eclass 7 Feb 2011 16:50:42 -0000 1.3
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2010 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/clutter.eclass,v 1.2 2010/06/26 01:26:39 nirbheek Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/clutter.eclass,v 1.3 2011/02/07 16:50:42 nirbheek Exp $
27
28 #
29 # @ECLASS: clutter.eclass
30 @@ -25,6 +25,12 @@
31 # This will be used by all clutter packages
32 DEPEND="dev-util/pkgconfig"
33
34 +# @ECLASS-VARIABLE: CLUTTER_LA_PUNT
35 +# @DESCRIPTION:
36 +# Set to anything except 'no' to remove *all* .la files before installing.
37 +# Not to be used without due consideration, sometimes .la files *are* needed.
38 +CLUTTER_LA_PUNT="${CLUTTER_LA_PUNT:-"no"}"
39 +
40 # @ECLASS-VARIABLE: DOCS
41 # @DESCRIPTION:
42 # This variable holds relative paths of files to be dodoc-ed.
43 @@ -59,6 +65,11 @@
44 fi
45 done
46 fi
47 +
48 + # Delete all .la files
49 + if [[ "${CLUTTER_LA_PUNT}" != "no" ]]; then
50 + find "${D}" -name '*.la' -exec rm -f '{}' + || die
51 + fi
52 }
53
54 EXPORT_FUNCTIONS src_install