user-agent-switcher: fixed dependancy

This commit is contained in:
Zero_Chaos 2010-09-07 15:18:52 +00:00
parent 41935c6154
commit 9c82b82074
2 changed files with 44 additions and 0 deletions

View file

@ -1,2 +1,3 @@
DIST user_agent_switcher-0.7.2-fx+sm.xpi 38477 RMD160 42bfa7845a02e765e2a7094a9503080e613a97e4 SHA1 fa4c7dcf9751e3239b14c2c441bb85e83450c678 SHA256 a9f2f2fc99bbd41e571125ec66d14eb7c49fca5c7950c33b00b32f31bf154bce
EBUILD user-agent-switcher-0.7.2-r1.ebuild 1002 RMD160 3ba8e5bb6101934bbfed27d3533b44ffce9be089 SHA1 9118ec106d467dd485e35c3ebf40483fdbeb7158 SHA256 45d11a7ef873473ab6beec56cca8bd0a4abcad8410a854456cbfaf8da0f3d5a4
EBUILD user-agent-switcher-0.7.2.ebuild 1018 RMD160 778ae9c67a5545a182c8b05aff4a2f88ec05f1c9 SHA1 41a4e6bcc0a6c0f762aa3cd801f41c5192cd0513 SHA256 28fbd77ddcd5a92bf8fd8e4c58b5d1d4a1668cf30a39920671bbe33c829dd365

View file

@ -0,0 +1,43 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit mozextension-2 multilib eutils
MY_P="${PN//-/_}-${PV}-fx+sm"
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/59/${MY_P}.xpi"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
RDEPEND="|| (
>=www-client/firefox-bin-3.0.0
>=www-client/firefox-3.0.0
)"
DEPEND="${RDEPEND}"
S="${WORKDIR}"
src_unpack() {
xpi_unpack $A
}
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
}