# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ NEED_PYTHON=2.3 inherit distutils versionator python MY_ALPHA=${PV/'alpha'/'a'} MY_PV=$(delete_version_separator 2 ${MY_ALPHA}) DESCRIPTION="Python bindings for the Asterisk Manager API" HOMEPAGE="http://py-asterisk.berlios.de/py-asterisk.php" SRC_URI="http://download.berlios.de/${PN}/${PN}-${MY_PV}.tar.bz2" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~x86" IUSE="doc" DEPEND="dev-lang/python" RDEPEND="net-misc/asterisk ${DEPEND}" S=${WORKDIR}/${PN}-${MY_PV} src_unpack() { distutils_src_unpack } src_install() { distutils_src_install if use doc ; then dohtml -r doc/* fi }