summaryrefslogtreecommitdiff
path: root/kde-base/pykde4/pykde4-4.2.89.ebuild
diff options
context:
space:
mode:
authorAlexey Shvetsov <alexxy@gentoo.org>2009-06-04 15:53:49 +0400
committerAlexey Shvetsov <alexxy@gentoo.org>2009-06-04 15:55:32 +0400
commita716e92a482b83d93016d976309309c0ac15078e (patch)
treef8d8c7a00c5f9731053c74dde8a7ceb95e9faeea /kde-base/pykde4/pykde4-4.2.89.ebuild
parente139f7461345905dc3066834c347c727948dcbb8 (diff)
downloadkde-a716e92a482b83d93016d976309309c0ac15078e.tar.gz
kde-a716e92a482b83d93016d976309309c0ac15078e.tar.bz2
kde-a716e92a482b83d93016d976309309c0ac15078e.zip
Add shiny new KDE 4.2.89
Diffstat (limited to 'kde-base/pykde4/pykde4-4.2.89.ebuild')
-rw-r--r--kde-base/pykde4/pykde4-4.2.89.ebuild86
1 files changed, 86 insertions, 0 deletions
diff --git a/kde-base/pykde4/pykde4-4.2.89.ebuild b/kde-base/pykde4/pykde4-4.2.89.ebuild
new file mode 100644
index 00000000000..df7f7a135d8
--- /dev/null
+++ b/kde-base/pykde4/pykde4-4.2.89.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+KMNAME="kdebindings"
+KMMODULE="python/${PN}"
+OPENGL_REQUIRED="always"
+inherit python kde4-meta
+
+DESCRIPTION="Python bindings for KDE4"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~x86"
+IUSE="akonadi debug examples semantic-desktop"
+
+# FIXME - bump PyQt and sip deps to stable ones when they are out
+COMMON_DEPEND="
+ >=dev-python/PyQt4-4.5_pre[webkit]
+ >=kde-base/kdelibs-${PV}:${SLOT}[kdeprefix=,opengl,semantic-desktop?]
+ akonadi? ( >=kde-base/kdepimlibs-${PV}:${SLOT}[kdeprefix=] )
+ semantic-desktop? ( >=dev-libs/soprano-2.2.67 )
+"
+# blocker added due to compatibility issues and error during compile time
+DEPEND="${COMMON_DEPEND}
+ >=dev-python/sip-4.8_pre
+"
+RDEPEND="${COMMON_DEPEND}
+ !dev-python/pykde
+"
+
+src_prepare() {
+ kde4-meta_src_prepare
+
+ # FIXME temporary fix
+ rm -f python/${PN}/sip/kio/ksslcertificatemanager.sip
+ sed -e 's|%Include ksslcertificatemanager.sip||' \
+ -i python/${PN}/sip/kio/kiomod.sip || die "failed to hack around"
+
+ 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}"
+}