Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 313955 | Differences between
and this patch

Collapse All | Expand All

(-)lash.orig/lash-0.5.4-r1.ebuild (-6 / +26 lines)
Lines 2-10 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $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 $
3
# $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 $
4
4
5
EAPI=2
5
EAPI=3
6
6
PYTHON_DEPEND="python? 2"
7
inherit eutils libtool
7
inherit eutils libtool python
8
8
9
DESCRIPTION="LASH Audio Session Handler"
9
DESCRIPTION="LASH Audio Session Handler"
10
HOMEPAGE="http://www.nongnu.org/lash/"
10
HOMEPAGE="http://www.nongnu.org/lash/"
Lines 14-30 Link Here
14
SLOT="0"
14
SLOT="0"
15
KEYWORDS="alpha amd64 hppa ppc ppc64 sparc x86"
15
KEYWORDS="alpha amd64 hppa ppc ppc64 sparc x86"
16
IUSE="alsa debug gtk python"
16
IUSE="alsa debug gtk python"
17
DOCS=( AUTHORS ChangeLog NEWS README TODO )
17
18
18
RDEPEND="alsa? ( media-libs/alsa-lib )
19
RDEPEND="alsa? ( media-libs/alsa-lib )
19
	media-sound/jack-audio-connection-kit
20
	media-sound/jack-audio-connection-kit
20
	dev-libs/libxml2
21
	dev-libs/libxml2
21
	gtk? ( x11-libs/gtk+:2 )
22
	gtk? ( x11-libs/gtk+:2 )
22
	python? ( dev-lang/python )
23
	|| ( sys-libs/readline dev-libs/libedit )"
23
	|| ( sys-libs/readline dev-libs/libedit )"
24
DEPEND="${RDEPEND}
24
DEPEND="${RDEPEND}
25
	dev-util/pkgconfig
25
	dev-util/pkgconfig
26
	python? ( >=dev-lang/swig-1.3.31 )"
26
	python? ( >=dev-lang/swig-1.3.31 )"
27
27
28
pkg_setup() {
29
	if use python; then
30
		python_set_active_version 2
31
		python_pkg_setup
32
	fi
33
}
34
28
src_prepare() {
35
src_prepare() {
29
	epatch "${FILESDIR}/${P}-glibc2.8.patch"
36
	epatch "${FILESDIR}/${P}-glibc2.8.patch"
30
	elibtoolize
37
	elibtoolize
Lines 45-51 Link Here
45
}
52
}
46
53
47
src_install() {
54
src_install() {
48
	emake DESTDIR="${D}" install || die
55
	emake DESTDIR="${D}" install
56
	dodoc ${DOCS[@]}
57
	python_clean_installation_image
58
}
49
59
50
	dodoc AUTHORS ChangeLog NEWS README TODO
60
pkg_postinst() {
61
	if use python; then
62
		python_mod_optimize lash.py
63
	fi
64
}
65
 
66
pkg_postrm() {
67
        if use python; then
68
		python_mod_cleanup lash.py
69
	fi
51
}
70
}
71

Return to bug 313955