# 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 theora v4l v4l2 vorbis wavpack x264 xv 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-plugins/gst-plugins-base media-plugins/gst-plugins-good ) flac? ( media-plugins/gst-plugins-flac ) theora? ( media-plugins/gst-plugins-theora ) alsa? ( media-plugins/gst-plugins-alsa ) vorbis? ( media-plugins/gst-plugins-vorbis ) wavpack? ( media-plugins/gst-plugins-wavpack ) v4l? ( media-plugins/gst-plugins-v4l ) v4l2? ( media-plugins/gst-plugins-v4l2 ) ffmpeg? ( media-plugins/gst-plugins-ffmpeg ) a52dec? ( media-plugins/gst-plugins-a52dec ) mad? ( media-plugins/gst-plugins-mad ) x264? ( media-plugins/gst-plugins-x264 ) xine? ( media-libs/xine-lib[aac] ) xv? ( media-plugins/gst-plugins-xvideo )" DEPEND="${RDEPEND} sys-devel/gettext dev-util/pkgconfig" S="${WORKDIR}/${MY_P}/platform/gtk-x11" 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 "The gstreamer or xine USE flag must be selected for this package to work" elog "Both may be selected at the same time" 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." }