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

Diff of /eclass/clutter.eclass

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

Revision 1.2 Revision 1.5
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2011 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.5 2011/08/22 04:46:31 vapier Exp $
4 4
5#
6# @ECLASS: clutter.eclass 5# @ECLASS: clutter.eclass
6# @MAINTAINER:
7# @MAINTAINER: GNOME Herd <gnome@gentoo.org> 7# GNOME Herd <gnome@gentoo.org>
8# 8# @AUTHOR:
9# Nirbheek Chauhan <nirbheek@gentoo.org>
9# @BLURB: Sets SRC_URI, LICENSE, etc and exports src_install 10# @BLURB: Sets SRC_URI, LICENSE, etc and exports src_install
10#
11# Authors:
12# Nirbheek Chauhan <nirbheek@gentoo.org>
13#
14 11
15inherit versionator 12inherit versionator
16 13
17HOMEPAGE="http://www.clutter-project.org/" 14HOMEPAGE="http://www.clutter-project.org/"
18 15
22# All official clutter packages use LGPL-2.1 19# All official clutter packages use LGPL-2.1
23LICENSE="${LICENSE:-LGPL-2.1}" 20LICENSE="${LICENSE:-LGPL-2.1}"
24 21
25# This will be used by all clutter packages 22# This will be used by all clutter packages
26DEPEND="dev-util/pkgconfig" 23DEPEND="dev-util/pkgconfig"
24
25# @ECLASS-VARIABLE: CLUTTER_LA_PUNT
26# @DESCRIPTION:
27# Set to anything except 'no' to remove *all* .la files before installing.
28# Not to be used without due consideration, sometimes .la files *are* needed.
29CLUTTER_LA_PUNT="${CLUTTER_LA_PUNT:-"no"}"
27 30
28# @ECLASS-VARIABLE: DOCS 31# @ECLASS-VARIABLE: DOCS
29# @DESCRIPTION: 32# @DESCRIPTION:
30# This variable holds relative paths of files to be dodoc-ed. 33# This variable holds relative paths of files to be dodoc-ed.
31# By default, it contains the standard list of autotools doc files 34# By default, it contains the standard list of autotools doc files
37# "examples" USE-flag exists, and is switched on. Bash expressions can be used 40# "examples" USE-flag exists, and is switched on. Bash expressions can be used
38# since the variable is eval-ed before substitution. Empty by default. 41# since the variable is eval-ed before substitution. Empty by default.
39EXAMPLES="${EXAMPLES:-""}" 42EXAMPLES="${EXAMPLES:-""}"
40 43
41# @FUNCTION: clutter_src_install 44# @FUNCTION: clutter_src_install
42# @USAGE: 45# @DESCRIPTION:
43# @DESCRIPTION: Runs emake install, dodoc, and installs examples 46# Runs emake install, dodoc, and installs examples
44clutter_src_install() { 47clutter_src_install() {
45 emake DESTDIR="${D}" install || die "emake install failed" 48 emake DESTDIR="${D}" install || die "emake install failed"
46 dodoc ${DOCS} || die "dodoc failed" 49 dodoc ${DOCS} || die "dodoc failed"
47 50
48 # examples 51 # examples
49 if hasq examples ${IUSE} && use examples; then 52 if has examples ${IUSE} && use examples; then
50 insinto /usr/share/doc/${PF}/examples 53 insinto /usr/share/doc/${PF}/examples
51 54
52 # We use eval to be able to use globs and other bash expressions 55 # We use eval to be able to use globs and other bash expressions
53 for example in $(eval echo ${EXAMPLES}); do 56 for example in $(eval echo ${EXAMPLES}); do
54 # If directory 57 # If directory
57 else 60 else
58 doins ${example} || die "doins ${example} failed!" 61 doins ${example} || die "doins ${example} failed!"
59 fi 62 fi
60 done 63 done
61 fi 64 fi
65
66 # Delete all .la files
67 if [[ "${CLUTTER_LA_PUNT}" != "no" ]]; then
68 find "${D}" -name '*.la' -exec rm -f '{}' + || die
69 fi
62} 70}
63 71
64EXPORT_FUNCTIONS src_install 72EXPORT_FUNCTIONS src_install

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20