diff -ur codecgraph.orig//codecgraph-20090522.ebuild codecgraph/codecgraph-20090522.ebuild --- codecgraph.orig//codecgraph-20090522.ebuild 2011-11-13 00:29:37.659791549 +0800 +++ codecgraph/codecgraph-20090522.ebuild 2011-11-14 17:27:22.176931575 +0800 @@ -2,7 +2,11 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-sound/codecgraph/codecgraph-20090522.ebuild,v 1.1 2010/11/21 13:40:34 chainsaw Exp $ -inherit eutils +EAPI="4" + +PYTHON_DEPEND="2:2.6" + +inherit eutils python DESCRIPTION="Generates a graph based on the ALSA description of an HD Audio codec." HOMEPAGE="http://helllabs.org/codecgraph/" @@ -12,16 +16,13 @@ KEYWORDS="~amd64" IUSE="" -RDEPEND="dev-lang/python - media-gfx/graphviz" +RDEPEND=" media-gfx/graphviz" DEPEND="${RDEPEND} media-gfx/imagemagick" -src_unpack() { - unpack ${A} - cd "${S}" - epatch "${FILESDIR}/${PV}-makefile-prefix.diff" +src_prepare() { + epatch "${FILESDIR}/${PV}-makefile-prefix.diff" } src_compile() { @@ -29,6 +30,7 @@ } src_install() { - make DESTDIR="${D}" install + make DESTDIR="${ED}" install dodoc codecs.txt README BUGS IDEAS + python_convert_shebangs -r 2 "${ED}" }