1 |
nirbheek 10/02/26 21:15:56 |
2 |
|
3 |
Added: clutter.eclass |
4 |
Log: |
5 |
Add clutter.eclass. Discussion for addition was finished with no objections on Jan 1 2010 |
6 |
|
7 |
Revision Changes Path |
8 |
1.1 eclass/clutter.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/clutter.eclass?rev=1.1&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/clutter.eclass?rev=1.1&content-type=text/plain |
12 |
|
13 |
Index: clutter.eclass |
14 |
=================================================================== |
15 |
# Copyright 1999-2010 Gentoo Foundation |
16 |
# Distributed under the terms of the GNU General Public License v2 |
17 |
# $Header: /var/cvsroot/gentoo-x86/eclass/clutter.eclass,v 1.1 2010/02/26 21:15:55 nirbheek Exp $ |
18 |
|
19 |
# |
20 |
# @ECLASS: clutter.eclass |
21 |
# @MAINTAINER: GNOME Herd <gnome@g.o> |
22 |
# |
23 |
# @BLURB: Sets SRC_URI, LICENSE, etc and exports src_install |
24 |
# |
25 |
# Authors: |
26 |
# Nirbheek Chauhan <nirbheek@g.o> |
27 |
# |
28 |
|
29 |
inherit versionator |
30 |
|
31 |
HOMEPAGE="http://www.clutter-project.org/" |
32 |
|
33 |
RV=($(get_version_components)) |
34 |
SRC_URI="http://www.clutter-project.org/sources/${PN}/${RV[0]}.${RV[1]}/${P}.tar.bz2" |
35 |
|
36 |
# All official clutter packages use LGPL-2 |
37 |
LICENSE="LGPL-2" |
38 |
|
39 |
# This will be used by all clutter packages |
40 |
DEPEND="dev-util/pkgconfig" |
41 |
|
42 |
# @ECLASS-VARIABLE: DOCS |
43 |
# @DESCRIPTION: |
44 |
# This variable holds relative paths of files to be dodoc-ed. |
45 |
# By default, it contains the standard list of autotools doc files |
46 |
DOCS="${DOCS:-AUTHORS ChangeLog NEWS README TODO}" |
47 |
|
48 |
# @ECLASS-VARIABLE: EXAMPLES |
49 |
# @DESCRIPTION: |
50 |
# This variable holds relative paths of files to be added as examples when the |
51 |
# "examples" USE-flag exists, and is switched on. Bash expressions can be used |
52 |
# since the variable is eval-ed before substitution. Empty by default. |
53 |
EXAMPLES="${EXAMPLES:-""}" |
54 |
|
55 |
# @FUNCTION: clutter_src_install |
56 |
# @USAGE: |
57 |
# @DESCRIPTION: Runs emake install, dodoc, and installs examples |
58 |
clutter_src_install() { |
59 |
emake DESTDIR="${D}" install || die "emake install failed" |
60 |
dodoc ${DOCS} || die "dodoc failed" |
61 |
|
62 |
# examples |
63 |
if hasq examples ${IUSE} && use examples; then |
64 |
insinto /usr/share/doc/${PF}/examples |
65 |
|
66 |
# We use eval to be able to use globs and other bash expressions |
67 |
for example in $(eval echo ${EXAMPLES}); do |
68 |
# If directory |
69 |
if [[ ${example: -1} == "/" ]]; then |
70 |
doins -r ${example} || die "doins ${example} failed!" |
71 |
else |
72 |
doins ${example} || die "doins ${example} failed!" |
73 |
fi |
74 |
done |
75 |
fi |
76 |
} |
77 |
|
78 |
EXPORT_FUNCTIONS src_install |