Mandeep Singh Baines | cf70c42 | 2010-02-01 16:43:24 -0800 | [diff] [blame] | 1 | # 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 | |
| 14 | inherit versionator |
| 15 | |
| 16 | HOMEPAGE="http://www.clutter-project.org/" |
| 17 | |
| 18 | RV=($(get_version_components)) |
| 19 | SRC_URI="http://www.clutter-project.org/sources/${PN}/${RV[0]}.${RV[1]}/${P}.tar.bz2" |
| 20 | LICENSE="LGPL-2" |
| 21 | |
| 22 | DEPEND="dev-util/pkgconfig" |
| 23 | |
| 24 | DOCS="AUTHORS ChangeLog NEWS README TODO" |
| 25 | |
| 26 | clutter_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 | |
| 45 | EXPORT_FUNCTIONS src_install |