Only in lash.orig/: ChangeLog 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-28 03:12:13.919985349 +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=3 +PYTHON_DEPEND="python? 2" +inherit eutils libtool python DESCRIPTION="LASH Audio Session Handler" HOMEPAGE="http://www.nongnu.org/lash/" @@ -14,17 +14,24 @@ 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 + python_pkg_setup + fi +} + src_prepare() { epatch "${FILESDIR}/${P}-glibc2.8.patch" elibtoolize @@ -45,7 +52,21 @@ } src_install() { - emake DESTDIR="${D}" install || die + emake DESTDIR="${D}" install + dodoc ${DOCS[@]} + if use python; then + python_clean_installation_image + fi +} + +pkg_postinst() { + if use python; then + python_mod_optimize lash.py + fi +} - dodoc AUTHORS ChangeLog NEWS README TODO +pkg_postrm() { + if use python; then + python_mod_cleanup lash.py + fi }