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

EAPI=5

PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2} pypy{1_9,2_0} )

inherit distutils-r1 git-r3

DESCRIPTION="A tool that generates and installs ebuilds for Octave-Forge"
HOMEPAGE="http://www.g-octave.org/"
SRC_URI=""
EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/g-octave.git"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE="doc test"

DEPEND="
	dev-python/docutils[${PYTHON_USEDEP}]
	doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
RDEPEND="sys-apps/portage"

S="${WORKDIR}/${PN}"

python_compile_all() {
	use doc && emake -C docs html
}

python_test() {
	${PYTHON} scripts/run_tests.py || die
}

python_install_all() {
	doman ${PN}.1
	use doc && HTML_DOCS=( docs/_build/html/. )
	HTML_DOCS+=( ${PN}.html )
	distutils-r1_python_install_all
}