/[gentoo-x86]/dev-python/vo/vo-0.8-r1.ebuild
Gentoo

Contents of /dev-python/vo/vo-0.8-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Apr 24 19:07:33 2013 UTC (17 months, 3 weeks ago) by bicatali
Branch: MAIN
Switch to new distutils-r1

(Portage version: 2.2.01.21890-prefix/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/vo/vo-0.8.ebuild,v 1.3 2012/08/08 19:13:19 bicatali Exp $
4
5 EAPI=5
6
7 PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
8
9 inherit distutils-r1 eutils
10
11 DESCRIPTION="Python module to read VO tables into a numpy array"
12 HOMEPAGE="https://trac6.assembla.com/astrolib/wiki"
13 SRC_URI="http://stsdas.stsci.edu/astrolib/${P}.tar.gz
14 test? ( http://svn6.assembla.com/svn/astrolib/trunk/vo/test/wfpc2_all.xml.gz )"
15
16 IUSE="examples test"
17 SLOT="0"
18 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
19 LICENSE="BSD"
20
21 RDEPEND="
22 dev-libs/expat
23 !dev-python/astropy"
24 DEPEND="${RDEPEND}"
25
26 # slow and buggy tests
27 RESTRICT="test"
28
29 python_prepare_all() {
30 epatch "${FILESDIR}"/${PN}-0.6-expat.patch
31 use test && cp "${WORKDIR}"/wfpc2_all.xml test
32 }
33
34 python_test() {
35 cd test || die
36 ln -s "${S}"/lib/data "${BUILD_DIR}/lib/vo/data" || die
37 PYTHONPATH="${BUILD_DIR}/lib" "${EPYTHON}" benchmarks.py || die
38 }
39
40 python_install_all() {
41 if use examples; then
42 insinto /usr/share/doc/${PF}/
43 doins -r examples
44 fi
45 }

  ViewVC Help
Powered by ViewVC 1.1.20