# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit mozextension multilib eutils MY_P="${PN//-/_}-${PV}-fx+tb+mz" DESCRIPTION="A Firefox extensions from the firecat framework." HOMEPAGE="http://www.security-database.com/toolswatch/FireCAT-Firefox-Catalog-of,302.html" SRC_URI="${MY_P}.xpi" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 x86" IUSE="" RESTRICT="fetch" RDEPEND="|| ( >=www-client/mozilla-firefox-bin-3.0.0 >=www-client/mozilla-firefox-3.0.0 )" DEPEND="${RDEPEND}" S="${WORKDIR}" pkg_nofetch() { elog "Please download extension from:" elog "https://addons.mozilla.org/en-US/firefox/downloads/file/59124/${MY_P}.xpi?confirmed" elog "Then put the file in ${DISTDIR}/${SRC_URI}" } src_unpack() { xpi_unpack "${A}" # epatch "${FILESDIR}/${MY_P}.patch" } src_compile () { einfo "Nothing to compile" } src_install () { declare MOZILLA_FIVE_HOME if has_version '>=www-client/mozilla-firefox-1.5.0.7'; then MOZILLA_FIVE_HOME="/usr/$(get_libdir)/mozilla-firefox" xpi_install "${S}/${MY_P}" fi if has_version '>=www-client/mozilla-firefox-bin-1.5.0.7'; then MOZILLA_FIVE_HOME="/opt/firefox" xpi_install "${S}/${MY_P}" fi }