summaryrefslogtreecommitdiff
path: root/kde-base/pykde4/pykde4-4.2.9999.ebuild
diff options
context:
space:
mode:
authorChristian Schmitt <chris@ilovelinux.de>2009-04-20 20:42:36 +0200
committerChristian Schmitt <chris@ilovelinux.de>2009-04-20 20:42:36 +0200
commit1a4610868e779d9cba54980c19a52eb33c1be059 (patch)
tree2bf5af141e02c6dfc7b42a0770e181b555e574e1 /kde-base/pykde4/pykde4-4.2.9999.ebuild
parent71ea3f0b134a00970a2a8422224c9e070dd9b5a3 (diff)
downloadkde-1a4610868e779d9cba54980c19a52eb33c1be059.tar.gz
kde-1a4610868e779d9cba54980c19a52eb33c1be059.tar.bz2
kde-1a4610868e779d9cba54980c19a52eb33c1be059.zip
initial import of 4.2 branch ebuilds.
Diffstat (limited to 'kde-base/pykde4/pykde4-4.2.9999.ebuild')
-rw-r--r--kde-base/pykde4/pykde4-4.2.9999.ebuild76
1 files changed, 76 insertions, 0 deletions
diff --git a/kde-base/pykde4/pykde4-4.2.9999.ebuild b/kde-base/pykde4/pykde4-4.2.9999.ebuild
new file mode 100644
index 00000000000..494f71d6aff
--- /dev/null
+++ b/kde-base/pykde4/pykde4-4.2.9999.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/kde-base/pykde4/pykde4-4.2.2-r1.ebuild,v 1.2 2009/04/17 06:43:36 alexxy Exp $
+
+EAPI="2"
+
+KMNAME="kdebindings"
+KMMODULE="python/${PN}"
+OPENGL_REQUIRED="always"
+inherit python kde4-meta
+
+DESCRIPTION="Python bindings for KDE4"
+KEYWORDS=""
+IUSE="akonadi debug examples semantic-desktop"
+
+DEPEND="
+ >=dev-python/PyQt4-4.4.4-r1[webkit]
+ >=kde-base/kdelibs-${PV}:${SLOT}[kdeprefix=,opengl,semantic-desktop?]
+ akonadi? ( >=kde-base/kdepimlibs-${PV}:${SLOT}[kdeprefix=] )
+"
+# blocker added due to compatibility issues and error during compile time
+RDEPEND="${DEPEND}
+ !dev-python/pykde
+"
+
+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
+}
+
+src_configure() {
+ mycmakeargs="${mycmakeargs}
+ -DWITH_QScintilla=OFF
+ $(cmake-utils_use_with semantic-desktop Soprano)
+ $(cmake-utils_use_with semantic-desktop Nepomuk)
+ $(cmake-utils_use_with akonadi Akonadi)
+ $(cmake-utils_use_with akonadi KdepimLibs)"
+
+ kde4-meta_src_configure
+}
+
+src_install() {
+ kde4-meta_src_install
+
+ python_version
+ rm -f \
+ "${D}/usr/$(get_libdir)/python${PYVER}"/site-packages/PyKDE4/*.py[co] \
+ "${D}${PREFIX}"/share/apps/"${PN}"/*.py[co]
+}
+
+pkg_postinst() {
+ kde4-meta_pkg_postinst
+
+ python_mod_optimize "/usr/$(get_libdir)/python${PYVER}"/site-packages/PyKDE4
+ # Do not optimize examples
+ python_mod_compile "${PREFIX}"/share/apps/"${PN}"/*.py
+
+ if use examples; then
+ echo
+ elog "PyKDE4 examples have been installed to"
+ elog "${PREFIX}/share/apps/${PN}/examples"
+ echo
+ fi
+}
+
+pkg_postrm() {
+ kde4-meta_pkg_postrm
+
+ python_mod_cleanup \
+ "/usr/$(get_libdir)/python${PYVER}"/site-packages/PyKDE4 \
+ "${PREFIX}"/share/apps/"${PN}"
+}