# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/www-plugins/gecko-mediaplayer/gecko-mediaplayer-0.9.6.ebuild,v 1.7 2009/07/02 11:56:49 josejx Exp $ EAPI=2 GCONF_DEBUG=no inherit eutils gnome2 multilib DESCRIPTION="A browser multimedia plugin using gnome-mplayer" HOMEPAGE="http://code.google.com/p/gecko-mediaplayer" SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="alpha amd64 ~hppa ~ppc ~ppc64 x86" IUSE="gnome" RDEPEND="dev-libs/glib:2 net-libs/xulrunner:1.9 dev-libs/nspr dev-libs/dbus-glib >=media-video/gnome-mplayer-${PV} gnome? ( gnome-base/gconf:2 )" DEPEND="${RDEPEND} dev-util/pkgconfig sys-devel/gettext" pkg_setup() { G2CONF+=" $(use_with gnome gconf) $(use_enable gnome schemas-install)" DOCS="ChangeLog DOCS/tech/javascript.txt" } src_prepare() { gnome2_src_prepare epatch "${FILESDIR}"/${P}-xul.patch } src_install() { gnome2_src_install rm -rf "${D}"/usr/share/doc/${PN} # move plugins to correct location and clean up empty dirs dodir /usr/$(get_libdir)/nsbrowser/plugins mv "${D}"/usr/$(get_libdir)/nspr/mozilla/plugins/${PN}* \ "${D}"/usr/$(get_libdir)/nsbrowser/plugins || die "mv plugins failed" rm -rf "${D}"/usr/$(get_libdir)/nspr rm -rf "${D}"/var }