blob: 5f3efc8d5998807fa2a86812ace30a63c035a192 (
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-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/pyds9/pyds9-1.6.ebuild,v 1.2 2013/04/24 21:20:51 bicatali Exp $
EAPI=5
PYTHON_COMPAT=( python{2_6,2_7} )
inherit distutils-r1 multilib
XPAPV=2.1.14
DESCRIPTION="Python interface to XPA to communicate with DS9"
HOMEPAGE="http://hea-www.harvard.edu/RD/ds9/pyds9/"
SRC_URI="http://hea-www.harvard.edu/RD/download/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE=""
DEPEND=">=x11-libs/xpa-${XPAPV}"
RDEPEND="${DEPEND}
dev-python/numpy[${PYTHON_USEDEP}]
virtual/pyfits[${PYTHON_USEDEP}]"
DOCS=(changelog README)
src_prepare() {
rm -r xpa-${XPAPV} || die
sed -i \
-e "/py_modules/s|\],|\])|" \
-e '/data_files/,$ d' \
setup.py || die
sed -i \
-e "s|./xpa-${XPAPV}|${EROOT}/usr/$(get_libdir)|" \
xpa.py || die
sed -i \
-e "s|sys.path|${EROOT}/usr/bin|" \
ds9.py || die
distutils-r1_src_prepare
}
|