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

Collapse All | Expand All

(-)libkate.orig//libkate-0.4.1.ebuild (-2 / +34 lines)
Lines 2-7 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-libs/libkate/libkate-0.4.1.ebuild,v 1.1 2011/09/08 18:00:27 aballier Exp $
3
# $Header: /var/cvsroot/gentoo-x86/media-libs/libkate/libkate-0.4.1.ebuild,v 1.1 2011/09/08 18:00:27 aballier Exp $
4
4
5
EAPI="3"
6
PYTHON_DEPEND="wxwidgets? 2"
7
inherit python
8
5
DESCRIPTION="Codec for karaoke and text encapsulation for Ogg"
9
DESCRIPTION="Codec for karaoke and text encapsulation for Ogg"
6
HOMEPAGE="http://code.google.com/p/libkate/"
10
HOMEPAGE="http://code.google.com/p/libkate/"
7
SRC_URI="http://libkate.googlecode.com/files/${P}.tar.gz"
11
SRC_URI="http://libkate.googlecode.com/files/${P}.tar.gz"
Lines 14-20 Link Here
14
COMMON_DEPEND="media-libs/libogg
18
COMMON_DEPEND="media-libs/libogg
15
	media-libs/libpng"
19
	media-libs/libpng"
16
DEPEND="${COMMON_DEPEND}
20
DEPEND="${COMMON_DEPEND}
17
	wxwidgets? ( dev-lang/python )
18
	dev-util/pkgconfig
21
	dev-util/pkgconfig
19
	sys-devel/flex
22
	sys-devel/flex
20
	sys-devel/bison
23
	sys-devel/bison
Lines 22-34 Link Here
22
RDEPEND="${COMMON_DEPEND}
25
RDEPEND="${COMMON_DEPEND}
23
	wxwidgets? ( =dev-python/wxpython-2.8* media-libs/liboggz )"
26
	wxwidgets? ( =dev-python/wxpython-2.8* media-libs/liboggz )"
24
27
25
src_compile() {
28
pkg_setup() {
29
	if use wxwidgets; then
30
		python_set_active_version 2
31
		python_pkg_setup
32
	fi
33
}
34
35
src_prepare() {
36
	echo "#!/bin/sh" > misc/autotools/py-compile
37
}
38
39
src_configure() {
26
	use wxwidgets || sed -i -e "s/HAVE_PYTHON=yes/HAVE_PYTHON=no/" configure
40
	use wxwidgets || sed -i -e "s/HAVE_PYTHON=yes/HAVE_PYTHON=no/" configure
27
	econf $(use_enable debug) $(use_enable doc) --docdir=/usr/share/doc/${PF}
41
	econf $(use_enable debug) $(use_enable doc) --docdir=/usr/share/doc/${PF}
42
}
43
44
src_compile() {
28
	emake || die "emake failed"
45
	emake || die "emake failed"
29
}
46
}
30
47
31
src_install() {
48
src_install() {
32
	emake DESTDIR="${D}" install || die "make install failed"
49
	emake DESTDIR="${D}" install || die "make install failed"
33
	dodoc AUTHORS ChangeLog README
50
	dodoc AUTHORS ChangeLog README
51
	if use wxwidgets; then
52
		python_convert_shebangs -r 2 "${D}"
53
	fi
54
}
55
56
pkg_postinst() {
57
	if use wxwidgets; then
58
		python_mod_optimize kdj
59
	fi
60
}
61
62
pkg_postrm() {
63
	if use wxwidgets; then
64
		python_mod_cleanup kdj
65
	fi
34
}
66
}

Return to bug 313533