commit:     626e983a151a3f1c2e0f348c6de624d8bb97fc9e
Author:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 12 16:02:28 2014 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Thu Jun 12 16:02:28 2014 +0000
URL:        
http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=626e983a

[dev-util/kdevelop-python] Fix build when Python 3 is system default wrt bug 
#512654.

Package-Manager: portage-2.2.10

---
 dev-util/kdevelop-python/kdevelop-python-4.9999.ebuild | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/dev-util/kdevelop-python/kdevelop-python-4.9999.ebuild 
b/dev-util/kdevelop-python/kdevelop-python-4.9999.ebuild
index 0966b15..c9be191 100644
--- a/dev-util/kdevelop-python/kdevelop-python-4.9999.ebuild
+++ b/dev-util/kdevelop-python/kdevelop-python-4.9999.ebuild
@@ -8,7 +8,8 @@ KDEBASE="kdevelop"
 KMNAME="kdev-python"
 KDE_LINGUAS="bs ca ca@valencia da de es fi fr gl it kk nl pt pt_BR sk sl sv uk
 zh_TW"
-inherit kde4-base
+PYTHON_COMPAT=( python2_7 )
+inherit kde4-base python-any-r1
 
 MY_PN="${KMNAME}"
 MY_P="${MY_PN}-${PV}"
@@ -24,14 +25,20 @@ fi
 DESCRIPTION="Python plugin for KDevelop 4"
 IUSE="debug"
 
-DEPEND=">=dev-util/kdevplatform-${PV}:4"
+COMMON_DEPEND=">=dev-util/kdevplatform-${PV}:4"
+DEPEND="${PYTHON_DEPS}"
 RDEPEND="
-       ${DEPEND}
+       ${COMMON_DEPEND}
        dev-util/kdevelop:4
 "
 
 RESTRICT="test"
 
+pkg_setup() {
+       python-any-r1_pkg_setup
+       kde4-base_pkg_setup
+}
+
 src_compile() {
        pushd "${WORKDIR}"/${P}_build > /dev/null
        emake parser

Reply via email to