2016-04-17 00:49:29 +01:00
|
|
|
{ stdenv, fetchurl, qt4 }:
|
2009-09-11 13:05:23 +01:00
|
|
|
|
|
|
|
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 21:34:55 +00:00
|
|
|
|
2012-02-20 05:27:57 +00:00
|
|
|
patches = [ ./qtscriptgenerator.gcc-4.4.patch ./qt-4.8.patch ];
|
2016-02-11 01:36:07 +00:00
|
|
|
|
2009-09-11 13:05:23 +01: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
|
2016-02-11 01:36:07 +00:00
|
|
|
sed -i "/qtscript_phonon/d" qtbindings/qtbindings.pro
|
|
|
|
|
2009-09-11 13:05:23 +01:00
|
|
|
cd generator
|
|
|
|
qmake
|
|
|
|
make
|
2010-04-24 10:36:03 +01:00
|
|
|
# Set QTDIR, see http://code.google.com/p/qtscriptgenerator/issues/detail?id=38
|
|
|
|
QTDIR=${qt4} ./generator
|
2009-09-11 13:05:23 +01:00
|
|
|
cd ../qtbindings
|
|
|
|
qmake
|
|
|
|
make
|
|
|
|
'';
|
2016-02-11 01:36:07 +00:00
|
|
|
|
2009-09-11 13:05:23 +01:00
|
|
|
installPhase = ''
|
|
|
|
cd ..
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/lib/qt4/plugins/script
|
2009-09-11 13:05:23 +01:00
|
|
|
cp -av plugins/script/* $out/lib/qt4/plugins/script
|
|
|
|
'';
|
2012-01-05 23:16:12 +00:00
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-11 01:36:07 +00:00
|
|
|
|
2012-01-05 23:16:12 +00:00
|
|
|
meta = {
|
|
|
|
description = "QtScript bindings generator";
|
|
|
|
homepage = http://code.google.com/p/qtscriptgenerator/;
|
|
|
|
inherit (qt4.meta) platforms;
|
2017-03-27 18:11:17 +01:00
|
|
|
maintainers = [ ];
|
2012-01-05 23:16:12 +00:00
|
|
|
};
|
2009-09-11 13:05:23 +01:00
|
|
|
}
|