diff options
author | Nirbheek Chauhan <nirbheek@gentoo.org> | 2009-08-09 20:15:19 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@gentoo.org> | 2009-08-10 21:55:43 +0530 |
commit | 233ca1a303bb3b559ff958747e8f98911e75482b (patch) | |
tree | 79e9ce158b249276a06c9c0dfaaf49c2d7edf66a /eclass | |
parent | Add dev-libs/gir-repository-0.6.3 (diff) | |
download | gnome-233ca1a303bb3b559ff958747e8f98911e75482b.tar.gz gnome-233ca1a303bb3b559ff958747e8f98911e75482b.tar.bz2 gnome-233ca1a303bb3b559ff958747e8f98911e75482b.zip |
Add media-libs/clutter-1.0.0 + clutter.eclass
* Add metadata.xml
* dev-libs/gir-repository[introspection?]
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/clutter.eclass | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/eclass/clutter.eclass b/eclass/clutter.eclass new file mode 100644 index 00000000..79de44e9 --- /dev/null +++ b/eclass/clutter.eclass @@ -0,0 +1,42 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +# +# clutter.eclass +# +# Sets SRC_URI, SLOT, and a few deps +# +# Authors: +# Nirbheek Chauhan <nirbheek@gentoo.org> +# + +inherit versionator + +HOMEPAGE="http://www.clutter-project.org/" + +RV=($(get_version_components)) +SRC_URI="http://www.clutter-project.org/sources/${PN}/${RV[0]}.${RV[1]}/${P}.tar.bz2" +LICENSE="LGPL-2" + +DEPEND="dev-util/pkgconfig" + +DOCS="AUTHORS ChangeLog NEWS README TODO" + +clutter_src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + # examples + if hasq examples ${IUSE} && use examples; then + insinto /usr/share/doc/${PF}/examples + + for example in ${EXAMPLES}; do + # If directory + if [[ ${example: -1} = "/" ]]; then + doins -r ${example} + else + doins ${example} + fi + done + fi +} |