pentoo-overlay/www-plugins/noscript/noscript-2.9.0.14.ebuild
2016-09-04 16:10:37 +08:00

40 lines
1.4 KiB
Bash

# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
inherit mozilla-addon
MOZ_FILEID="333272"
DESCRIPTION="Allow active content in firefox to run only from trusted sites."
HOMEPAGE="http://noscript.net"
#SRC_URI="https://addons.mozilla.org/downloads/file/${MOZ_FILEID} -> ${P}.xpi"
#https://addons.cdn.mozilla.net/user-media/addons/722/noscript_security_suite-2.9.0.14-fx+fn+sm.xpi?filehash=sha256%3A39bc71be20c318578239ea791c0341dbfcd13b33559af080cea386eeec08b337
SRC_URI="https://secure.informaction.com/download/releases/noscript-2.9.0.14.xpi"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="+symlink_all_targets target_firefox target_seamonkey target_firefox-bin target_seamonkey-bin"
RDEPEND="
!symlink_all_targets? (
target_firefox? ( www-client/firefox )
target_firefox-bin? ( www-client/firefox-bin )
target_seamonkey? ( www-client/seamonkey )
target_seamonkey-bin? ( www-client/seamonkey-bin )
)"
src_install() {
# symlink all possible target paths if this is set
if use symlink_all_targets; then
MZA_TARGETS="firefox seamonkey firefox-bin seamonkey-bin"
else
use target_firefox && MZA_TARGETS+=" firefox"
use target_firefox-bin && MZA_TARGETS+=" firefox-bin"
use target_seamonkey && MZA_TARGETS+=" seamonkey"
use target_seamonkey-bin && MZA_TARGETS+=" seamonkey-bin"
fi
mozilla-addon_src_install
}