# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-python/tagpy/tagpy-0.94.8-r1.ebuild,v 1.5 2012/05/23 20:37:46 ago Exp $ EAPI="4" PYTHON_DEPEND="2" SUPPORT_PYTHON_ABIS="1" RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*" inherit distutils DESCRIPTION="Python Bindings for TagLib" HOMEPAGE="http://mathema.tician.de//software/tagpy http://pypi.python.org/pypi/tagpy" SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="amd64 ~ppc ~ppc64 ~sparc ~x86" IUSE="examples" RDEPEND=">=dev-libs/boost-1.48[python] >=media-libs/taglib-1.4" DEPEND="${RDEPEND} dev-python/setuptools" DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES="1" src_prepare() { # Disable broken check for Distribute. sed -e "s/if 'distribute' not in setuptools.__file__:/if False:/" -i aksetup_helper.py distutils_src_prepare } src_configure() { configuration() { "$(PYTHON)" configure.py \ --taglib-inc-dir="${EPREFIX}/usr/include/taglib" \ --boost-python-libname="boost_python-${PYTHON_ABI}-mt" } python_execute_function -s configuration } src_install() { distutils_src_install if use examples; then insinto /usr/share/doc/${PF}/examples doins test/* fi }