2013-04-21 04:46:18 +02:00
|
|
|
{ kde, kdelibs, python, sip, pyqt4, kdepimlibs, shared_desktop_ontologies,
|
2013-05-07 16:22:26 +02:00
|
|
|
polkit_qt_1, boost, lndir, pkgconfig }:
|
2013-04-21 04:46:18 +02:00
|
|
|
|
|
|
|
let pydir = "lib/python${python.majorVersion}"; in
|
|
|
|
|
|
|
|
kde {
|
2013-05-06 16:26:51 +02:00
|
|
|
|
|
|
|
# todo: polkit isn't found by the build system
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
python kdepimlibs shared_desktop_ontologies
|
2013-05-07 16:22:26 +02:00
|
|
|
boost polkit_qt_1 pkgconfig
|
2013-05-06 16:26:51 +02:00
|
|
|
];
|
2013-04-21 04:46:18 +02:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ pyqt4 sip ];
|
|
|
|
|
|
|
|
# patches = [ ./pykde4-hardcode-lib-python.patch ];
|
2013-05-06 16:26:51 +02:00
|
|
|
# cmakeFlags = "-DHARDCODE_LIB_PYTHON_PATH=ON ";
|
2013-04-21 04:46:18 +02:00
|
|
|
|
|
|
|
preConfigure =
|
|
|
|
''
|
|
|
|
# Symlink PyQt into PyKDE. This is necessary because PyQt looks
|
|
|
|
# in its PyQt4/uic/widget-plugins directory for plugins, and KDE
|
|
|
|
# needs to install a plugin.
|
|
|
|
mkdir -pv $out/${pydir}
|
|
|
|
${lndir}/bin/lndir ${pyqt4}/${pydir} $out/${pydir}
|
|
|
|
cmakeFlagsArray=( "-DSIP_DEFAULT_SIP_DIR=$prefix/share/sip" )
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Python bindings for KDE";
|
|
|
|
kde.name = "pykde4";
|
|
|
|
};
|
|
|
|
}
|