Added current pkgbuilds

This commit is contained in:
arcan1s
2013-09-11 01:27:20 +04:00
parent 6f7fb30c6e
commit 2560cb8c5b
23 changed files with 860 additions and 0 deletions

62
scidavis/PKGBUILD Normal file
View File

@ -0,0 +1,62 @@
# Maintainer: Evgeniy "arcanis" Alexeev <esalexeev@gmail.com>
# Contributor: Knut Franke - Knut.Franke*gmx.de
# Contributor: Olaf Leidinger <leidola@newcon.de>
# Contributor: Robal <nigrantis.tigris*.gmail.com>
pkgname=scidavis
pkgver=0.2.4
pkgrel=8
pkgdesc="Application for Scientific Data Analysis and Visualization, fork of QtiPlot"
arch=('i686' 'x86_64')
depends=('gsl' 'mesa' 'muparser' 'python2-pyqt4' 'shared-mime-info'
'qt-assistant-compat' 'qwtplot3d' 'qwt5')
license=('GPL')
url="http://scidavis.sourceforge.net/"
source=(http://prdownloads.sourceforge.net/sourceforge/scidavis/${pkgname}-${pkgver}.tar.bz2
scidavis.pro.patch
scidavis.sip.patch
scidavis-python2.patch
qt-assistant-compat.patch
qwt5.patch)
install=${pkgname}.install
md5sums=('c5650475c5e0b22f9ee5dc49630a0e89'
'2ec36f34039ca8cd6db2401b1215590b'
'c140a5ce784f9e106fb637fcc3df517c'
'ff0a7cb32e8ed439f008bfd114cbf611'
'450b7139f913210dd8a0ffbde03e86be'
'159aad53f13328123d42bfb7a4adf1b8')
prepare()
{
cd ${srcdir}/${pkgname}-${pkgver}/${pkgname}
# disable building self library
patch < ${srcdir}/scidavis.pro.patch
# fix bug http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=655776
patch -p2 < ${srcdir}/scidavis.sip.patch
# change python to python2
patch < ${srcdir}/scidavis-python2.patch
# fix path to QtAssistant header
patch -p2 < ${srcdir}/qt-assistant-compat.patch
# change qwt to qwt5
patch < ${srcdir}/qwt5.patch
}
build()
{
cd ${srcdir}/${pkgname}-${pkgver}/
lupdate-qt4 scidavis.pro
lrelease-qt4 scidavis.pro
qmake-qt4
make || return 1
}
package ()
{
cd ${srcdir}/${pkgname}-${pkgver}/
make INSTALL_ROOT=${pkgdir} install || return 1
_pydir=`python2 -c "from distutils import sysconfig; print sysconfig.get_python_lib()"`
python2 `dirname ${_pydir}`/py_compile.py ${pkgdir}/etc/scidavisrc.py
python2 `dirname ${_pydir}`/py_compile.py ${pkgdir}/usr/share/scidavis/scidavisUtil.py
}

View File

@ -0,0 +1,12 @@
diff -uNr scidavis-0.2.4.orig/scidavis/src/ApplicationWindow.cpp scidavis-0.2.4/scidavis/src/ApplicationWindow.cpp
--- scidavis-0.2.4.orig/scidavis/src/ApplicationWindow.cpp 2010-10-06 20:00:36.000000000 +0200
+++ scidavis-0.2.4/scidavis/src/ApplicationWindow.cpp 2010-10-06 20:01:28.000000000 +0200
@@ -135,7 +135,7 @@
#include <QVarLengthArray>
#include <QList>
#include <QUrl>
-#include <QAssistantClient>
+#include <QtAssistant/qassistantclient.h>
#include <QStatusBar>
#include <QToolButton>
#include <QSignalMapper>

36
scidavis/qwt5.patch Normal file
View File

@ -0,0 +1,36 @@
*** scidavis.pro-old 2011-08-07 02:40:22.794577716 +0200
--- scidavis.pro 2011-08-07 02:40:50.047911224 +0200
***************
*** 102,108 ****
### Link everything dynamically
#############################################################################
! unix:INCLUDEPATH += /usr/include/qwt
unix:LIBS += -L/usr/lib$${libsuff}
## dynamically link against Qwt(3D) installed system-wide
## WARNING: make sure they are compiled against >= Qt4.2
--- 102,108 ----
### Link everything dynamically
#############################################################################
! unix:INCLUDEPATH += /usr/include/qwt5
unix:LIBS += -L/usr/lib$${libsuff}
## dynamically link against Qwt(3D) installed system-wide
## WARNING: make sure they are compiled against >= Qt4.2
***************
*** 110,116 ****
## cause problems.
unix:INCLUDEPATH += /usr/include/qwtplot3d
unix:LIBS += -lqwtplot3d
! unix:LIBS += -lqwt
##dynamically link against GSL and zlib installed system-wide
unix:LIBS += -lgsl -lgslcblas -lz -lmuparser
--- 110,116 ----
## cause problems.
unix:INCLUDEPATH += /usr/include/qwtplot3d
unix:LIBS += -lqwtplot3d
! unix:LIBS += -lqwt5
##dynamically link against GSL and zlib installed system-wide
unix:LIBS += -lgsl -lgslcblas -lz -lmuparser

View File

@ -0,0 +1,74 @@
# HG changeset patch
# User Robal <nigrantis.tigris@gmail.com>
# Date 1287746261 -7200
# Node ID 1f5799d979b49f7bdd5ebb58e9c2083081147529
# Parent 5765007ad9e767615a57ead333906b19cfa43c54
set python2 env
diff -r 5765007ad9e7 -r 1f5799d979b4 scidavis/python-includepath.py
--- a/scidavis/python-includepath.py Fri Oct 22 13:09:25 2010 +0200
+++ b/scidavis/python-includepath.py Fri Oct 22 13:17:41 2010 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
from distutils import sysconfig
from PyQt4 import pyqtconfig
config = pyqtconfig.Configuration()
diff -r 5765007ad9e7 -r 1f5799d979b4 scidavis/python-libs-win.py
--- a/scidavis/python-libs-win.py Fri Oct 22 13:09:25 2010 +0200
+++ b/scidavis/python-libs-win.py Fri Oct 22 13:17:41 2010 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
from PyQt4 import pyqtconfig
config = pyqtconfig.Configuration()
diff -r 5765007ad9e7 -r 1f5799d979b4 scidavis/python-sipcmd.py
--- a/scidavis/python-sipcmd.py Fri Oct 22 13:09:25 2010 +0200
+++ b/scidavis/python-sipcmd.py Fri Oct 22 13:17:41 2010 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
from PyQt4 import pyqtconfig
config = pyqtconfig.Configuration()
flags = []
diff -r 5765007ad9e7 -r 1f5799d979b4 scidavis/python.pri
--- a/scidavis/python.pri Fri Oct 22 13:09:25 2010 +0200
+++ b/scidavis/python.pri Fri Oct 22 13:17:41 2010 +0200
@@ -15,7 +15,7 @@
SOURCES += src/PythonScript.cpp src/PythonScripting.cpp
unix {
- INCLUDEPATH += $$system(python python-includepath.py)
+ INCLUDEPATH += $$system(python2 python-includepath.py)
macx {
LIBS += -framework Python
} else {
@@ -23,7 +23,7 @@
}
LIBS += -lm
system(mkdir -p $${SIP_DIR})
- system($$system(python python-sipcmd.py) -c $${SIP_DIR} src/scidavis.sip)
+ system($$system(python2 python-sipcmd.py) -c $${SIP_DIR} src/scidavis.sip)
}
win32 {
# HG changeset patch
# User Robal <nigrantis.tigris@gmail.com>
# Date 1287751697 -7200
# Node ID 42d95b7369a82382d81670c5d0af3d675262c93f
# Parent 1f5799d979b49f7bdd5ebb58e9c2083081147529
change missed 'python' to 'python2' in python.pri
diff -r 1f5799d979b4 -r 42d95b7369a8 scidavis/python.pri
--- a/scidavis/python.pri Fri Oct 22 13:17:41 2010 +0200
+++ b/scidavis/python.pri Fri Oct 22 14:48:17 2010 +0200
@@ -19,7 +19,7 @@
macx {
LIBS += -framework Python
} else {
- LIBS += $$system(python -c "\"from distutils import sysconfig; print '-lpython'+sysconfig.get_config_var('VERSION')\"")
+ LIBS += $$system(python2 -c "\"from distutils import sysconfig; print '-lpython'+sysconfig.get_config_var('VERSION')\"")
}
LIBS += -lm
system(mkdir -p $${SIP_DIR})

10
scidavis/scidavis.install Normal file
View File

@ -0,0 +1,10 @@
post_install() {
update-desktop-database -q
update-mime-database /usr/share/mime/ > /dev/null
}
post_remove() {
post_install $1
}
# vim:set ts=2 sw=2 et:

View File

@ -0,0 +1,49 @@
--- scidavis.pro.orig 2010-03-12 19:40:49.000000000 +0100
+++ scidavis.pro 2010-03-12 19:42:34.000000000 +0100
@@ -87,32 +87,32 @@
### are compiled against Qt4), dynamically against everything else.
#############################################################################
-unix:INCLUDEPATH += ../3rdparty/qwtplot3d/include
-unix:LIBS += ../3rdparty/qwtplot3d/lib/libqwtplot3d.a
+#unix:INCLUDEPATH += ../3rdparty/qwtplot3d/include
+#unix:LIBS += ../3rdparty/qwtplot3d/lib/libqwtplot3d.a
-unix:INCLUDEPATH += ../3rdparty/qwt/src
-unix:LIBS += ../3rdparty/qwt/lib/libqwt.a
+#unix:INCLUDEPATH += ../3rdparty/qwt/src
+#unix:LIBS += ../3rdparty/qwt/lib/libqwt.a
-unix:LIBS += -L/usr/lib$${libsuff}
-unix:LIBS += -lgsl -lgslcblas -lz
-unix:LIBS += -lmuparser
-unix:INCLUDEPATH += /usr/include/muParser
+#unix:LIBS += -L/usr/lib$${libsuff}
+#unix:LIBS += -lgsl -lgslcblas -lz
+#unix:LIBS += -lmuparser
+#unix:INCLUDEPATH += /usr/include/muParser
#############################################################################
### Link everything dynamically
#############################################################################
-#unix:INCLUDEPATH += /usr/include/qwt5
-#unix:LIBS += -L/usr/lib$${libsuff}
+unix:INCLUDEPATH += /usr/include/qwt
+unix:LIBS += -L/usr/lib$${libsuff}
## dynamically link against Qwt(3D) installed system-wide
## WARNING: make sure they are compiled against >= Qt4.2
## Mixing Qt 4.2 and Qt >= 4.3 compiled stuff may also
## cause problems.
-#unix:INCLUDEPATH += /usr/include/qwtplot3d
-#unix:LIBS += -lqwtplot3d
-#unix:LIBS += -lqwt
+unix:INCLUDEPATH += /usr/include/qwtplot3d
+unix:LIBS += -lqwtplot3d
+unix:LIBS += -lqwt
##dynamically link against GSL and zlib installed system-wide
-#unix:LIBS += -lgsl -lgslcblas -lz -lmuparser
+unix:LIBS += -lgsl -lgslcblas -lz -lmuparser -lGLU
#############################################################################
### Default settings for Windows

View File

@ -0,0 +1,20 @@
--- scidavis-0.2.4.orig/scidavis/src/scidavis.sip 2010-03-12 17:49:20.000000000 +0300
+++ scidavis-0.2.4/scidavis/src/scidavis.sip 2013-09-10 05:17:57.599898053 +0400
@@ -926,7 +926,7 @@
void removeCurve(const QString&);
void deleteFitCurves();
int curves() /PyName=numCurves/;
- QList<QwtPlotCurve*> curves() const /NoDerived/;
+ QList<QwtPlotCurve*> curves() /NoDerived/;
%MethodCode
sipRes = new QList<QwtPlotCurve*>();
for (int i = 0; i<sipCpp->curves(); i++)
@@ -995,7 +995,7 @@
sipRes = sipCpp->d_plot->canvas();
%End
- QPointF pickPoint() const /NoDerived/;
+ QPointF pickPoint() /NoDerived/;
%MethodCode
ApplicationWindow *app = sipscidavis_app();
sipRes = new QPointF();