aboutsummaryrefslogtreecommitdiff
blob: 2b3cacba30223b0db3c3921654ffac87e1d61450 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

PYTHON_COMPAT=( python{2_7,3_2,3_3} )
PYTHON_REQ_USE="ssl,threads(+),readline(+)"

EGIT_REPO_URI='git://git.overlays.gentoo.org/proj/R_overlay.git'

DOCS=()
HTML_DOCS=( doc/html/. )
EXAMPLES=( examples/. )

inherit user distutils-r1 git-r3 bash-completion-r1

DESCRIPTION="Automatically generated overlay of R packages"
HOMEPAGE="http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=summary"
SRC_URI=""

LICENSE="GPL-2+"
SLOT="0"
KEYWORDS=""
IUSE="compress-config xz +prebuilt-documentation"

DEPEND="
	dev-python/setuptools[${PYTHON_USEDEP}]
	!prebuilt-documentation? ( >=dev-python/docutils-0.9 )
	compress-config? ( app-arch/bzip2 )"
RDEPEND="
	sys-apps/portage
	dev-python/mako[${PYTHON_USEDEP}]
	xz? ( $(python_gen_cond_dep dev-python/backports-lzma[$(python_gen_usedep python{2_7,3_2})] python{2_7,3_2} ) )
	virtual/python-futures[${PYTHON_USEDEP}]"

pkg_preinst() {
	enewgroup roverlay
}

python_compile_all() {
	use prebuilt-documentation || emake htmldoc
	if use compress-config; then
		einfo "Compressing dependency rules and license map"
		emake X_COMPRESS=bzip2 BUILDDIR="${S}/compressed" compress-config
	fi
}

python_install_all() {
	distutils-r1_python_install_all

	emake BUILDDIR="${S}/compressed" DESTDIR="${D}" \
		BASHCOMPDIR="${D}/$(get_bashcompdir)" \
		COMPRESSED_CONFIG="$(usex compress-config 1 0)" \
		install-nonpy
}

pkg_config() {
	${PN}-setup-interactive || die
}