summaryrefslogtreecommitdiff
blob: 1802faab644afc8d0777ad2e3d5edb2d134d19e7 (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
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

inherit mozilla-addon

MOZ_ADDON_ID=4631
DESCRIPTION="Allows Lightning to read and write events and tasks to a Google Calendar"
HOMEPAGE="http://addons.mozilla.org/en-us/thunderbird/addon/provider-for-google-calendar/"
SRC_URI="http://addons.mozilla.org/downloads/file/${MOZ_ADDON_ID} -> ${P}.xpi"

LICENSE="MPL-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+symlink_all_targets target_thunderbird target_thunderbird-bin"

# symlink all possible target paths if this is set
if use symlink_all_targets; then
	MZA_TARGETS="thunderbird thunderbird-bin"
else
	use target_thunderbird && MZA_TARGETS+=" thunderbird"
	use target_thunderbird-bin && MZA_TARGETS+=" thunderbird-bin"
fi

RDEPEND="
	!symlink_all_targets? (
		target_thunderbird? ( mail-client/thunderbird[-lightning] )
		target_thunderbird-bin? ( mail-client/thunderbird-bin )
	)
	!mail-client/thunderbird[lightning]"

pkg_postinst() {
	ewarn "This ebuild installs the latest STABLE version !"
	ewarn "It is used by the maintainer to check for new versions ..."
}