2009-09-11 14:05:23 +02:00
|
|
|
{stdenv, fetchurl, qt4}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "qtscriptgenerator-0.1.0";
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://qtscriptgenerator.googlecode.com/files/qtscriptgenerator-src-0.1.0.tar.gz;
|
|
|
|
sha256 = "0h8zjh38n2wfz7jld0jz6a09y66dbsd2jhm4f2024qfgcmxcabj6";
|
|
|
|
};
|
|
|
|
buildInputs = [ qt4 ];
|
2010-01-17 22:34:55 +01:00
|
|
|
|
|
|
|
patches = [./qtscriptgenerator.gcc-4.4.patch];
|
2009-09-11 14:05:23 +02:00
|
|
|
|
|
|
|
# Why isn't the author providing proper Makefile or a CMakeLists.txt ?
|
|
|
|
buildPhase = ''
|
|
|
|
# remove phonon stuff which causes errors (thanks to Gentoo bug reports)
|
|
|
|
sed -i "/typesystem_phonon.xml/d" generator/generator.qrc
|
|
|
|
sed -i "/qtscript_phonon/d" qtbindings/qtbindings.pro
|
|
|
|
|
|
|
|
cd generator
|
|
|
|
qmake
|
|
|
|
make
|
2010-04-24 11:36:03 +02:00
|
|
|
# Set QTDIR, see http://code.google.com/p/qtscriptgenerator/issues/detail?id=38
|
|
|
|
QTDIR=${qt4} ./generator
|
2009-09-11 14:05:23 +02:00
|
|
|
cd ../qtbindings
|
|
|
|
qmake
|
|
|
|
make
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
cd ..
|
|
|
|
ensureDir $out/lib/qt4/plugins/script
|
|
|
|
cp -av plugins/script/* $out/lib/qt4/plugins/script
|
|
|
|
'';
|
|
|
|
}
|