2010-02-13 15:02:07 +01:00
|
|
|
{ stdenv, fetchurl, lib, cmake, perl, python, sip, pyqt4, zlib, libpng, freetype, fontconfig, qt4, boost
|
|
|
|
, kdelibs, kdepimlibs, automoc4, phonon, soprano, akonadi, qimageblitz, attica, polkit_qt
|
|
|
|
}:
|
2010-02-10 16:06:50 +01:00
|
|
|
|
|
|
|
# This function will only build the pykde4 module. I don't need the other bindings and
|
|
|
|
# some bindings are even broken.
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2010-07-02 22:46:42 +02:00
|
|
|
name = "kdebindings-4.4.5";
|
2010-07-20 01:24:37 +02:00
|
|
|
|
2010-02-10 16:06:50 +01:00
|
|
|
src = fetchurl {
|
2010-07-02 22:46:42 +02:00
|
|
|
url = mirror://kde/stable/4.4.5/src/kdebindings-4.4.5.tar.bz2;
|
|
|
|
sha256 = "0l8lk8vl68jc82lai4ljlm9ph53q4fn0ki0jq45lizdmqjgvahy4";
|
2010-02-10 16:06:50 +01:00
|
|
|
};
|
2010-07-20 01:24:37 +02:00
|
|
|
|
|
|
|
patches =
|
|
|
|
[ (fetchurl {
|
|
|
|
url = "http://bugs.gentoo.org/attachment.cgi?id=238975";
|
|
|
|
sha256 = "0vng8j8fhbq5ys8hy0bcvi6x2bym9j65dh61m2c1dr3z7rsx2bqb";
|
|
|
|
})
|
|
|
|
];
|
2010-02-13 15:02:07 +01:00
|
|
|
|
|
|
|
# Disable smoke because I don't need it and gives us an error
|
|
|
|
cmakeFlags = [ "-DENABLE_SMOKE=OFF" ];
|
2010-02-13 16:37:06 +01:00
|
|
|
preConfigure = ''
|
|
|
|
cmakeFlags="$cmakeFlags -DPYTHON_SITE_PACKAGES_DIR=$out/lib/${python.libPrefix}/site-packages"
|
|
|
|
cmakeFlags="$cmakeFlags -DSIP_DEFAULT_SIP_DIR=$out/share/sip"
|
|
|
|
'';
|
2010-02-13 15:02:07 +01:00
|
|
|
|
|
|
|
# Okular seems also an optional depenedency which I left out
|
|
|
|
buildInputs = [ cmake perl python sip pyqt4 zlib libpng freetype fontconfig qt4 boost
|
|
|
|
kdelibs kdepimlibs automoc4 phonon soprano akonadi qimageblitz attica polkit_qt ];
|
2010-02-10 16:06:50 +01:00
|
|
|
meta = {
|
|
|
|
description = "KDE bindings";
|
|
|
|
longDescription = "Provides KDE bindings for several languages such as Java, Smoke and Python";
|
|
|
|
license = "LGPL";
|
|
|
|
homepage = http://www.kde.org;
|
2010-08-03 15:11:58 +02:00
|
|
|
inherit (kdelibs.meta) maintainers platforms;
|
2010-02-10 16:06:50 +01:00
|
|
|
};
|
|
|
|
}
|