blob: 7d35101830c72001b2e02f82736fe8bb6d3790a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/libkate/libkate-0.3.7.ebuild,v 1.18 2012/10/10 04:01:30 zerochaos Exp $
EAPI="4"
PYTHON_DEPEND="wxwidgets? 2"
inherit eutils python
DESCRIPTION="Codec for karaoke and text encapsulation for Ogg"
HOMEPAGE="http://code.google.com/p/libkate/"
SRC_URI="http://libkate.googlecode.com/files/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd"
IUSE="doc wxwidgets"
COMMON_DEPEND="media-libs/libogg
media-libs/libpng"
DEPEND="${COMMON_DEPEND}
virtual/pkgconfig
sys-devel/flex
sys-devel/bison
doc? ( app-doc/doxygen )"
RDEPEND="${COMMON_DEPEND}
wxwidgets? ( =dev-python/wxpython-2.8* media-libs/liboggz )"
pkg_setup() {
if use wxwidgets; then
python_set_active_version 2
python_pkg_setup
fi
}
src_prepare() {
use wxwidgets && python_clean_py-compile_files
epatch "${FILESDIR}"/${P}-libpng14.patch
}
src_configure() {
use wxwidgets || sed -i -e "s/HAVE_PYTHON=yes/HAVE_PYTHON=no/" configure
econf $(use_enable doc) --docdir=/usr/share/doc/${PF}
}
src_install() {
emake DESTDIR="${D}" install || die "make install failed"
dodoc AUTHORS ChangeLog README
use wxwidgets && python_convert_shebangs -r 2 "${D}"
}
pkg_postinst() {
use wxwidgets && python_mod_optimize kdj
}
pkg_postrm() {
use wxwidgets && python_mod_cleanup kdj
}
|