2011-07-21 23:54:40 +02:00
|
|
|
{ kde, cmake, qt4, automoc4, kdelibs, phonon, python, sip, pyqt4
|
2011-07-22 03:28:09 +02:00
|
|
|
, soprano, kdepimlibs, shared_desktop_ontologies, boost, lndir }:
|
2011-07-21 23:54:40 +02:00
|
|
|
|
|
|
|
kde.package {
|
|
|
|
|
|
|
|
buildInputs =
|
|
|
|
[ cmake kdelibs qt4 automoc4 phonon python sip pyqt4 soprano
|
2011-07-22 03:28:09 +02:00
|
|
|
kdepimlibs shared_desktop_ontologies boost lndir
|
2011-07-21 23:54:40 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-I${phonon}/include/phonon";
|
|
|
|
|
|
|
|
preConfigure =
|
|
|
|
''
|
|
|
|
substituteInPlace CMakeLists.txt \
|
|
|
|
--replace '{SIP_DEFAULT_SIP_DIR}' '{CMAKE_INSTALL_PREFIX}/share/sip'
|
2011-07-22 03:28:09 +02:00
|
|
|
|
2011-07-22 03:54:04 +02:00
|
|
|
# Use an absolute path to open libpython.so.
|
|
|
|
substituteInPlace kpythonpluginfactory/kpythonpluginfactory.cpp \
|
|
|
|
--replace LIB_PYTHON \"$(echo ${python}/lib/libpython*.so.*)\"
|
|
|
|
|
2011-07-22 03:28:09 +02:00
|
|
|
# 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 -p $out/lib/python2.7
|
|
|
|
lndir ${pyqt4}/lib/python2.7 $out/lib/python2.7
|
2011-07-21 23:54:40 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Python bindings for KDE";
|
|
|
|
kde.name = "pykde4";
|
|
|
|
};
|
|
|
|
}
|