summaryrefslogtreecommitdiff
blob: 5625819174986acb89f436c09696875f0935cb85 (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/kapteyn/kapteyn-2.2.ebuild,v 1.3 2012/08/05 17:57:22 bicatali Exp $

EAPI=4

PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*"

inherit eutils distutils

DESCRIPTION="Collection of python tools for astronomy"
HOMEPAGE="http://www.astro.rug.nl/software/kapteyn"
SRC_URI="http://www.astro.rug.nl/software/kapteyn/${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE=""

DEPEND=">=sci-astronomy/wcslib-4.13.4
	dev-python/numpy"
RDEPEND="${DEPEND}
	dev-python/pyfits
	dev-python/matplotlib"

PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
DOCS="CHANGES.txt README.txt"

src_prepare() {
	distutils_src_prepare
	epatch "${FILESDIR}"/${P}-debundle_wcs.patch
	rm -rf src/wcslib-4.*
}

src_install() {
	distutils_src_install
	dodoc doc/${PN}.pdf
}