pentoo-overlay/www-plugins/firebug/firebug-1.10.3.ebuild

40 lines
908 B
Bash

# 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="A Firefox extensions from the firecat framework."
HOMEPAGE="http://www.security-database.com/toolswatch/FireCAT-Firefox-Catalog-of,302.html"
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
}