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

EAPI=5

PYTHON_COMPAT=( python{2_7,3_3} )

inherit distutils-r1

DESCRIPTION="Simple cosmology python module"
HOMEPAGE="http://cxc.harvard.edu/contrib/cosmocalc/ http://pypi.python.org/pypi/cosmocalc/"
SRC_URI="http://cxc.harvard.edu/contrib/cosmocalc/downloads/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

python_compile() {
	distutils-r1_python_compile
	[[ "${PYTHON}" =~ python2 ]] && return
	2to3 -nw --no-diffs "${BUILD_DIR}" || die
}