diff options
Diffstat (limited to 'dev-python/pyalsaaudio/pyalsaaudio-0.8.2.ebuild')
-rw-r--r-- | dev-python/pyalsaaudio/pyalsaaudio-0.8.2.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-python/pyalsaaudio/pyalsaaudio-0.8.2.ebuild b/dev-python/pyalsaaudio/pyalsaaudio-0.8.2.ebuild new file mode 100644 index 00000000000..c5d7ce61bbb --- /dev/null +++ b/dev-python/pyalsaaudio/pyalsaaudio-0.8.2.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_3,3_4} ) + +inherit distutils-r1 toolchain-funcs + +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[${PYTHON_USEDEP}] )" + +RESTRICT="test" # Direct access to ALSA, shouln't be used + +python_compile_all() { + use doc && emake -C doc html +} + +python_compile() { + python_is_python3 || local -x CFLAGS="${CFLAGS} -fno-strict-aliasing" + distutils-r1_python_compile +} + +python_install_all() { + use doc && local HTML_DOCS=( doc/html/. ) + local EXAMPLES=( *test.py ) + + distutils-r1_python_install_all +} |