Currently fetched from google archives, upstream is dead since 2017 and nothing depends on it. It has not received any package updates since its introduction in 2012 (as dependency for Amarok), execept for build/infrastructure changes. amarok-kde4 and thus the dependency was dropped in 2017. qcad uses qtscriptgenerator internally, but it bundles its own copy. See #174634.main
parent
ea8ca72ec5
commit
d79afaff6a
@ -1,51 +0,0 @@ |
||||
{ lib, stdenv, fetchurl, qt4 }: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "qtscriptgenerator"; |
||||
version = "0.1.0"; |
||||
|
||||
src = fetchurl { |
||||
url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/qtscriptgenerator/qtscriptgenerator-src-${version}.tar.gz"; |
||||
sha256 = "0h8zjh38n2wfz7jld0jz6a09y66dbsd2jhm4f2024qfgcmxcabj6"; |
||||
}; |
||||
buildInputs = [ qt4 ]; |
||||
|
||||
patches = [ ./qtscriptgenerator.gcc-4.4.patch ./qt-4.8.patch ]; |
||||
|
||||
postPatch = '' |
||||
# 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 |
||||
''; |
||||
|
||||
configurePhase = '' |
||||
( cd generator; qmake ) |
||||
( cd qtbindings; qmake ) |
||||
''; |
||||
|
||||
buildPhase = '' |
||||
makeFlags="SHELL=$SHELL ''${enableParallelBuilding:+-j$NIX_BUILD_CORES -l$NIX_BUILD_CORES}" |
||||
make $makeFlags -C generator |
||||
|
||||
# Set QTDIR, see https://code.google.com/archive/p/qtscriptgenerator/issues/38 |
||||
( cd generator; QTDIR=${qt4} ./generator ) |
||||
make $makeFlags -C qtbindings |
||||
''; |
||||
|
||||
installPhase = '' |
||||
mkdir -p $out/lib/qt4/plugins/script |
||||
cp -av plugins/script/* $out/lib/qt4/plugins/script |
||||
''; |
||||
|
||||
enableParallelBuilding = true; |
||||
|
||||
hardeningDisable = [ "format" ]; |
||||
|
||||
meta = { |
||||
broken = (stdenv.isLinux && stdenv.isAarch64); |
||||
description = "QtScript bindings generator"; |
||||
homepage = "https://code.qt.io/cgit/qt-labs/qtscriptgenerator.git/"; |
||||
inherit (qt4.meta) platforms; |
||||
license = lib.licenses.lgpl21; |
||||
}; |
||||
} |
@ -1,23 +0,0 @@ |
||||
Origin: http://src.fedoraproject.org/gitweb/?p=qtscriptgenerator.git;a=blob_plain;f=qtscriptgenerator-src-0.1.0-no_QFileOpenEvent.patch;h=f397b5ab13bcfc268e6d7b7ba4c6bc66ae38b5c0;hb=HEAD
|
||||
diff -up qtscriptgenerator-src-0.1.0/generator/typesystem_gui-common.xml.no_QFileOpenEvent qtscriptgenerator-src-0.1.0/generator/typesystem_gui-common.xml
|
||||
--- qtscriptgenerator-src-0.1.0/generator/typesystem_gui-common.xml.no_QFileOpenEvent 2011-12-22 11:34:52.615149619 -0600
|
||||
+++ qtscriptgenerator-src-0.1.0/generator/typesystem_gui-common.xml 2011-12-22 11:35:31.808659632 -0600
|
||||
@@ -2233,7 +2233,6 @@
|
||||
|
||||
|
||||
</object-type>
|
||||
- <object-type name="QFileOpenEvent" polymorphic-id-expression="%1->type() == QEvent::FileOpen"/>
|
||||
<object-type name="QFocusEvent" polymorphic-id-expression="%1->type() == QEvent::FocusIn || %1->type() == QEvent::FocusOut">
|
||||
<modify-function signature="reason()const">
|
||||
<remove/>
|
||||
diff -up qtscriptgenerator-src-0.1.0/generator/typesystem_gui.xml.no_QFileOpenEvent qtscriptgenerator-src-0.1.0/generator/typesystem_gui.xml
|
||||
--- qtscriptgenerator-src-0.1.0/generator/typesystem_gui.xml.no_QFileOpenEvent 2009-02-20 05:42:24.000000000 -0600
|
||||
+++ qtscriptgenerator-src-0.1.0/generator/typesystem_gui.xml 2011-12-22 11:33:43.058019203 -0600
|
||||
@@ -2555,7 +2555,6 @@
|
||||
|
||||
|
||||
</object-type>
|
||||
- <object-type name="QFileOpenEvent" polymorphic-id-expression="%1->type() == QEvent::FileOpen"/>
|
||||
<object-type name="QFocusEvent" polymorphic-id-expression="%1->type() == QEvent::FocusIn || %1->type() == QEvent::FocusOut">
|
||||
<modify-function signature="reason()const">
|
||||
<remove/>
|
@ -1,11 +0,0 @@ |
||||
diff -uNr generator.orig/parser/rpp/pp.h generator/parser/rpp/pp.h
|
||||
--- qtscriptgenerator-src-0.1.0/generator.orig/parser/rpp/pp.h 2008-12-05 11:01:44.000000000 +0100
|
||||
+++ qtscriptgenerator-src-0.1.0/generator/parser/rpp/pp.h 2008-12-13 10:42:22.000000000 +0100
|
||||
@@ -30,6 +30,7 @@
|
||||
#include <cctype>
|
||||
|
||||
#include <fcntl.h>
|
||||
+#include <cstdio>
|
||||
|
||||
#ifdef HAVE_MMAP
|
||||
# include <sys/mman.h>
|
Loading…
Reference in new issue