# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils multilib distutils confutils fdo-mime versionator MY_PV=$(replace_version_separator 2 '-') MY_P="${PN/m/M}-${MY_PV}" DESCRIPTION="Open source video player" HOMEPAGE="http://www.getmiro.com/" SRC_URI="http://participatoryculture.org/nightlies/${MY_P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 amd64" IUSE="notify" RDEPEND=">=dev-python/pygtk-2.10 || ( >=dev-lang/python-2.5 >=dev-python/pysqlite-2 ) dev-python/gnome-python >=dev-python/gtkmozembed-python-2.19.1-r11 dev-python/dbus-python >=net-libs/xulrunner-1.9 >=dev-python/pyrex-0.9.6.4 media-gfx/imagemagick media-libs/xine-lib >=net-libs/rb_libtorrent-0.13 dev-python/gst-python notify? ( dev-python/notify-python )" DEPEND="${RDEPEND} sys-devel/gettext dev-util/pkgconfig" S="${WORKDIR}/${MY_P}/platform/gtk-x11" pkg_setup() { if ! built_with_use dev-lang/python berkdb; then eerror "You must reemerge dev-lang/python with \"berkdb\" flag set." die "berkbd missing in dev-lang/python" fi if has_version ">=dev-lang/python-2.5" && ! has_version ">=dev-python/pysqlite-2" && ! built_with_use dev-lang/python sqlite ; then eerror "You must reemerge dev-lang/python with \"sqlite\" flag set." die "sqlite missing in dev-lang/python" fi if ! built_with_use net-libs/rb_libtorrent python; then eerror "You must reemerge net-libs/rb_libtorrent with \"python\" flag set." die "python missing in net-libs/rb_libtorrent" fi } pkg_postinst() { distutils_pkg_postinst fdo-mime_desktop_database_update fdo-mime_mime_database_update MOZSETUP="/usr/$(get_libdir)/python${PYVER}/site-packages/${PN}/mozsetup.py" elog "" elog "To increase the font size of the main display area, add:" elog "user_pref(\"font.minimum-size.x-western\", 15);" elog "" elog "to the following file:" elog "${MOZSETUP}" elog "" }