mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
added extra/qtscriptgenerator
This commit is contained in:
parent
db71e7cae9
commit
0a174eae1b
4 changed files with 192 additions and 0 deletions
50
extra/qtscriptgenerator/PKGBUILD
Normal file
50
extra/qtscriptgenerator/PKGBUILD
Normal file
|
@ -0,0 +1,50 @@
|
|||
# $Id: PKGBUILD 158023 2012-05-01 07:24:53Z andrea $
|
||||
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
|
||||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - fix ARM FTBFS
|
||||
|
||||
pkgname=qtscriptgenerator
|
||||
pkgver=0.2.0
|
||||
pkgrel=1
|
||||
pkgdesc="A tool that generates Qt bindings for Qt Script"
|
||||
arch=("i686" "x86_64")
|
||||
url="https://code.google.com/p/qtscriptgenerator/"
|
||||
license=('GPL')
|
||||
depends=('qtwebkit')
|
||||
makedepends=('pkgconfig' 'mesa')
|
||||
source=("https://qtscriptgenerator.googlecode.com/files/${pkgname}-src-${pkgver}.tar.gz"
|
||||
'phonon.patch'
|
||||
'no-phonon.patch'
|
||||
'upstream_arm_fix_ftbfs.diff')
|
||||
sha1sums=('4c1078f26b196156e857c17c9d11a66cfea66f00'
|
||||
'cca1cd546628a10a91475a82fe12ad2e4066a7d0'
|
||||
'c50b26e6504f5c981a916860d9c3929e436e1067'
|
||||
'049b21e33144b738cd1a62315d251f8e45643804')
|
||||
|
||||
build() {
|
||||
cd "${srcdir}"/$pkgname-src-$pkgver
|
||||
|
||||
patch -p1 -i "${srcdir}"/phonon.patch
|
||||
patch -p1 -i "${srcdir}"/no-phonon.patch
|
||||
patch -p1 -i "${srcdir}"/upstream_arm_fix_ftbfs.diff
|
||||
|
||||
# prepare plugins
|
||||
cd generator
|
||||
qmake
|
||||
make
|
||||
./generator --include-paths=/usr/include
|
||||
|
||||
# build plugins
|
||||
cd "${srcdir}"/$pkgname-src-$pkgver/qtbindings
|
||||
qmake
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}"/$pkgname-src-$pkgver/qtbindings
|
||||
# move plugins to correct directory
|
||||
install -d "${pkgdir}"/usr/lib/qt/plugins/script
|
||||
cp -a "${srcdir}"/$pkgname-src-$pkgver/plugins/script/* \
|
||||
"${pkgdir}"/usr/lib/qt/plugins/script/
|
||||
}
|
34
extra/qtscriptgenerator/no-phonon.patch
Normal file
34
extra/qtscriptgenerator/no-phonon.patch
Normal file
|
@ -0,0 +1,34 @@
|
|||
diff -up qtscriptgenerator-src-0.1.0/generator/build_all.txt.no_phonon qtscriptgenerator-src-0.1.0/generator/build_all.txt
|
||||
--- qtscriptgenerator-src-0.1.0/generator/build_all.txt.no_phonon 2010-10-26 02:53:53.000000000 -0500
|
||||
+++ qtscriptgenerator-src-0.1.0/generator/build_all.txt 2010-12-21 12:43:23.717989854 -0600
|
||||
@@ -6,7 +6,6 @@
|
||||
<load-typesystem name="typesystem_svg.xml" generate="yes" />
|
||||
<load-typesystem name="typesystem_network.xml" generate="yes" />
|
||||
<load-typesystem name="typesystem_xml.xml" generate="yes" />
|
||||
- <load-typesystem name="typesystem_phonon.xml" generate="yes" />
|
||||
<load-typesystem name="typesystem_webkit.xml" generate="yes" />
|
||||
<load-typesystem name="typesystem_xmlpatterns.xml" generate="yes" />
|
||||
<load-typesystem name="typesystem_uitools.xml" generate="yes" />
|
||||
diff -up qtscriptgenerator-src-0.1.0/generator/generate.sh.no_phonon qtscriptgenerator-src-0.1.0/generator/generate.sh
|
||||
--- qtscriptgenerator-src-0.1.0/generator/generate.sh.no_phonon 2010-10-26 02:53:53.000000000 -0500
|
||||
+++ qtscriptgenerator-src-0.1.0/generator/generate.sh 2010-12-21 12:43:23.717989854 -0600
|
||||
@@ -12,8 +12,6 @@ xsltproc --stringparam source $PWD/types
|
||||
|
||||
xsltproc --stringparam source $PWD/typesystem_sql-qtscript.xml merge.xsl typesystem_sql-common.xml > typesystem_sql.xml
|
||||
|
||||
-xsltproc --stringparam source $PWD/typesystem_phonon-qtscript.xml merge.xsl typesystem_phonon-common.xml > typesystem_phonon.xml
|
||||
-
|
||||
xsltproc --stringparam source $PWD/typesystem_webkit-qtscript.xml merge.xsl typesystem_webkit-common.xml > typesystem_webkit.xml
|
||||
|
||||
xsltproc --stringparam source $PWD/typesystem_xmlpatterns-qtscript.xml merge.xsl typesystem_xmlpatterns-common.xml > typesystem_xmlpatterns.xml
|
||||
diff -up qtscriptgenerator-src-0.1.0/qtbindings/qtbindings.pro.no_phonon qtscriptgenerator-src-0.1.0/qtbindings/qtbindings.pro
|
||||
--- qtscriptgenerator-src-0.1.0/qtbindings/qtbindings.pro.no_phonon 2010-10-26 02:53:53.000000000 -0500
|
||||
+++ qtscriptgenerator-src-0.1.0/qtbindings/qtbindings.pro 2010-12-21 12:45:01.010979847 -0600
|
||||
@@ -6,7 +6,6 @@ SUBDIRS = qtscript_core \
|
||||
qtscript_sql \
|
||||
qtscript_svg \
|
||||
qtscript_xml \
|
||||
- qtscript_phonon \
|
||||
qtscript_webkit \
|
||||
qtscript_xmlpatterns \
|
||||
qtscript_uitools \
|
61
extra/qtscriptgenerator/phonon.patch
Normal file
61
extra/qtscriptgenerator/phonon.patch
Normal file
|
@ -0,0 +1,61 @@
|
|||
diff -up qtscriptgenerator-src-0.1.0/generator/qtscript_masterinclude.h.kde_phonon qtscriptgenerator-src-0.1.0/generator/qtscript_masterinclude.h
|
||||
--- qtscriptgenerator-src-0.1.0/generator/qtscript_masterinclude.h.kde_phonon 2010-10-26 02:53:53.000000000 -0500
|
||||
+++ qtscriptgenerator-src-0.1.0/generator/qtscript_masterinclude.h 2010-12-11 17:00:08.456338081 -0600
|
||||
@@ -49,17 +49,46 @@
|
||||
|
||||
#include <QtUiTools/QtUiTools>
|
||||
|
||||
-#ifndef QT_NO_XMLPATTERNS
|
||||
-# include <QtXmlPatterns/QtXmlPatterns>
|
||||
-#endif
|
||||
-
|
||||
-#ifndef QT_NO_WEBKIT
|
||||
-# include <QtWebKit/QtWebKit>
|
||||
-#endif
|
||||
-
|
||||
-#ifndef QT_NO_PHONON
|
||||
-# include <phonon/phonon>
|
||||
-#endif
|
||||
+#include <QtXmlPatterns/QtXmlPatterns>
|
||||
+
|
||||
+#include <QtWebKit/QtWebKit>
|
||||
+
|
||||
+#include "phonon/abstractaudiooutput.h"
|
||||
+#include "phonon/abstractmediastream.h"
|
||||
+#include "phonon/abstractvideooutput.h"
|
||||
+#include "phonon/addoninterface.h"
|
||||
+#include "phonon/audiodataoutput.h"
|
||||
+#include "phonon/audiodataoutputinterface.h"
|
||||
+#include "phonon/audiooutput.h"
|
||||
+#include "phonon/audiooutputinterface.h"
|
||||
+#include "phonon/backendcapabilities.h"
|
||||
+#include "phonon/backendinterface.h"
|
||||
+#include "phonon/effect.h"
|
||||
+#include "phonon/effectinterface.h"
|
||||
+#include "phonon/effectparameter.h"
|
||||
+#include "phonon/effectwidget.h"
|
||||
+#include "phonon/globalconfig.h"
|
||||
+#include "phonon/mediacontroller.h"
|
||||
+#include "phonon/medianode.h"
|
||||
+#include "phonon/mediaobject.h"
|
||||
+#include "phonon/mediaobjectinterface.h"
|
||||
+#include "phonon/mediasource.h"
|
||||
+#include "phonon/objectdescription.h"
|
||||
+#include "phonon/objectdescriptionmodel.h"
|
||||
+#include "phonon/path.h"
|
||||
+#include "phonon/phonon_export.h"
|
||||
+#include "phonon/phonondefs.h"
|
||||
+#include "phonon/phononnamespace.h"
|
||||
+#include "phonon/platformplugin.h"
|
||||
+#include "phonon/pulsesupport.h"
|
||||
+#include "phonon/seekslider.h"
|
||||
+#include "phonon/streaminterface.h"
|
||||
+#include "phonon/videoplayer.h"
|
||||
+#include "phonon/videowidget.h"
|
||||
+#include "phonon/videowidgetinterface.h"
|
||||
+#include "phonon/volumefadereffect.h"
|
||||
+#include "phonon/volumefaderinterface.h"
|
||||
+#include "phonon/volumeslider.h"
|
||||
|
||||
#include "../qtbindings/qtscript_core/qtscriptconcurrent.h"
|
||||
|
47
extra/qtscriptgenerator/upstream_arm_fix_ftbfs.diff
Normal file
47
extra/qtscriptgenerator/upstream_arm_fix_ftbfs.diff
Normal file
|
@ -0,0 +1,47 @@
|
|||
From: Modestas Vainius <modax@debian.org>
|
||||
Subject: Fix FBTFS on arm*
|
||||
Last-Update: 2011-04-24
|
||||
Forwarded: no
|
||||
|
||||
generator gets the signature of QEasingCurve::setCustomType() wrong. What is
|
||||
more, qreal is involved in the signature. qreal is float on arm* so exclude
|
||||
setCustomType(float) methods as well.
|
||||
|
||||
--- a/generator/typesystem_core-common.xml
|
||||
+++ b/generator/typesystem_core-common.xml
|
||||
@@ -921,6 +921,7 @@
|
||||
<value-type name="QEasingCurve">
|
||||
<modify-function signature="customType()const" remove="all" />
|
||||
<modify-function signature="setCustomType(double)" remove="all" />
|
||||
+ <modify-function signature="setCustomType(float)" remove="all" />
|
||||
</value-type>
|
||||
|
||||
<object-type name="QAbstractAnimation" />
|
||||
--- a/generator/typesystem_core.xml
|
||||
+++ b/generator/typesystem_core.xml
|
||||
@@ -1388,14 +1388,12 @@
|
||||
</value-type>
|
||||
|
||||
<value-type name="QEasingCurve">
|
||||
- <modify-function signature="customType()const" remove="all"/>
|
||||
- <modify-function signature="setCustomType(double)" remove="all"/>
|
||||
-
|
||||
<modify-function signature="QEasingCurve(QEasingCurve)" remove="all"/>
|
||||
<modify-function signature="operator=(QEasingCurve)" remove="all"/>
|
||||
<modify-function signature="operator==(const QEasingCurve &)const" remove="all"/>
|
||||
<modify-function signature="operator!=(const QEasingCurve &)const" remove="all"/>
|
||||
<modify-function signature="setCustomType(double)" remove="all"/>
|
||||
+ <modify-function signature="setCustomType(float)" remove="all"/>
|
||||
<modify-function signature="customType()const" remove="all"/>
|
||||
</value-type>
|
||||
|
||||
--- a/generator/typesystem_core-qtscript.xml
|
||||
+++ b/generator/typesystem_core-qtscript.xml
|
||||
@@ -1447,6 +1447,7 @@
|
||||
<modify-function signature="operator==(const QEasingCurve &)const" remove="all"/>
|
||||
<modify-function signature="operator!=(const QEasingCurve &)const" remove="all"/>
|
||||
<modify-function signature="setCustomType(double)" remove="all"/>
|
||||
+ <modify-function signature="setCustomType(float)" remove="all"/>
|
||||
<modify-function signature="customType()const" remove="all"/>
|
||||
</value-type>
|
||||
|
Loading…
Reference in a new issue