pentoo-overlay/www-plugins/web_developer/web_developer-1.2.5-r2.ebuild
2017-01-24 23:46:23 +08:00

34 lines
886 B
Bash

# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
inherit mozilla-addon
MOZ_FILEID="205744"
DESCRIPTION="Adds various web developer tools to firefox."
HOMEPAGE="http://chrispederick.com/work/web-developer"
SRC_URI="https://addons.mozilla.org/downloads/file/${MOZ_FILEID} -> ${P}.xpi"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="+symlink_all_targets target_firefox target_firefox-bin"
RDEPEND="
!symlink_all_targets? (
target_firefox? ( www-client/firefox )
target_firefox-bin? ( www-client/firefox-bin )
)"
src_install() {
# symlink all possible target paths if this is set
if use symlink_all_targets; then
MZA_TARGETS="firefox firefox-bin"
else
use target_firefox && MZA_TARGETS+=" firefox"
use target_firefox-bin && MZA_TARGETS+=" firefox-bin"
fi
mozilla-addon_src_install
}