blob: 28bd64aa1baf6a08b0fe9f3c0e6c52c7c8828fbc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-plugins/noscript/noscript-1.9.0.4.ebuild,v 1.2 2010/01/01 18:03:23 scarabeus Exp $
inherit mozextension multilib
DESCRIPTION="Firefox plugin to disable javascript"
HOMEPAGE="http://noscript.net/"
SRC_URI="http://software.informaction.com/data/releases/${P}.xpi"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
IUSE=""
RDEPEND="|| (
>=www-client/firefox-bin-1.5.0.7
>=www-client/mozilla-firefox-1.5.0.7
)"
DEPEND="${RDEPEND}"
S=${WORKDIR}
src_unpack() {
xpi_unpack "${P}".xpi
}
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}"/"${P}"
fi
if has_version '>=www-client/firefox-bin-1.5.0.7'; then
MOZILLA_FIVE_HOME="/opt/firefox"
xpi_install "${S}"/"${P}"
fi
}
|