| 1 | # Copyright 1999-2010 Gentoo Foundation |
1 | # Copyright 1999-2010 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/clutter.eclass,v 1.2 2010/06/26 01:26:39 nirbheek Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/clutter.eclass,v 1.3 2011/02/07 16:50:42 nirbheek Exp $ |
| 4 | |
4 | |
| 5 | # |
5 | # |
| 6 | # @ECLASS: clutter.eclass |
6 | # @ECLASS: clutter.eclass |
| 7 | # @MAINTAINER: GNOME Herd <gnome@gentoo.org> |
7 | # @MAINTAINER: GNOME Herd <gnome@gentoo.org> |
| 8 | # |
8 | # |
| … | |
… | |
| 22 | # All official clutter packages use LGPL-2.1 |
22 | # All official clutter packages use LGPL-2.1 |
| 23 | LICENSE="${LICENSE:-LGPL-2.1}" |
23 | LICENSE="${LICENSE:-LGPL-2.1}" |
| 24 | |
24 | |
| 25 | # This will be used by all clutter packages |
25 | # This will be used by all clutter packages |
| 26 | DEPEND="dev-util/pkgconfig" |
26 | DEPEND="dev-util/pkgconfig" |
|
|
27 | |
|
|
28 | # @ECLASS-VARIABLE: CLUTTER_LA_PUNT |
|
|
29 | # @DESCRIPTION: |
|
|
30 | # Set to anything except 'no' to remove *all* .la files before installing. |
|
|
31 | # Not to be used without due consideration, sometimes .la files *are* needed. |
|
|
32 | CLUTTER_LA_PUNT="${CLUTTER_LA_PUNT:-"no"}" |
| 27 | |
33 | |
| 28 | # @ECLASS-VARIABLE: DOCS |
34 | # @ECLASS-VARIABLE: DOCS |
| 29 | # @DESCRIPTION: |
35 | # @DESCRIPTION: |
| 30 | # This variable holds relative paths of files to be dodoc-ed. |
36 | # This variable holds relative paths of files to be dodoc-ed. |
| 31 | # By default, it contains the standard list of autotools doc files |
37 | # By default, it contains the standard list of autotools doc files |
| … | |
… | |
| 57 | else |
63 | else |
| 58 | doins ${example} || die "doins ${example} failed!" |
64 | doins ${example} || die "doins ${example} failed!" |
| 59 | fi |
65 | fi |
| 60 | done |
66 | done |
| 61 | fi |
67 | fi |
|
|
68 | |
|
|
69 | # Delete all .la files |
|
|
70 | if [[ "${CLUTTER_LA_PUNT}" != "no" ]]; then |
|
|
71 | find "${D}" -name '*.la' -exec rm -f '{}' + || die |
|
|
72 | fi |
| 62 | } |
73 | } |
| 63 | |
74 | |
| 64 | EXPORT_FUNCTIONS src_install |
75 | EXPORT_FUNCTIONS src_install |