blob: 3a1b00638e10bbc829e011ece393f4fa4130cd69 (
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="3"
KMNAME="kdebindings"
KMMODULE="python/pykde4"
OPENGL_REQUIRED="always"
PYTHON_USE_WITH="threads"
RESTRICT_PYTHON_ABIS="2.4"
inherit python kde4-meta
DESCRIPTION="Python bindings for KDE4"
KEYWORDS=""
IUSE="debug doc examples semantic-desktop"
# blocker added due to compatibility issues and error during compile time
DEPEND="
!dev-python/pykde
$(add_kdebase_dep kdelibs 'opengl,semantic-desktop?')
semantic-desktop? ( $(add_kdebase_dep kdepimlibs 'semantic-desktop') )
aqua? ( >=dev-python/PyQt4-4.7[dbus,declarative,sql,svg,webkit,aqua] )
!aqua? ( >=dev-python/PyQt4-4.7[dbus,declarative,sql,svg,webkit,X] )
"
RDEPEND="${DEPEND}"
pkg_setup() {
python_pkg_setup
kde4-meta_pkg_setup
}
src_prepare() {
kde4-meta_src_prepare
if ! use examples; then
sed -e '/^ADD_SUBDIRECTORY(examples)/s/^/# DISABLED /' -i python/${PN}/CMakeLists.txt \
|| die "Failed to disable examples"
fi
# See bug 322351
use arm && epatch "${FILESDIR}/${PN}-4.4.4-arm-sip.patch"
}
src_configure() {
mycmakeargs=(
-DWITH_QScintilla=OFF
-DWITH_PolkitQt=OFF
$(cmake-utils_use_with semantic-desktop Soprano)
$(cmake-utils_use_with semantic-desktop Nepomuk)
$(cmake-utils_use_with semantic-desktop KdepimLibs)
)
kde4-meta_src_configure
}
src_install() {
use doc && HTML_DOCS=("${S}/python/pykde4/docs/html/")
kde4-meta_src_install
python_convert_shebangs -q -r $(python_get_version) "${ED}"
python_clean_installation_image -q
}
pkg_postinst() {
kde4-meta_pkg_postinst
python_mod_optimize PyKDE4 PyQt4
if use examples; then
echo
elog "PyKDE4 examples have been installed to"
elog "${EKDEDIR}/share/apps/${PN}/examples"
echo
fi
}
pkg_postrm() {
kde4-meta_pkg_postrm
python_mod_cleanup PyKDE4 PyQt4
}
|