/[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.7 - (show annotations) (download)
Mon Aug 12 18:31:13 2013 UTC (14 months, 2 weeks ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Move to distutils-r1

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

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/pywavelets/pywavelets-0.2.0.ebuild,v 1.6 2012/08/02 17:57:17 bicatali Exp $
4
5 EAPI=4
6 PYTHON_DEPEND="2"
7 SUPPORT_PYTHON_ABIS="1"
8 RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*"
9
10 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 HOMEPAGE="http://www.pybytes.com/pywavelets/ http://pypi.python.org/pypi/PyWavelets"
17 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.bz2"
18
19 LICENSE="MIT"
20 SLOT="0"
21 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
22 IUSE="doc examples test"
23
24 DEPEND="dev-python/cython
25 test? ( dev-python/numpy )"
26 RDEPEND="dev-python/numpy"
27
28 S="${WORKDIR}/${MY_P}"
29
30 DOCS="CHANGES.txt THANKS.txt"
31 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
39 src_test() {
40 testing() {
41 PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib.*)" \
42 "$(PYTHON)" tests/test_perfect_reconstruction.py
43 }
44 python_execute_function testing
45 }
46
47 src_install () {
48 distutils_src_install
49 use doc && dohtml -r doc/build/html/*
50 if use examples; then
51 insinto /usr/share/doc/${PF}/examples
52 doins demo/* || die "doins failed"
53 fi
54 }

  ViewVC Help
Powered by ViewVC 1.1.20