diff -ur /mnt/gen2/old-portage/media-sound/lash/lash-0.5.4-r1.ebuild ../lash/lash-0.5.4-r1.ebuild --- lash/lash-0.5.4-r1.ebuild 2011-03-29 15:01:17.000000000 +0800 +++ lash/lash-0.5.4-r1.ebuild 2011-11-25 05:25:22.014831913 +0800 @@ -2,9 +2,9 @@ # 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 - -inherit eutils libtool +EAPI=4 +PYTHON_DEPEND="python? 2" +inherit eutils libtool python DESCRIPTION="LASH Audio Session Handler" HOMEPAGE="http://www.nongnu.org/lash/" @@ -14,17 +14,23 @@ 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 dev-libs/libxml2 gtk? ( x11-libs/gtk+:2 ) - python? ( dev-lang/python ) || ( sys-libs/readline dev-libs/libedit )" DEPEND="${RDEPEND} 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 +51,6 @@ } src_install() { - emake DESTDIR="${D}" install || die - - dodoc AUTHORS ChangeLog NEWS README TODO + emake DESTDIR="${D}" install + dodoc ${DOCS[@]} }