diff options
author | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2011-07-12 11:21:01 -0300 |
---|---|---|
committer | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2011-07-12 11:21:01 -0300 |
commit | b337b14a9cce5d126d55695c97698484ac52a8ea (patch) | |
tree | 8aa6281e14d6bd9b0876ae0e641d76de9e51cce0 /extra/qtiplot | |
parent | 66873986693bc3c8812d12f3919f1977b9a30674 (diff) | |
parent | 079c689ef9b252fd82dbf9b182ec2517c48f8737 (diff) |
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts:
community/conkeror-git/PKGBUILD
community/spidermonkey/PKGBUILD
core/gcc/PKGBUILD
extra/file-roller/PKGBUILD
extra/pixman/PKGBUILD
extra/poppler/PKGBUILD
extra/qtiplot/PKGBUILD
extra/xulrunner/PKGBUILD
extra/xulrunner/xulrunner-omnijar.patch
kde-unstable/akonadi/PKGBUILD
multilib-testing/lib32-mesa/PKGBUILD
multilib/gcc-multilib/PKGBUILD
testing/mesa/PKGBUILD
Diffstat (limited to 'extra/qtiplot')
-rw-r--r-- | extra/qtiplot/PKGBUILD | 47 | ||||
-rw-r--r-- | extra/qtiplot/build.conf.archlinux | 2 | ||||
-rw-r--r-- | extra/qtiplot/gentoo-fix-origin-build-failure.patch | 72 | ||||
-rw-r--r-- | extra/qtiplot/qtiplot-0.9.7.14-system-liborigin.patch | 101 | ||||
-rw-r--r-- | extra/qtiplot/qtiplot-0.9.8.6-gold.patch | 15 | ||||
-rw-r--r-- | extra/qtiplot/qtiplot-0.9.8.6-kde.patch | 15 | ||||
-rw-r--r-- | extra/qtiplot/qtiplot-0.9.8.6-tamuanova.patch | 26 |
7 files changed, 88 insertions, 190 deletions
diff --git a/extra/qtiplot/PKGBUILD b/extra/qtiplot/PKGBUILD index 609c7fc6b..c8dc0758c 100644 --- a/extra/qtiplot/PKGBUILD +++ b/extra/qtiplot/PKGBUILD @@ -1,15 +1,15 @@ -# $Id: PKGBUILD 112432 2011-03-04 22:39:07Z eric $ +# $Id: PKGBUILD 131207 2011-07-11 21:16:26Z ronald $ # Maintainer: Ronald van Haren <ronald.archlinux.org> # Contributor: damir <damir.archlinux.org> # Contributor: Gergely Imreh <imrehg@gmail.com> pkgname=qtiplot -pkgver=0.9.8.2 -pkgrel=6 -pkgdesc="Data analysis and scientific plotting - free clone of Origin" +pkgver=0.9.8.6 +pkgrel=1 arch=('i686' 'x86_64' 'mips64el') url="http://soft.proindependent.com/qtiplot.html" -depends=('muparser' 'gsl' 'python2-qt' 'boost-libs' 'shared-mime-info' 'mesa' 'liborigin2' 'qt-assistant-compat') +pkgdesc="Data analysis and scientific plotting - free clone of Origin" +depends=('muparser' 'gsl' 'python2-qt' 'boost-libs' 'shared-mime-info' 'mesa' 'liborigin2' 'qt-assistant-compat' 'tamu-anova') # build against qwtplot3d provided in the package ... # build against qwt provided in the package ... # as systemwide one doesn't provide all needed functions @@ -22,21 +22,32 @@ source=(http://download.berlios.de/qtiplot/qtiplot-${pkgver}.tar.bz2 build.conf.archlinux qwtplot3d_gcc.patch qtiplot.xml - qtiplot-0.9.7.14-system-liborigin.patch - gentoo-fix-origin-build-failure.patch) -md5sums=('e8335a8760e8c2ac044607d5a4bb80ca' '56bd53f4f1367c285086acb969f13348'\ - 'ad8affbd6f0d5cbdcde46c923ee2668a' '4fc37151dc30d5ca36fd7d891a8bc41b'\ - 'ab02c436ec2c04b1838cb5517383b4eb' '35683f3b32e1edcca0bb02c471d284e9'\ - 'fa7cfc5ba60d28f264ad53869d31fcc8' '642cb38c6579b51b86834c8640130b6f') -sha1sums=('dd8d1003cee8767d4ba9e616e5263da1302c290d' '4d5d7cf3965a0a1b1aa9cafc34e70ee207700bc8'\ - '4301cb2a36024a10108b689990d28c4fe5c7416e' '7afcdd4eca157f55e3ec4276712c466b3dc05106'\ - '301bf6f70e8c1bb9ffd55eb49eedde7b29a12909' '285f57d865956d93250ec548288c5bface096b6b'\ - '86899322f259be8594399642170f3f642d7f5f75' '9d6373fd9c0d1061796d1b920981124b6e9a49cf') + qtiplot-0.9.8.6-gold.patch + qtiplot-0.9.8.6-kde.patch + qtiplot-0.9.8.6-tamuanova.patch) +sha1sums=('e8a5ea1e1fb0e87cf76985f63b25e263b03f5fa9' + '4d5d7cf3965a0a1b1aa9cafc34e70ee207700bc8' + '4301cb2a36024a10108b689990d28c4fe5c7416e' + 'b3af6c866b3e63b537b418b6d00e57ef468f8f2b' + '301bf6f70e8c1bb9ffd55eb49eedde7b29a12909' + '285f57d865956d93250ec548288c5bface096b6b' + 'b534a609f317cf3117d6495909854cdacea20124' + 'a1d4bec744c9b8fe29bf177851e66c97cdd9d975' + '830b518e3ef63625df84363a8047417124f243b0') + build() { cd "${srcdir}/${pkgname}-${pkgver}" - patch -Np0 -i "${srcdir}/qtiplot-0.9.7.14-system-liborigin.patch" - patch -Np0 -i "${srcdir}/gentoo-fix-origin-build-failure.patch" + + # gentoo fixes + patch -Np1 -i "${srcdir}/qtiplot-0.9.8.6-gold.patch" + patch -Np1 -i "${srcdir}/qtiplot-0.9.8.6-kde.patch" + patch -Np1 -i "${srcdir}/qtiplot-0.9.8.6-tamuanova.patch" + + # build also static qwtplot3d lib + echo "unix:CONFIG += staticlib" >> 3rdparty/qwtplot3d/qwtplot3d.pro + + # install build configuration file install -Dm644 "${srcdir}/build.conf.archlinux" build.conf # Make qwt @@ -76,3 +87,5 @@ package() { install -D -m644 "${srcdir}/${pkgname}.xml" \ "${pkgdir}/usr/share/mime/packages/${pkgname}.xml" } + + diff --git a/extra/qtiplot/build.conf.archlinux b/extra/qtiplot/build.conf.archlinux index 2cab47f9c..342377578 100644 --- a/extra/qtiplot/build.conf.archlinux +++ b/extra/qtiplot/build.conf.archlinux @@ -16,6 +16,8 @@ QWT3D_LIBS = $$QTI_ROOT/3rdparty/qwtplot3d/lib/libqwtplot3d.a LIB_ORIGIN_INCLUDEPATH = /usr/include/liborigin2 LIB_ORIGIN_LIBS = -lorigin2 QTEXENGINE_LIBS = $$QTI_ROOT/3rdparty/QTeXEngine +TAMUANOVA_LIBS = -ltamuanova +TAMUANOVA_INCLUDEPATH = /usr/include/tamu_anova PYTHON = python2 LUPDATE = lupdate diff --git a/extra/qtiplot/gentoo-fix-origin-build-failure.patch b/extra/qtiplot/gentoo-fix-origin-build-failure.patch deleted file mode 100644 index 931d87009..000000000 --- a/extra/qtiplot/gentoo-fix-origin-build-failure.patch +++ /dev/null @@ -1,72 +0,0 @@ ---- qtiplot/src/origin/importOPJ.cpp 2010-09-01 11:07:38 +0000 -+++ qtiplot/src/origin/importOPJ.cpp 2010-09-07 10:12:30 +0000 -@@ -473,6 +473,8 @@ - } - table->setDayFormat(format, j); - break; -+ default: -+ break; - } - table->freeMemory(); - } -@@ -720,7 +722,6 @@ - bkg.setAlpha(0); - graph->setCanvasBackground(bkg); - -- int auto_color = -1; - int style = 0; - bool matrixImage = false; - for(unsigned int c = 0; c < layer.curves.size(); ++c){ -@@ -1461,7 +1462,7 @@ - - if (boxWhiskersPlot){ - QStringList curveNames; -- for (unsigned int i = 0; i < graph->curveCount(); i++){ -+ for (int i = 0; i < graph->curveCount(); i++){ - BoxCurve *box = (BoxCurve *)graph->curve(i); - if (!box || box->type() != Graph::Box) - continue; -@@ -1659,7 +1660,6 @@ - for(unsigned int c = 0; c < layer.curves.size(); ++c){ - Origin::GraphCurve& _curve = layer.curves[c]; - QString data(_curve.dataName.c_str()); -- int color = 0; - double fFontScaleFactor = 2.0; - switch(_curve.type){ - case Origin::GraphCurve::Line3D: -@@ -1809,7 +1809,6 @@ - } - - QStringList formulas; -- double start, end; - - plot->showColorLegend(false); - plot->setFramed(); -@@ -1951,8 +1950,8 @@ - - QList <PieLabel *> pieTexts = p->labelsList(); - QFont font(mw->plotLegendFont); -- unsigned int lsize = layer.pieTexts.size(); -- for(unsigned int i = 0; i < lsize && i < pieTexts.size(); ++i){ -+ int lsize = layer.pieTexts.size(); -+ for(int i = 0; i < lsize && i < pieTexts.size(); ++i){ - Origin::TextBox text = layer.pieTexts[lsize - i - 1]; - font.setPointSizeF(text.fontSize*fFontScaleFactor); - QFontMetrics fm(font, graph); -@@ -2159,12 +2158,12 @@ - line.replace("&lbracket;", "("); - line.replace("&rbracket;", ")"); - -- QRegExp fontModifier("\p(\\d)+\\(.*\\)");//remove \p163(...) like tags -+ QRegExp fontModifier("\\\\p(\\d)+\\(.*\\)");//remove \p163(...) like tags - int index = line.indexOf(fontModifier); - while (index >= 0){ - int pos1 = line.indexOf("(", index + 2) + 1; - int length = fontModifier.matchedLength(); -- line = line.mid(pos1, length - pos1); -+ line = line.mid(pos1, length - pos1 - 1); - index = line.indexOf(fontModifier, index + length); - } - - - diff --git a/extra/qtiplot/qtiplot-0.9.7.14-system-liborigin.patch b/extra/qtiplot/qtiplot-0.9.7.14-system-liborigin.patch deleted file mode 100644 index 71ecfd5b0..000000000 --- a/extra/qtiplot/qtiplot-0.9.7.14-system-liborigin.patch +++ /dev/null @@ -1,101 +0,0 @@ -=== modified file 'build.conf.example' ---- build.conf.example 2010-04-22 18:57:40 +0000 -+++ build.conf.example 2010-04-22 18:58:06 +0000 -@@ -118,6 +118,14 @@ - EMF_ENGINE_LIBS = $$QTI_ROOT/3rdparty/EmfEngine/libEmfEngine.a - - ########################################################## -+## liborigin - keep commented if you wish to use local copy -+# http://sourceforge.net/projects/liborigin/ -+########################################################## -+ -+# LIB_ORIGIN_INCLUDEPATH = /usr/include/liborigin2 -+# LIB_ORIGIN_LIBS = -lorigin2 -+ -+########################################################## - ## python - only used if python is needed - ########################################################## - - -=== modified file 'qtiplot/qtiplot.pro' ---- qtiplot/qtiplot.pro 2010-04-22 18:57:40 +0000 -+++ qtiplot/qtiplot.pro 2010-04-22 19:08:57 +0000 -@@ -16,6 +16,7 @@ - INCLUDEPATH += $$QWT_INCLUDEPATH - INCLUDEPATH += $$QWT3D_INCLUDEPATH - INCLUDEPATH += $$GSL_INCLUDEPATH -+INCLUDEPATH += $$LIB_ORIGIN_INCLUDEPATH - - # configurable libs - LIBS += $$MUPARSER_LIBS -@@ -23,6 +24,7 @@ - LIBS += $$QWT3D_LIBS - LIBS += $$QTEXENGINE_LIBS - LIBS += $$GSL_LIBS -+LIBS += $$LIB_ORIGIN_LIBS - - ############################################################################# - ###################### BASIC PROJECT PROPERTIES ############################# -@@ -150,6 +152,10 @@ - SOURCES += ../3rdparty/QTeXEngine/src/QTeXPaintDevice.cpp - } - -+isEmpty(LIB_ORIGIN_LIBS) { -+ INCLUDEPATH += ../3rdparty/liborigin -+} -+ - ############################################################### - ##################### Scripting: PYTHON + SIP + PyQT ########## - ############################################################### - -=== modified file 'qtiplot/src/origin/origin.pri' ---- qtiplot/src/origin/origin.pri 2010-04-22 17:58:49 +0000 -+++ qtiplot/src/origin/origin.pri 2010-04-22 19:08:15 +0000 -@@ -4,24 +4,28 @@ - INCLUDEPATH += src/origin/ - - HEADERS += src/origin/importOPJ.h --HEADERS += ../3rdparty/liborigin/OriginObj.h --HEADERS += ../3rdparty/liborigin/OriginFile.h --HEADERS += ../3rdparty/liborigin/OriginParser.h --HEADERS += ../3rdparty/liborigin/OriginDefaultParser.h --HEADERS += ../3rdparty/liborigin/Origin600Parser.h --HEADERS += ../3rdparty/liborigin/Origin610Parser.h --HEADERS += ../3rdparty/liborigin/Origin700Parser.h --HEADERS += ../3rdparty/liborigin/Origin750Parser.h --HEADERS += ../3rdparty/liborigin/Origin800Parser.h --HEADERS += ../3rdparty/liborigin/Origin810Parser.h - - SOURCES += src/origin/importOPJ.cpp --SOURCES += ../3rdparty/liborigin/OriginFile.cpp --SOURCES += ../3rdparty/liborigin/OriginParser.cpp --SOURCES += ../3rdparty/liborigin/OriginDefaultParser.cpp --SOURCES += ../3rdparty/liborigin/Origin600Parser.cpp --SOURCES += ../3rdparty/liborigin/Origin610Parser.cpp --SOURCES += ../3rdparty/liborigin/Origin700Parser.cpp --SOURCES += ../3rdparty/liborigin/Origin750Parser.cpp --SOURCES += ../3rdparty/liborigin/Origin800Parser.cpp --SOURCES += ../3rdparty/liborigin/Origin810Parser.cpp -+ -+isEmpty(LIB_ORIGIN_LIBS) { -+ HEADERS += ../3rdparty/liborigin/OriginObj.h -+ HEADERS += ../3rdparty/liborigin/OriginFile.h -+ HEADERS += ../3rdparty/liborigin/OriginParser.h -+ HEADERS += ../3rdparty/liborigin/OriginDefaultParser.h -+ HEADERS += ../3rdparty/liborigin/Origin600Parser.h -+ HEADERS += ../3rdparty/liborigin/Origin610Parser.h -+ HEADERS += ../3rdparty/liborigin/Origin700Parser.h -+ HEADERS += ../3rdparty/liborigin/Origin750Parser.h -+ HEADERS += ../3rdparty/liborigin/Origin800Parser.h -+ HEADERS += ../3rdparty/liborigin/Origin810Parser.h -+ -+ SOURCES += ../3rdparty/liborigin/OriginFile.cpp -+ SOURCES += ../3rdparty/liborigin/OriginParser.cpp -+ SOURCES += ../3rdparty/liborigin/OriginDefaultParser.cpp -+ SOURCES += ../3rdparty/liborigin/Origin600Parser.cpp -+ SOURCES += ../3rdparty/liborigin/Origin610Parser.cpp -+ SOURCES += ../3rdparty/liborigin/Origin700Parser.cpp -+ SOURCES += ../3rdparty/liborigin/Origin750Parser.cpp -+ SOURCES += ../3rdparty/liborigin/Origin800Parser.cpp -+ SOURCES += ../3rdparty/liborigin/Origin810Parser.cpp -+} diff --git a/extra/qtiplot/qtiplot-0.9.8.6-gold.patch b/extra/qtiplot/qtiplot-0.9.8.6-gold.patch new file mode 100644 index 000000000..3b6757533 --- /dev/null +++ b/extra/qtiplot/qtiplot-0.9.8.6-gold.patch @@ -0,0 +1,15 @@ + qtiplot/qtiplot.pro | 1 + + 1 files changed, 1 insertions(+), 0 deletions(-) + +diff --git a/qtiplot/qtiplot.pro b/qtiplot/qtiplot.pro +index 99e0e36..b7cf373 100755 +--- a/qtiplot/qtiplot.pro ++++ b/qtiplot/qtiplot.pro +@@ -20,6 +20,7 @@ LIBS += $$MUPARSER_LIBS + LIBS += $$QWT_LIBS + LIBS += $$QWT3D_LIBS + LIBS += $$GSL_LIBS ++LIBS += -lz + + ############################################################################# + ###################### BASIC PROJECT PROPERTIES ############################# diff --git a/extra/qtiplot/qtiplot-0.9.8.6-kde.patch b/extra/qtiplot/qtiplot-0.9.8.6-kde.patch new file mode 100644 index 000000000..919ec6cc2 --- /dev/null +++ b/extra/qtiplot/qtiplot-0.9.8.6-kde.patch @@ -0,0 +1,15 @@ + qtiplot/src/plot2D/Graph.cpp | 1 + + 1 files changed, 1 insertions(+), 0 deletions(-) + +diff --git a/qtiplot/src/plot2D/Graph.cpp b/qtiplot/src/plot2D/Graph.cpp +index 626172a..d4eab1b 100755 +--- a/qtiplot/src/plot2D/Graph.cpp ++++ b/qtiplot/src/plot2D/Graph.cpp +@@ -73,6 +73,7 @@ + #include <PatternBox.h> + #include <SymbolBox.h> + ++#include <QPaintEngine> + #include <QApplication> + #include <QBitmap> + #include <QClipboard> diff --git a/extra/qtiplot/qtiplot-0.9.8.6-tamuanova.patch b/extra/qtiplot/qtiplot-0.9.8.6-tamuanova.patch new file mode 100644 index 000000000..1644266d1 --- /dev/null +++ b/extra/qtiplot/qtiplot-0.9.8.6-tamuanova.patch @@ -0,0 +1,26 @@ +diff --git a/qtiplot/qtiplot.pro b/qtiplot/qtiplot.pro +index 95a5f0c..72e99ab 100755 +--- a/qtiplot/qtiplot.pro ++++ b/qtiplot/qtiplot.pro +@@ -205,18 +205,14 @@ contains(SCRIPTING_LANGS, Python) { + !isEmpty(TAMUANOVA_LIBS) { + DEFINES += HAVE_TAMUANOVA + INCLUDEPATH += $$TAMUANOVA_INCLUDEPATH +- #LIBS += $$TAMUANOVA_LIBS +- +- HEADERS += $$TAMUANOVA_INCLUDEPATH/tamu_anova.h +- SOURCES += $$TAMUANOVA_INCLUDEPATH/anova_1.c +- SOURCES += $$TAMUANOVA_INCLUDEPATH/anova_2.c ++ LIBS += $$TAMUANOVA_LIBS + } + + ############################################################### + + # At the very end: add global include- and lib path +-#unix:INCLUDEPATH += $$SYS_INCLUDEPATH +-#unix:LIBS += $$SYS_LIBS ++unix:INCLUDEPATH += $$SYS_INCLUDEPATH ++unix:LIBS += $$SYS_LIBS + + ############################################################### + ############### Building QtiPlot as a browser plugin ########## |