blob: cab55035d71810e8db3dd845a456f653cf11e4cf [file] [log] [blame]
Mandeep Singh Bainescf70c422010-02-01 16:43:24 -08001# Copyright 1999-2009 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2
3# $Header: $
4
5#
6# clutter.eclass
7#
8# Sets SRC_URI, SLOT, and a few deps
9#
10# Authors:
11# Nirbheek Chauhan <nirbheek@gentoo.org>
12#
13
14inherit versionator
15
16HOMEPAGE="http://www.clutter-project.org/"
17
18RV=($(get_version_components))
19SRC_URI="http://www.clutter-project.org/sources/${PN}/${RV[0]}.${RV[1]}/${P}.tar.bz2"
20LICENSE="LGPL-2"
21
22DEPEND="dev-util/pkgconfig"
23
24DOCS="AUTHORS ChangeLog NEWS README TODO"
25
26clutter_src_install() {
27 emake DESTDIR="${D}" install || die "emake install failed"
28 dodoc ${DOCS} || die "dodoc failed"
29
30 # examples
31 if hasq examples ${IUSE} && use examples; then
32 insinto /usr/share/doc/${PF}/examples
33
34 for example in ${EXAMPLES}; do
35 # If directory
36 if [[ ${example: -1} = "/" ]]; then
37 doins -r ${example}
38 else
39 doins ${example}
40 fi
41 done
42 fi
43}
44
45EXPORT_FUNCTIONS src_install