You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-python/tagpy/tagpy-0.94.8.ebuild

47 lines
1.2 KiB

# 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.ebuild,v 1.11 2012/02/25 01:59:13 patrick 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"
src_prepare() {
distutils_src_prepare
# Disable broken check for Distribute.
sed -e "s/if 'distribute' not in setuptools.__file__:/if False:/" -i aksetup_helper.py
}
src_configure() {
"$(PYTHON -f)" ./configure.py \
--taglib-inc-dir="${EPREFIX}/usr/include/taglib" \
--boost-python-libname="boost_python-mt" || die "Configuration failed"
}
src_install() {
distutils_src_install
if use examples; then
insinto /usr/share/doc/${PF}/examples
doins test/*
fi
}