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/eyeD3/eyeD3-0.7.5.ebuild

39 lines
996 B

# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
# still appears ill prepared for python3; see bugs 501338, 501340
PYTHON_COMPAT=( python2_7 )
inherit distutils-r1
DESCRIPTION="Module for manipulating ID3 (v1 + v2) tags in Python"
HOMEPAGE="http://eyed3.nicfit.net/"
SRC_URI="http://eyed3.nicfit.net/releases/${P}.tgz"
LICENSE="GPL-2"
SLOT="0.7"
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x86-solaris"
IUSE=""
DEPEND="dev-python/paver[${PYTHON_USEDEP}]"
python_prepare_all() {
# prevent the build system from installing unwrapped bash script
# and prevent it from pulling optional python-magic
sed -i -e '/scripts/d' \
-e '/install_requires/d' pavement.py || die
distutils-r1_python_prepare_all
}
python_install() {
distutils-r1_python_install
sed -e "s:python:${EPYTHON}:" bin/eyeD3 > "${TMPDIR}"/eyeD3 || die
python_doexe "${TMPDIR}"/eyeD3
}