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

EAPI="4"

inherit mozilla-scm-fetch
use enigmail && inherit cvs


DESCRIPTION="Mozilla Mercurial repositories"
HOMEPAGE="${MOZ_HG_BASE_URI}"

KEYWORDS="~amd64 ~x86"
IUSE="enigmail mozdom thunderbird"

REQUIRE_USE="
	enigmail? ( thunderbird )
	"

DEPEND="
	dev-vcs/mercurial
	"
RDEPEND=""

S="${WORKDIR}"

function src_unpack {
	moz_hg_fetch "${MOZ_HG_BASE_URI}/${XULRUNNER_HG_MODULE}/"
	use mozdom && moz_hg_fetch "${MOZ_HG_BASE_URI}/${MOZDOM_HG_MODULE}/"
	if use thunderbird; then
		moz_hg_fetch "${MOZ_HG_BASE_URI}/${THUNDERBIRD_HG_MODULE}"
		moz_hg_fetch "${MOZ_HG_BASE_URI}/${LDAP_SDKS_HG_MODULE}"
		use enigmail && cvs_src_unpack
	fi
}