diff -ur edna.orig/edna-0.6.ebuild edna/edna-0.6.ebuild --- edna.orig/edna-0.6.ebuild 2009-06-08 19:28:22.000000000 +0800 +++ edna/edna-0.6.ebuild 2011-11-28 23:49:00.075967734 +0800 @@ -2,8 +2,9 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-sound/edna/edna-0.6.ebuild,v 1.5 2009/06/08 11:28:22 jer Exp $ -EAPI=2 -inherit eutils multilib +EAPI=4 +PYTHON_DEPEND="2" +inherit eutils multilib python DESCRIPTION="Greg Stein's python streaming audio server for desktop or LAN use" HOMEPAGE="http://edna.sourceforge.net/" @@ -14,11 +15,15 @@ KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86" IUSE="flac ogg" -RDEPEND=">=dev-lang/python-2.5 - flac? ( media-libs/mutagen ) +RDEPEND="flac? ( media-libs/mutagen ) ogg? ( dev-python/pyogg )" DEPEND="${RDEPEND}" +pkg_setup() { + python_set_active_version 2 + python_pkg_setup +} + src_prepare() { epatch "${FILESDIR}/${P}"-SystemExit.patch \ "${FILESDIR}/${P}"-flac.patch \ @@ -47,6 +52,7 @@ dodoc README ChangeLog dohtml -r www/* + python_convert_shebangs 2 "${ED}"/usr/bin/edna } pkg_postinst() {