blob: c867a6dc22876d3a9bf24286978ee848dbe3824f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
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
}
|