# 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="a52 alsa ffmpeg flac gstreamer libnotify mad ogg theora v4l v4l2 vorbis wavpack xv xine" RDEPEND=">=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-python/pysqlite-2.3.5 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 ) flac? ( media-plugins/gst-plugins-flac ) theora? ( media-video/ffmpeg[theora] media-plugins/gst-plugins-ffmpeg ) alsa? ( media-plugins/gst-plugins-alsa ) vorbis? ( media-plugins/gst-plugins-vorbis ) wavpack? ( media-plugins/gst-plugins-wavpack ) ffmpeg? ( media-video/ffmpeg[x264] media-plugins/gst-plugins-ffmpeg ) mad? ( media-plugins/gst-plugins-mad ) xine? ( media-libs/xine-lib[aac] ) xv? ( media-video/ffmpeg[xvid] media-plugins/gst-plugins-ffmpeg ) ogg? ( media-plugins/gst-plugins-ogg )" DEPEND="${RDEPEND} sys-devel/gettext dev-util/pkgconfig" S="${WORKDIR}/${MY_P}/platform/gtk-x11" pkg_setup() { ewarn ebeep 5 ewarn "It is important to note that Miro needs a backend for video playback" ewarn "The gstremer or xine USE flag must be selected for this package to work" elog "Both may be selected at the same time" } src_unpack() { unpack "${MY_P}".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 "Remember to emerge media-plugins/gst-plugins-meta after installing" ewarn "a new gstreamer plugin." elog elog "To switch between gstreamer and xine playback, open 'video' in the top menu." elog "Than go into 'options,' select 'playback,' and choose gstreamer or xine." elog "Miro must be restarted for a change in playback option to take effect." }