# $Id$ PNAME="pykde4" PVER="4.14.3" PBUILD="r3" PCAT="dev-python" DESCRIPTION="KDE4 Kross scripting framework: Python interpreter." DEPEND="== kde-base/kdepimlibs-${PVER} >= dev-lang/python-2.7 >= dev-python/qscintilla-qt4-2.8 >= dev-python/pyqt4-4.11 >= dev-libs/polkit-qt-0.112" SDEPEND=">= dev-libs/boost-1.57" # keep the '4' in the pname SRCFILE="${PNAME}-${PVER}.tar.xz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" # pull in kde4 as last to get kde's {pre,post}install {pre,post}remove sminclude python kde4 kde4_add_nepomuk_depend "DEPEND" ">= dev-libs/soprano-2.9" kde4_add_nepomuk_depend "DEPEND" ">= dev-libs/shared-desktop-ontologies-0.11" SRC_URI+=( mirror://${PNAME}/${PNAME}-4.13.97-use_system_sip_dir.patch mirror://${PNAME}/${PNAME}-4.12.3-python_library_realpath.patch ) src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # hard-codes sip path to /usr/share/sip, instead of respecting system path mpatch ${PNAME}-4.13.97-use_system_sip_dir.patch || die # fix libpython pathes # FindPythonLibs.cmake returns libpython2.7.so instead of libpython2.7.so.1.0 # see: https://bugzilla.redhat.com/show_bug.cgi?id=1050944 mpatch ${PNAME}-4.12.3-python_library_realpath.patch || die } src_compile() { cd ${SRCDIR} kde4_configure -DPYQT4_SIP_DIR=/usr/share/sip || die mmake || die }