2010-08-29 23:20:38 +02:00
|
|
|
{ kde, lib, cmake, perl, python, sip, pyqt4, zlib, libpng, freetype, fontconfig, qt4, boost
|
2010-08-02 19:18:23 +02:00
|
|
|
, kdelibs, kdepimlibs, automoc4, soprano, akonadi, attica, polkit_qt_1, ruby
|
|
|
|
}:
|
|
|
|
|
|
|
|
# This function will only build the pykde4 module. I don't need the other bindings and
|
|
|
|
# some bindings are even broken.
|
|
|
|
|
2010-08-29 23:20:38 +02:00
|
|
|
kde.package rec {
|
2010-08-02 19:18:23 +02:00
|
|
|
patches = [ ./python-site-packages-install-dir.diff ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
CUSTOM_RUBY_SITE_ARCH_DIR=$(ruby -r rbconfig -e "print Config::CONFIG['sitearchdir']" | sed -e "s@${ruby}@$out@")
|
|
|
|
CUSTOM_RUBY_SITE_LIB_DIR=$(ruby -r rbconfig -e "print Config::CONFIG['sitelibdir']" | sed -e "s@${ruby}@$out@")
|
2010-08-10 20:08:31 +02:00
|
|
|
CUSTOM_PERL_SITE_ARCH_DIR=$(perl -MConfig -e 'print $Config{sitearch}' | sed -e "s@${perl}@$out@")
|
2010-08-29 23:20:38 +02:00
|
|
|
cmakeFlagsArray+=(
|
2010-08-10 20:08:31 +02:00
|
|
|
-DSIP_DEFAULT_SIP_DIR=$out/share/sip
|
2010-08-02 19:18:23 +02:00
|
|
|
-DCUSTOM_RUBY_SITE_ARCH_DIR=$CUSTOM_RUBY_SITE_ARCH_DIR
|
2010-08-10 20:08:31 +02:00
|
|
|
-DCUSTOM_RUBY_SITE_LIB_DIR=$CUSTOM_RUBY_SITE_LIB_DIR
|
|
|
|
-DCUSTOM_PERL_SITE_ARCH_DIR=$CUSTOM_PERL_SITE_ARCH_DIR
|
|
|
|
)
|
2010-08-02 19:18:23 +02:00
|
|
|
'';
|
|
|
|
|
2010-08-20 23:37:56 +02:00
|
|
|
# TODO: okular, qimageblitz, qwt5, qscintilla2, c#
|
2010-08-02 19:18:23 +02:00
|
|
|
buildInputs = [ cmake perl python sip pyqt4 zlib libpng freetype fontconfig qt4 boost
|
2010-08-10 20:08:31 +02:00
|
|
|
kdelibs kdepimlibs automoc4 soprano akonadi attica polkit_qt_1 ruby ];
|
2010-08-02 19:18:23 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "KDE bindings";
|
|
|
|
longDescription = "Provides KDE bindings for several languages such as Java, Smoke and Python";
|
|
|
|
license = "LGPL";
|
2010-08-29 23:20:38 +02:00
|
|
|
kde = {
|
|
|
|
name = "kdebindings";
|
2010-10-17 20:44:39 +02:00
|
|
|
version = "4.5.2";
|
2010-08-29 23:20:38 +02:00
|
|
|
};
|
2010-08-02 19:18:23 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|