/[gentoo-x86]/dev-python/pywavelets/pywavelets-0.2.0.ebuild
Gentoo

Contents of /dev-python/pywavelets/pywavelets-0.2.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (hide annotations) (download)
Thu Aug 2 17:57:17 2012 UTC (2 years, 1 month ago) by bicatali
Branch: MAIN
Changes since 1.5: +6 -10 lines
Keyword amd64-linux and x86-linux

(Portage version: 2.2.01.20796-prefix/cvs/Linux x86_64)

1 patrick 1.5 # Copyright 1999-2012 Gentoo Foundation
2 bicatali 1.1 # Distributed under the terms of the GNU General Public License v2
3 bicatali 1.6 # $Header: /var/cvsroot/gentoo-x86/dev-python/pywavelets/pywavelets-0.2.0.ebuild,v 1.5 2012/02/23 03:25:47 patrick Exp $
4 bicatali 1.1
5 bicatali 1.6 EAPI=4
6 arfrever 1.2 PYTHON_DEPEND="2"
7 bicatali 1.1 SUPPORT_PYTHON_ABIS="1"
8 patrick 1.5 RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*"
9 arfrever 1.2
10 bicatali 1.1 inherit distutils
11    
12     MY_PN="${PN/pyw/PyW}"
13     MY_P="${MY_PN}-${PV}"
14    
15     DESCRIPTION="Python module for discrete, stationary, and packet wavelet transforms."
16 arfrever 1.2 HOMEPAGE="http://www.pybytes.com/pywavelets/ http://pypi.python.org/pypi/PyWavelets"
17 arfrever 1.3 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.bz2"
18 arfrever 1.2
19 bicatali 1.1 LICENSE="MIT"
20     SLOT="0"
21 bicatali 1.6 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
22 bicatali 1.1 IUSE="doc examples test"
23 arfrever 1.2
24 bicatali 1.1 DEPEND="dev-python/cython
25     test? ( dev-python/numpy )"
26     RDEPEND="dev-python/numpy"
27    
28     S="${WORKDIR}/${MY_P}"
29    
30 arfrever 1.2 DOCS="CHANGES.txt THANKS.txt"
31 arfrever 1.4 PYTHON_MODNAME="pywt"
32    
33     src_prepare() {
34     distutils_src_prepare
35     # https://bitbucket.org/nigma/pywt/changeset/784802d4118c
36     sed -e "167s/__new__/__cinit__/" -i src/_pywt.pyx
37     }
38 arfrever 1.2
39 bicatali 1.1 src_test() {
40     testing() {
41 bicatali 1.6 PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib.*)" \
42     "$(PYTHON)" tests/test_perfect_reconstruction.py
43 bicatali 1.1 }
44     python_execute_function testing
45     }
46    
47     src_install () {
48     distutils_src_install
49 bicatali 1.6 use doc && dohtml -r doc/build/html/*
50 bicatali 1.1 if use examples; then
51     insinto /usr/share/doc/${PF}/examples
52 arfrever 1.2 doins demo/* || die "doins failed"
53 bicatali 1.1 fi
54     }

  ViewVC Help
Powered by ViewVC 1.1.20