# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit python DESCRIPTION="pyflac provides Python wrappers to libFLAC" HOMEPAGE="http://lists.xiph.org/pipermail/flac-dev/2004-August/001571.html" MY_P="${PN}-${PV}.orig" SRC_URI="http://people.debian.org/~piman/pf/${PN}_${PV}.orig.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" RDEPEND=">=media-libs/flac-1.1.0-r2 >=dev-lang/python-2.3" DEPEND="${RDEPEND} >=dev-lang/swig-1.3.21" S=${WORKDIR}/${MY_P} MAKEOPTS="${MAKEOPTS} -j1" # avoid problems with distcc python_version # set PYVER src_compile() { sed -i "s:python2.3:python${PYVER}:" Makefile emake || die "emake failed" } src_install() { dodir /usr/lib/python${PYVER}/site-packages/flac || die insinto /usr/lib/python${PYVER}/site-packages/flac doins flac/__init__.py flac/_decoder.so flac/_encoder.so flac/_sw_metadata.so flac/decoder.py flac/encoder.py flac/metadata.py flac/sw_metadata.py || die dodoc README || die insinto /usr/share/doc/${PF}/examples doins examples/* || die }