commit:     6cb2413c973f08bfe27633ac0d44ae05a48cfaaf
Author:     Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
AuthorDate: Fri Jan 16 23:26:06 2015 +0000
Commit:     Johannes Huber <johu <AT> gentoo <DOT> org>
CommitDate: Sun Jan 18 13:50:01 2015 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=6cb2413c

[kde-apps/pykde5] add initial ebuild

---
 kde-apps/pykde5/metadata.xml       |  5 +++
 kde-apps/pykde5/pykde5-9999.ebuild | 81 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 86 insertions(+)

diff --git a/kde-apps/pykde5/metadata.xml b/kde-apps/pykde5/metadata.xml
new file mode 100644
index 0000000..a23f444
--- /dev/null
+++ b/kde-apps/pykde5/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <herd>kde</herd>
+</pkgmetadata>

diff --git a/kde-apps/pykde5/pykde5-9999.ebuild 
b/kde-apps/pykde5/pykde5-9999.ebuild
new file mode 100644
index 0000000..433fce4
--- /dev/null
+++ b/kde-apps/pykde5/pykde5-9999.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+PYTHON_COMPAT=( python{2_7,3_3,3_4} )
+PYTHON_REQ_USE="threads"
+OPENGL_REQUIRED="always"
+
+inherit python-r1 portability kde5 multilib eutils
+
+DESCRIPTION="Python bindings for KDE Applications 5"
+KEYWORDS=""
+IUSE="doc"
+HOMEPAGE="http://techbase.kde.org/Development/Languages/Python";
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+       $(add_frameworks_dep karchive)
+       $(add_frameworks_dep kauth)
+       $(add_frameworks_dep kcoreaddons)
+       $(add_frameworks_dep kguiaddons)
+       $(add_frameworks_dep kitemmodels)
+       $(add_frameworks_dep kitemviews)
+       $(add_frameworks_dep kplotting)
+       $(add_frameworks_dep kwidgetsaddons)
+       $(add_frameworks_dep sonnet)
+       dev-python/PyQt5[${PYTHON_USEDEP},gui,widgets]
+       >=dev-python/sip-4.16.2:=[${PYTHON_USEDEP}]
+       dev-qt/qtdbus:5
+       dev-qt/qtgui:5
+       dev-qt/qtwidgets:5
+"
+
+DEPEND="${RDEPEND}
+       doc? ( $(add_frameworks_dep kapidox) )
+"
+
+src_prepare() {
+       kde5_src_prepare
+
+       python_copy_sources
+}
+
+src_configure() {
+       configuration() {
+               local mycmakeargs=(
+                       -DPYTHON_EXECUTABLE=${PYTHON}
+               )
+               local CMAKE_BUILD_DIR=${S}_build-${PYTHON_ABI}
+               kde5_src_configure
+       }
+
+       python_foreach_impl run_in_build_dir configuration
+}
+
+src_compile() {
+       compilation() {
+               local CMAKE_BUILD_DIR=${S}_build-${PYTHON_ABI}
+               kde5_src_compile
+       }
+       python_foreach_impl run_in_build_dir compilation
+}
+
+src_test() {
+       python_foreach_impl run_in_build_dir kde5_src_test
+}
+
+src_install() {
+       installation() {
+               emake DESTDIR="${D}" install
+
+               python_optimize
+       }
+       python_foreach_impl run_in_build_dir installation
+
+       # As we don't call the eclass's src_install, we have to install the 
docs manually
+       use doc && HTML_DOCS=("${S}/docs/html/")
+       einstalldocs
+}

Reply via email to