summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Shvetsov <alexxy@gentoo.org>2009-04-12 06:42:46 +0000
committerAlexey Shvetsov <alexxy@gentoo.org>2009-04-12 06:42:46 +0000
commitd159da8171f99f9fd794820053cccf2a5a6d4775 (patch)
treeb7b1aeafbc38b4f19c8813fcba3a139f20cf20cd /kde-base/pykde4
parentAdd KDE 4.2.2 (diff)
downloadgentoo-2-d159da8171f99f9fd794820053cccf2a5a6d4775.tar.gz
gentoo-2-d159da8171f99f9fd794820053cccf2a5a6d4775.tar.bz2
gentoo-2-d159da8171f99f9fd794820053cccf2a5a6d4775.zip
Add KDE 4.2.2
(Portage version: 2.2_rc29/cvs/Linux x86_64)
Diffstat (limited to 'kde-base/pykde4')
-rw-r--r--kde-base/pykde4/ChangeLog7
-rw-r--r--kde-base/pykde4/pykde4-4.2.2.ebuild73
2 files changed, 79 insertions, 1 deletions
diff --git a/kde-base/pykde4/ChangeLog b/kde-base/pykde4/ChangeLog
index 2f79355b5061..895ad47a06dc 100644
--- a/kde-base/pykde4/ChangeLog
+++ b/kde-base/pykde4/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for kde-base/pykde4
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/kde-base/pykde4/ChangeLog,v 1.12 2009/04/11 16:29:26 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/kde-base/pykde4/ChangeLog,v 1.13 2009/04/12 06:42:46 alexxy Exp $
+
+*pykde4-4.2.2 (11 Apr 2009)
+
+ 11 Apr 2009; Alexey Shvetsov <alexxy@gentoo.org> +pykde4-4.2.2.ebuild:
+ Add KDE 4.2.2
11 Apr 2009; Raúl Porcel <armin76@gentoo.org> pykde4-4.2.1.ebuild:
Add ~alpha/~ia64 wrt #260777
diff --git a/kde-base/pykde4/pykde4-4.2.2.ebuild b/kde-base/pykde4/pykde4-4.2.2.ebuild
new file mode 100644
index 000000000000..0619211913dc
--- /dev/null
+++ b/kde-base/pykde4/pykde4-4.2.2.ebuild
@@ -0,0 +1,73 @@
+# 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.ebuild,v 1.1 2009/04/12 06:42:46 alexxy Exp $
+
+EAPI="2"
+
+KMNAME="kdebindings"
+KMMODULE="python/${PN}"
+OPENGL_REQUIRED="always"
+inherit python kde4-meta
+
+DESCRIPTION="Python bindings for KDE4"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~x86"
+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=] )
+"
+RDEPEND="${DEPEND}"
+
+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}"
+}