# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/vcsroot/gentoo-x86/media-video/miro EAPI="2" inherit distutils eutils fdo-mime flag-o-matic python MY_P="${P/m/M}" DESCRIPTION="Open source video player" HOMEPAGE="http://www.getmiro.com/" SRC_URI="http://ftp.osuosl.org/pub/pculture.org/miro/src/${MY_P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 x86" IUSE="libnotify gstreamer xine" RDEPENDDD=">=dev-python/pycairo-1.8 >=dev-python/pygtk-2.10 >=net-libs/rb_libtorrent-0.14[python] >=net-libs/xulrunner-1.8 >=dev-lang/python-2.4.4[berkdb,sqlite,ssl] >=dev-python/pygobject-2.0 >=dev-python/pyrex-0.9.6.4 dev-libs/boost dev-python/dbus-python >=dev-python/gtkmozembed-python-2.19.1-r11 dev-python/gconf-python dev-python/gnome-vfs-python x11-base/xorg-server media-gfx/imagemagick libnotify? ( dev-python/notify-python dev-libs/poppler-glib ) gstreamer? ( >=media-libs/gstreamer-0.10 dev-python/gst-python media-libs/gst-plugins-good media-libs/gst-plugins-bad ) xine? ( media-libs/xine-lib[aac] )" DEPEND="${RDEPEND} sys-devel/gettext dev-util/pkgconfig" S="${WORKDIR}/${MY_P}/platform/gtk-x11" src_unpack() { unpack Miro-2.5.2.tar.gz cd ${S} } src_prepare() { python setup.py && ./run } src_compile() { filter-ldflags -Wl,--as-needed distutils_src_compile } src_install() { distutils_src_install } pkg_postinst() { distutils_pkg_postinst fdo-mime_desktop_database_update fdo-mime_mime_database_update ebeep 5 ewarn "The dbus service must be installed and running for this package to work" elog ewarn "The gstreamer or xine USE flag must be selected for this package to work" elog elog "It is ok to select the gstreamer and xine USE flag at the same time" elog elog "To switch between gstreamer and xine playback open video in the top menu." elog "Than go into options. Than go into playback and select gstreamer or xine." elog "Miro must be restarted for a change in playback option to take effect." }