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

Contents of /dev-python/vo/vo-0.7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Mon Aug 8 18:35:34 2011 UTC (6 years, 10 months ago) by hwoarang
Branch: MAIN
Changes since 1.2: +7 -5 lines
Fix dependencies. Avoid breaking strict-aliasing rules. Simplify src_test(). Patch by Arfrever.

(Portage version: 2.2.0_alpha46/cvs/Linux x86_64)

1 bicatali 1.1 # Copyright 1999-2011 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 hwoarang 1.3 # $Header: /var/cvsroot/gentoo-x86/dev-python/vo/vo-0.7.ebuild,v 1.2 2011/08/04 00:04:14 bicatali Exp $
4 bicatali 1.1
5     EAPI=3
6    
7 hwoarang 1.3 PYTHON_DEPEND="*:2.6"
8 bicatali 1.1 SUPPORT_PYTHON_ABIS="1"
9 hwoarang 1.3 RESTRICT_PYTHON_ABIS="2.4 2.5 *-jython"
10 bicatali 1.1
11     inherit distutils eutils
12    
13     DESCRIPTION="Python module to read VOTABLE into a Numpy recarray"
14     HOMEPAGE="https://trac6.assembla.com/astrolib/wiki http://www.scipy.org/AstroLib"
15     SRC_URI="http://stsdas.stsci.edu/astrolib/${P}.tar.gz"
16    
17     IUSE="examples"
18     SLOT="0"
19     KEYWORDS="~amd64 ~x86"
20     LICENSE="BSD"
21    
22     RDEPEND="dev-libs/expat"
23     DEPEND="${RDEPEND}"
24    
25 hwoarang 1.3 PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
26    
27 bicatali 1.1 src_prepare() {
28     epatch "${FILESDIR}"/${PN}-0.6-expat.patch
29     }
30    
31     src_test() {
32     cd test
33 hwoarang 1.3
34 bicatali 1.1 testing() {
35 hwoarang 1.3 PYTHONPATH="$(ls -d ../build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" benchmarks.py
36 bicatali 1.1 }
37     python_execute_function testing
38     }
39    
40     src_install() {
41     distutils_src_install
42     if use examples; then
43     insinto /usr/share/doc/${PF}/
44     doins -r examples || die
45     fi
46     }

  ViewVC Help
Powered by ViewVC 1.1.20