2015-04-01 07:59:52 +03:00
|
|
|
# Copyright 1999-2015 Gentoo Foundation
|
2013-05-12 20:39:21 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2015-08-11 00:17:55 +03:00
|
|
|
# $Id$
|
2013-05-12 20:39:21 +04:00
|
|
|
|
|
|
|
EAPI=5
|
2015-04-01 07:59:52 +03:00
|
|
|
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
2013-05-12 20:39:21 +04:00
|
|
|
|
|
|
|
inherit distutils-r1
|
|
|
|
|
|
|
|
DESCRIPTION="Python Bindings for TagLib"
|
2015-08-24 15:08:46 +03:00
|
|
|
HOMEPAGE="http://mathema.tician.de//software/tagpy https://pypi.python.org/pypi/tagpy"
|
2013-05-12 20:39:21 +04:00
|
|
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="BSD"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
|
|
|
|
IUSE="examples"
|
|
|
|
|
2016-02-29 09:01:33 +03:00
|
|
|
RDEPEND=">=dev-libs/boost-1.49.0[python${PYTHON_TARGETS}]
|
2013-05-12 20:39:21 +04:00
|
|
|
>=media-libs/taglib-1.7.2"
|
|
|
|
DEPEND="${RDEPEND}
|
|
|
|
dev-python/setuptools[${PYTHON_USEDEP}]"
|
2015-04-01 07:59:52 +03:00
|
|
|
|
2013-05-12 20:39:21 +04:00
|
|
|
DISTUTILS_IN_SOURCE_BUILD=1
|
|
|
|
|
|
|
|
python_configure() {
|
|
|
|
"${PYTHON}" configure.py \
|
|
|
|
--taglib-inc-dir="${EPREFIX}/usr/include/taglib" \
|
|
|
|
--boost-python-libname="boost_python-${EPYTHON#python}"
|
|
|
|
distutils-r1_python_configure
|
|
|
|
}
|
|
|
|
|
|
|
|
python_install_all() {
|
|
|
|
use examples && local EXAMPLES=( test/* )
|
|
|
|
|
|
|
|
distutils-r1_python_install_all
|
|
|
|
}
|