mirror of
https://github.com/arcan1s/pkgbuild.git
synced 2025-04-24 23:47:17 +00:00
scidavis-r9
This commit is contained in:
parent
bc17b9985d
commit
03628c371c
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
pkgname=scidavis
|
pkgname=scidavis
|
||||||
pkgver=0.2.4
|
pkgver=0.2.4
|
||||||
pkgrel=8
|
pkgrel=9
|
||||||
pkgdesc="Application for Scientific Data Analysis and Visualization, fork of QtiPlot"
|
pkgdesc="Application for Scientific Data Analysis and Visualization, fork of QtiPlot"
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
depends=('gsl' 'mesa' 'muparser' 'python2-pyqt4' 'shared-mime-info'
|
depends=('gsl' 'mesa' 'muparser' 'python2-pyqt4' 'shared-mime-info'
|
||||||
@ -13,6 +13,7 @@ depends=('gsl' 'mesa' 'muparser' 'python2-pyqt4' 'shared-mime-info'
|
|||||||
license=('GPL')
|
license=('GPL')
|
||||||
url="http://scidavis.sourceforge.net/"
|
url="http://scidavis.sourceforge.net/"
|
||||||
source=(http://prdownloads.sourceforge.net/sourceforge/scidavis/${pkgname}-${pkgver}.tar.bz2
|
source=(http://prdownloads.sourceforge.net/sourceforge/scidavis/${pkgname}-${pkgver}.tar.bz2
|
||||||
|
multipeakfit.h.patch
|
||||||
scidavis.pro.patch
|
scidavis.pro.patch
|
||||||
scidavis.sip.patch
|
scidavis.sip.patch
|
||||||
scidavis-python2.patch
|
scidavis-python2.patch
|
||||||
@ -20,23 +21,26 @@ source=(http://prdownloads.sourceforge.net/sourceforge/scidavis/${pkgname}-${pkg
|
|||||||
qwt5.patch)
|
qwt5.patch)
|
||||||
install=${pkgname}.install
|
install=${pkgname}.install
|
||||||
md5sums=('c5650475c5e0b22f9ee5dc49630a0e89'
|
md5sums=('c5650475c5e0b22f9ee5dc49630a0e89'
|
||||||
|
'59ac672f49e1e4e034bfdfb566b99589'
|
||||||
'2ec36f34039ca8cd6db2401b1215590b'
|
'2ec36f34039ca8cd6db2401b1215590b'
|
||||||
'c140a5ce784f9e106fb637fcc3df517c'
|
'c17bf09fa34cc9a75675d95b1585147f'
|
||||||
'ff0a7cb32e8ed439f008bfd114cbf611'
|
'ff0a7cb32e8ed439f008bfd114cbf611'
|
||||||
'450b7139f913210dd8a0ffbde03e86be'
|
'2fefdab0fa536098637e7250efcd727e'
|
||||||
'159aad53f13328123d42bfb7a4adf1b8')
|
'159aad53f13328123d42bfb7a4adf1b8')
|
||||||
|
|
||||||
prepare()
|
prepare()
|
||||||
{
|
{
|
||||||
cd ${srcdir}/${pkgname}-${pkgver}/${pkgname}
|
cd ${srcdir}/${pkgname}-${pkgver}/${pkgname}
|
||||||
|
# fix private to public
|
||||||
|
patch -p0 < ${srcdir}/multipeakfit.h.patch
|
||||||
# disable building self library
|
# disable building self library
|
||||||
patch < ${srcdir}/scidavis.pro.patch
|
patch < ${srcdir}/scidavis.pro.patch
|
||||||
# fix bug http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=655776
|
# fix bug http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=655776
|
||||||
patch -p2 < ${srcdir}/scidavis.sip.patch
|
patch -p0 < ${srcdir}/scidavis.sip.patch
|
||||||
# change python to python2
|
# change python to python2
|
||||||
patch < ${srcdir}/scidavis-python2.patch
|
patch < ${srcdir}/scidavis-python2.patch
|
||||||
# fix path to QtAssistant header
|
# fix path to QtAssistant header
|
||||||
patch -p2 < ${srcdir}/qt-assistant-compat.patch
|
patch -p0 < ${srcdir}/qt-assistant-compat.patch
|
||||||
# change qwt to qwt5
|
# change qwt to qwt5
|
||||||
patch < ${srcdir}/qwt5.patch
|
patch < ${srcdir}/qwt5.patch
|
||||||
}
|
}
|
||||||
@ -44,8 +48,6 @@ prepare()
|
|||||||
build()
|
build()
|
||||||
{
|
{
|
||||||
cd ${srcdir}/${pkgname}-${pkgver}/
|
cd ${srcdir}/${pkgname}-${pkgver}/
|
||||||
lupdate-qt4 scidavis.pro
|
|
||||||
lrelease-qt4 scidavis.pro
|
|
||||||
qmake-qt4
|
qmake-qt4
|
||||||
make || return 1
|
make || return 1
|
||||||
}
|
}
|
||||||
|
22
scidavis/multipeakfit.h.patch
Normal file
22
scidavis/multipeakfit.h.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
--- src/MultiPeakFit.h.old 2008-04-17 01:53:25.000000000 +0400
|
||||||
|
+++ src/MultiPeakFit.h 2013-09-12 22:40:34.965752536 +0400
|
||||||
|
@@ -48,6 +48,9 @@
|
||||||
|
static QString generateFormula(int order, PeakProfile profile);
|
||||||
|
static QStringList generateParameterList(int order);
|
||||||
|
static QStringList generateExplanationList(int order);
|
||||||
|
+
|
||||||
|
+ //! Used by the GaussFit and LorentzFit derived classes to calculate initial values for the parameters
|
||||||
|
+ void guessInitialValues();
|
||||||
|
|
||||||
|
private:
|
||||||
|
QString logFitInfo(double *par, int iterations, int status, const QString& plotName);
|
||||||
|
@@ -57,9 +60,6 @@
|
||||||
|
void insertPeakFunctionCurve(double *x, double *y, int peak);
|
||||||
|
void storeCustomFitResults(double *par);
|
||||||
|
|
||||||
|
- //! Used by the GaussFit and LorentzFit derived classes to calculate initial values for the parameters
|
||||||
|
- void guessInitialValues();
|
||||||
|
-
|
||||||
|
//! Number of peaks
|
||||||
|
int d_peaks;
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
diff -uNr scidavis-0.2.4.orig/scidavis/src/ApplicationWindow.cpp scidavis-0.2.4/scidavis/src/ApplicationWindow.cpp
|
diff -uNr src/ApplicationWindow.cpp.old src/ApplicationWindow.cpp
|
||||||
--- scidavis-0.2.4.orig/scidavis/src/ApplicationWindow.cpp 2010-10-06 20:00:36.000000000 +0200
|
--- src/ApplicationWindow.cpp.old 2010-10-06 20:00:36.000000000 +0200
|
||||||
+++ scidavis-0.2.4/scidavis/src/ApplicationWindow.cpp 2010-10-06 20:01:28.000000000 +0200
|
+++ src/ApplicationWindow.cpp 2010-10-06 20:01:28.000000000 +0200
|
||||||
@@ -135,7 +135,7 @@
|
@@ -135,7 +135,7 @@
|
||||||
#include <QVarLengthArray>
|
#include <QVarLengthArray>
|
||||||
#include <QList>
|
#include <QList>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
--- scidavis-0.2.4.orig/scidavis/src/scidavis.sip 2010-03-12 17:49:20.000000000 +0300
|
--- src/scidavis.sip.old 2010-03-12 17:49:20.000000000 +0300
|
||||||
+++ scidavis-0.2.4/scidavis/src/scidavis.sip 2013-09-10 05:17:57.599898053 +0400
|
+++ src/scidavis.sip 2013-09-10 05:17:57.599898053 +0400
|
||||||
@@ -926,7 +926,7 @@
|
@@ -926,7 +926,7 @@
|
||||||
void removeCurve(const QString&);
|
void removeCurve(const QString&);
|
||||||
void deleteFitCurves();
|
void deleteFitCurves();
|
||||||
|
Loading…
Reference in New Issue
Block a user