blob: f86f942ccbb96eb0010089058ab3cab0ca5a4851 (
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
42
43
44
45
46
47
48
49
50
51
52
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/pyalsaaudio/pyalsaaudio-0.7-r1.ebuild,v 1.4 2014/02/14 19:13:46 maekke Exp $
EAPI=5
PYTHON_COMPAT=( python{2_6,2_7} )
inherit distutils-r1
DESCRIPTION="A Python wrapper for the ALSA API"
HOMEPAGE="http://www.sourceforge.net/projects/pyalsaaudio http://pypi.python.org/pypi/pyalsaaudio"
SRC_URI="mirror://sourceforge/pyalsaaudio/${P}.tar.gz mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="PSF-2"
SLOT="0"
KEYWORDS="~amd64 arm ~ppc ~sparc ~x86"
IUSE="doc"
RDEPEND="media-libs/alsa-lib"
DEPEND="${RDEPEND}
doc? ( >=dev-python/sphinx-0.6 )"
RESTRICT="test"
DOCS=( CHANGES README )
python_compile() {
distutils-r1_python_compile
if use doc; then
cd doc
emake html || die "emake html failed"
fi
}
src_test() {
testing() {
PYTHONPATH="$(ls -d build-${PYTHON_ABI}/lib.*)" "$(PYTHON)" test.py -v
}
python_execute_function testing
}
python_install() {
distutils-r1_python_install
if use doc; then
dohtml -r doc/html/
fi
insinto /usr/share/doc/${PF}/examples
doins *test.py
}
|