diff -ur lash.orig/lash-0.5.4-r1.ebuild lash/lash-0.5.4-r1.ebuild --- lash.orig/lash-0.5.4-r1.ebuild 2011-03-29 15:01:17.000000000 +0800 +++ lash/lash-0.5.4-r1.ebuild 2011-11-20 02:43:26.654930102 +0800 @@ -2,9 +2,10 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-sound/lash/lash-0.5.4-r1.ebuild,v 1.12 2011/03/29 06:56:34 radhermit Exp $ -EAPI=2 +EAPI=4 -inherit eutils libtool +PYTHON_DEPEND="python? 2" +inherit eutils libtool python DESCRIPTION="LASH Audio Session Handler" HOMEPAGE="http://www.nongnu.org/lash/" @@ -14,6 +15,7 @@ SLOT="0" KEYWORDS="alpha amd64 hppa ppc ppc64 sparc x86" IUSE="alsa debug gtk python" +DOCS=( AUTHORS ChangeLog NEWS README TODO ) RDEPEND="alsa? ( media-libs/alsa-lib ) media-sound/jack-audio-connection-kit @@ -25,6 +27,12 @@ dev-util/pkgconfig python? ( >=dev-lang/swig-1.3.31 )" +pkg_setup() { + if use python; then + python_set_active_version 2 + fi +} + src_prepare() { epatch "${FILESDIR}/${P}-glibc2.8.patch" elibtoolize @@ -45,7 +53,7 @@ } src_install() { - emake DESTDIR="${D}" install || die + emake DESTDIR="${ED}" install - dodoc AUTHORS ChangeLog NEWS README TODO + dodoc ${DOCS[@]} }