# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="3" PYTHON_DEPEND="2" SUPPORT_PYTHON_ABIS="1" RESTRICT_PYTHON_ABIS="3.* *-jython" inherit distutils eutils DESCRIPTION="Module for manipulating ID3 tags in Python" HOMEPAGE="http://pyid3lib.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="amd64 ia64 ppc ppc64 sparc x86" IUSE="" DEPEND="media-libs/id3lib" RDEPEND="${DEPEND}" PYTHON_CXXFLAGS=("2.* + -fno-strict-aliasing") distutils_src_compile_pre_hook() { if [[ ${EPYTHON} ]] ; then evar_push CFLAGS CXXFLAGS CFLAGS="${CFLAGS} $("${EPYTHON}"-config --cflags)" CXXFLAGS="${CFLAGS} $("${EPYTHON}"-config --cflags)" export CFLAGS CXXFLAGS else evar_push dummy0 dummy1 fi } distutils_src_compile_post_hook() { evar_pop 2 } src_prepare() { distutils_src_prepare epatch "${FILESDIR}/${P}-gcc-4.4.patch" epatch "${FILESDIR}/${P}-py25.patch" } src_install() { distutils_src_install dohtml doc.html || die "dohtml failed" }