summaryrefslogtreecommitdiff
path: root/kde-base/pykde4/pykde4-4.6.49.9999.ebuild
diff options
context:
space:
mode:
authorJonathan Callen <abcd@gentoo.org>2011-06-06 21:08:39 -0400
committerJonathan Callen <abcd@gentoo.org>2011-06-06 21:08:39 -0400
commitd3968af2338fbfb095be39ca28dd67c6901da495 (patch)
tree333b46ae575b89f0eee9558404e3af7a3f021563 /kde-base/pykde4/pykde4-4.6.49.9999.ebuild
parentcf5ac5cd886f9a6a72e11ffbddf0d0a311523763 (diff)
downloadkde-d3968af2338fbfb095be39ca28dd67c6901da495.tar.gz
kde-d3968af2338fbfb095be39ca28dd67c6901da495.tar.bz2
kde-d3968af2338fbfb095be39ca28dd67c6901da495.zip
Move the branched live ebuilds to a version that is consistant with slotting removal; update keywords/masks/etc.
Diffstat (limited to 'kde-base/pykde4/pykde4-4.6.49.9999.ebuild')
-rw-r--r--kde-base/pykde4/pykde4-4.6.49.9999.ebuild94
1 files changed, 94 insertions, 0 deletions
diff --git a/kde-base/pykde4/pykde4-4.6.49.9999.ebuild b/kde-base/pykde4/pykde4-4.6.49.9999.ebuild
new file mode 100644
index 00000000000..ac6ed420625
--- /dev/null
+++ b/kde-base/pykde4/pykde4-4.6.49.9999.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+KMNAME="kdebindings"
+if [[ ${PV} != *9999 ]]; then
+ KMMODULE="python/pykde4"
+else
+ # HACK HACK HACK
+ KMMODULE="."
+fi
+OPENGL_REQUIRED="always"
+PYTHON_USE_WITH="threads"
+RESTRICT_PYTHON_ABIS="2.4"
+KDE_SCM="git"
+EGIT_REPONAME="pykde4"
+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
+ >=dev-python/sip-4.12
+ $(add_kdebase_dep kdelibs 'opengl,semantic-desktop=')
+ semantic-desktop? ( $(add_kdebase_dep kdepimlibs 'semantic-desktop') )
+ aqua? ( >=dev-python/PyQt4-4.8.2[dbus,declarative,sql,svg,webkit,aqua] )
+ !aqua? ( >=dev-python/PyQt4-4.8.2[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 ${KMMODULE}/CMakeLists.txt \
+ || die "Failed to disable examples"
+ fi
+
+ # See bug 322351
+ use arm && epatch "${FILESDIR}/${PN}-4.4.4-arm-sip.patch"
+}
+
+src_configure() {
+ # Required for KTabWidget::label
+ append-cxxflags -DKDE3_SUPPORT
+
+ mycmakeargs=(
+ -DWITH_PolkitQt=OFF
+ -DWITH_QScintilla=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}/${KMMODULE}/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 "${EPREFIX}/usr/share/apps/${PN}/examples"
+ echo
+ fi
+}
+
+pkg_postrm() {
+ kde4-meta_pkg_postrm
+
+ python_mod_cleanup PyKDE4 PyQt4
+}