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

EAPI=4

PYTHON_DEPEND="*"
SUPPORT_PYTHON_ABIS="1"

inherit distutils

DESCRIPTION="Python interface generator for Fortran based codes"
HOMEPAGE="http://hifweb.lbl.gov/Forthon http://pypi.python.org/pypi/Forthon"
SRC_URI="http://hifweb.lbl.gov/${PN}/${P}.tgz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="examples"

src_prepare() {
	sed -i -e "s/'Notice',//" setup.py || die
	distutils_src_prepare
}

src_install() {
	distutils_src_install
	dohtml docs/index.html
	if use examples ; then
		insinto /usr/share/doc/${PF}
		doins -r {example,example2,simpleexample}
	fi
}