| # Copyright 1999-2012 Gentoo Foundation |
| # Distributed under the terms of the GNU General Public License v2 |
| # $Id$ |
| |
| EAPI="5" |
| GCONF_DEBUG="no" |
| PYTHON_DEPEND="2" |
| |
| inherit eutils gnome2 python autotools |
| |
| HOMEPAGE="https://live.gnome.org/Istanbul" |
| DESCRIPTION="Istanbul is a screencast application for the Unix desktop" |
| SRC_URI="http://zaheer.merali.org/${P}.tar.bz2" |
| |
| LICENSE="GPL-2" # Note: not GPL-2+ |
| SLOT=0 |
| KEYWORDS="~amd64 ~x86" |
| IUSE="" |
| |
| RDEPEND=" |
| >=dev-python/pygtk-2.6 |
| dev-python/gst-python:0.10 |
| dev-python/python-xlib |
| >=dev-python/egg-python-2.11.3 |
| >=dev-python/gnome-vfs-python-2 |
| >=dev-python/gconf-python-2 |
| >=gnome-base/gconf-2 |
| >=media-libs/libtheora-1.0_alpha6[encode] |
| |
| >=media-libs/gst-plugins-base-0.10.8:0.10 |
| media-plugins/gst-plugins-gconf:0.10 |
| media-plugins/gst-plugins-ogg:0.10 |
| media-plugins/gst-plugins-libpng:0.10 |
| media-plugins/gst-plugins-theora:0.10 |
| media-plugins/gst-plugins-vorbis:0.10 |
| " |
| DEPEND="${RDEPEND} |
| >=dev-util/intltool-0.35.0 |
| virtual/pkgconfig |
| " |
| |
| pkg_setup() { |
| python_set_active_version 2 |
| python_pkg_setup |
| } |
| |
| src_prepare() { |
| python_clean_py-compile_files |
| cp py-compile common/py-compile-destdir || die |
| |
| # fix autoreconf failure, bug #230325 |
| epatch "${FILESDIR}/${P}-macro-typo.patch" |
| |
| eautoreconf |
| |
| gnome2_src_prepare |
| } |
| |
| src_configure() { |
| mkdir -p "${T}/home" |
| export HOME="${T}/home" |
| export GST_REGISTRY=${T}/home/registry.cache.xml |
| addpredict /root/.gconfd |
| addpredict /root/.gconf |
| addpredict /root/.gnome2 |
| |
| gnome2_src_configure |
| } |
| |
| pkg_postinst() { |
| gnome2_pkg_postinst |
| python_mod_optimize istanbul |
| } |
| |
| pkg_postrm() { |
| gnome2_pkg_postrm |
| python_mod_cleanup istanbul |
| } |