# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="4" inherit mozextension multilib eutils MY_P="${P}-fx" DESCRIPTION="Powerful web development tool for firefox" HOMEPAGE="http://getfirebug.com" SRC_URI="http://releases.mozilla.org/pub/mozilla.org/addons/1843/${MY_P}.xpi" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" RDEPEND="|| ( >=www-client/firefox-bin-15.0.1 >=www-client/firefox-15.0.1 )" DEPEND="${RDEPEND}" S="${WORKDIR}" src_unpack() { xpi_unpack $A } src_install () { declare MOZILLA_FIVE_HOME if has_version 'www-client/firefox'; then MOZILLA_FIVE_HOME="/usr/$(get_libdir)/firefox" xpi_install "${S}/${MY_P}" fi if has_version 'www-client/firefox-bin'; then MOZILLA_FIVE_HOME="/opt/firefox" xpi_install "${S}/${MY_P}" fi }