# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit distutils linux-info DESCRIPTION="A Python wrapper for the ALSA API" HOMEPAGE="http://www.sourceforge.net/projects/pyalsaaudio" SRC_URI="mirror://sourceforge/pyalsaaudio/${P}.tgz" # perhaps need updated license in licenses? LICENSE="PSF-2.4" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="doc examples" # virtual python already pulled in by distutils DEPEND="media-libs/alsa-lib" CONFIG_CHECK="SND_SUPPORT_OLD_API" pkg_setup() { # PyAlsAudio requires support for the old ALSA API. # Are there better ways of checking for this? # Should we even bother checking for this, i.e. # is it the responsibility of the user? # I don't really see the harm in checking. # This does a lot of unnecessary version checks but # gets called by check_extra_config if not already # done so anyway. Perhaps it would be better if # someone placed the checks for the kernel # sources into its own function? get_version # is ${CONFIG_CHECK} an option for the current kernel? if egrep -q ${CONFIG_CHECK} \ ${KV_DIR}/sound/core/Kconfig; then # enforce ${CONFIG_CHECK} support check_extra_config fi } src_install() { distutils_src_install # html documentation use doc && dohtml -A tex -r doc/* # install example files if use examples; then insinto /usr/share/${PN} doins *test.py fi }