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

# @ECLASS: mozilla-scm.eclass
# @MAINTAINER:
# Sardem FF7 <sardemff7.pub@gmail.com>
# @BLURB: This eclass provides Mozilla SCM building support


inherit mozilla-scm-fetch python

# @ECLASS-VARIABLE: EHG_REVISION
# @DESCRIPTION:
# Create working directory for specified revision, defaults to tip.
#
# EHG_REVISION is passed as a value for --rev parameter, so it can be more than
# just a revision, please consult `hg help revisions' for more details.
: ${EHG_REVISION:=tip}

[ "${PN}" != "nspr" ] && RDEPEND="~dev-libs/nspr-9999"
DEPEND="${RDEPEND}
	app-arch/zip
	dev-util/pkgconfig
	=dev-lang/python-2*[threads]

	meta-sync/mozilla-repositories
	"

EXPORT_FUNCTIONS pkg_setup

##
## eclass exported function
## pkg_setup
##
function mozilla-scm_pkg_setup {
	mozilla-scm-fetch_pkg_setup
	python_set_active_version 2
}