summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-06-03 13:43:43 +0200
committerErich Eckner <git@eckner.net>2020-06-03 13:43:43 +0200
commita8fce20faa874d84f49875993cc337520452518c (patch)
tree0f231c6408d497194b5da477905d594a91491b7a
parent6f23476cefe7577659cd2351bdd2ee46dfe407a4 (diff)
downloadarchlinuxewe.git.save-a8fce20faa874d84f49875993cc337520452518c.tar.xz
scidavis-qt5 neu
-rw-r--r--scidavis-qt5/PKGBUILD70
-rw-r--r--scidavis-qt5/linking.patch49
2 files changed, 119 insertions, 0 deletions
diff --git a/scidavis-qt5/PKGBUILD b/scidavis-qt5/PKGBUILD
new file mode 100644
index 00000000..2faddbce
--- /dev/null
+++ b/scidavis-qt5/PKGBUILD
@@ -0,0 +1,70 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Contributor: Mirko Scholz
+# Contributor: Evgeniy Alekseev <arcanis at archlinux dot org>
+# Contributor: Knut Franke <Knut.Franke ad gmx dot de>
+# Contributor: Olaf Leidinger <leidola at newcon dot de>
+# Contributor: Robal <nigrantis.tigris at gmail dot com>
+# Contributor: Alexander <chronischzuspaet at gmail dot com> Kempen
+
+# see https://svnweb.freebsd.org/ports/head/science/scidavis/Makefile?view=markup
+
+_pkgname=scidavis
+pkgname=scidavis-qt5
+pkgver=2.2.0
+_commit=${pkgver}
+pkgrel=1
+pkgdesc="Application for Scientific Data Analysis and Visualization, fork of QtiPlot. Qt5 port"
+arch=('x86_64')
+url="http://scidavis.sourceforge.net/"
+license=('GPL')
+makedepends=('boost' 'cmake' 'qt5-tools'
+'sip' 'python-sip'
+'qwt5-qt5>=5.2.3.1-2'
+'qwtplot3d-qt5>=0.2.7-3'
+)
+depends=('gsl' 'glu' 'mesa' 'muparser' 'shared-mime-info'
+'desktop-file-utils' 'hicolor-icon-theme'
+'python-pyqt5'
+'python-pyqt5-sip'
+'qt5-svg'
+'python' 'python-scipy')
+conflicts=('scidavis')
+source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/highperformancecoder/scidavis/archive/${_commit}.tar.gz"
+'linking.patch'
+)
+sha512sums=('0440ee5c6570e3c6494ed51cefa9063e4314cfb237abebfaf5389cbab0e99c767975443e0fa3be463f4dc215dec8059dc0adb25bc7125dd760e731ad89f04410'
+ '69f04800343935141ad224510a915a8cbdbd0e07401a61530a52e18ea5d02b85f7e579f70b6bb32b37e085c07f61a8ce3f9c83f7b7b9cfe0553624b8ff9ff5db')
+
+prepare() {
+ cd "${_pkgname}-${_commit}"
+ patch --forward --strip=1 --input="${srcdir}/linking.patch"
+}
+
+build() {
+ cd "${_pkgname}-${_commit}"
+ qmake-qt5 \
+ CONFIG+="liborigin python" \
+ INCLUDEPATH+="/usr/include/qt/qwt5-qt5" \
+ INCLUDEPATH+="/usr/include/qt/qwtplot3d-qt5" \
+ LIBS+="-lqwt5-qt5 -lqwtplot3d-qt5" \
+ QMAKE_CXXFLAGS="-Wno-deprecated-copy -Wno-deprecated-declarations -fpermissive"
+ make qmake
+ make
+}
+
+package() {
+ cd "${_pkgname}-${_commit}"
+ make INSTALL_ROOT="${pkgdir}" DESTDIR="${pkgdir}" install
+
+ python -m py_compile "${pkgdir}/etc/scidavisrc.py"
+ mv ${pkgdir}/etc/__pycache__/scidavisrc*.pyc "${pkgdir}/etc/scidavisrc.pyc"
+ rm -rf ${pkgdir}/etc/__pycache__
+
+ # remove liborigin files since it uses static library
+ rm -rf "${pkgdir}/usr/local"
+
+ # install translations (it looks like it does not provide target to do it)
+ install -dm755 "${pkgdir}/usr/share/scidavis/translations/"
+ find "scidavis/translations/" -name '*.qm' -type f -exec \
+ install -Dm644 {} "${pkgdir}/usr/share/scidavis/translations/" \;
+}
diff --git a/scidavis-qt5/linking.patch b/scidavis-qt5/linking.patch
new file mode 100644
index 00000000..fe97ba0c
--- /dev/null
+++ b/scidavis-qt5/linking.patch
@@ -0,0 +1,49 @@
+Only in scidavis-2.1.4a: .qmake.stash
+Only in scidavis-2.1.4a/3rdparty/liborigin: Makefile
+Only in scidavis-2.1.4a/3rdparty/liborigin: OriginFile.o
+Only in scidavis-2.1.4a/3rdparty/liborigin: OriginParser.o
+Only in scidavis-2.1.4a: Makefile
+diff -r -u10 scidavis-2.1.4/config.pri scidavis-2.1.4a/config.pri
+--- scidavis-2.1.4/config.pri 2020-05-02 02:52:57.000000000 +0200
++++ scidavis-2.1.4a/config.pri 2020-05-09 20:40:18.693721166 +0200
+@@ -277,38 +277,25 @@
+ }
+
+ contains(PRESET, linux_package) {
+ ### dynamically link against Qwt(3D) installed system-wide
+
+ exists(/usr/include/qt5/qwt5-qt5) {INCLUDEPATH+=/usr/include/qt5/qwt5-qt5}
+ exists(/usr/include/qt5/qwtplot3d-qt5) {INCLUDEPATH+=/usr/include/qt5/qwtplot3d-qt5}
+ exists(/usr/include/qwt5-qt5) {INCLUDEPATH+=/usr/include/qwt5-qt5}
+ exists(/usr/include/qwtplot3d) {INCLUDEPATH+=/usr/include/qwtplot3d}
+
+- system (ls /usr/lib*/libqwt5-qt5.so) {LIBS+=-lqwt5-qt5}
+- system (ls /usr/lib*/*/libqwt5-qt5.so) {LIBS+=-lqwt5-qt5}
+- system (ls /usr/lib*/libqwt-qt5.so) {LIBS+=-lqwt-qt5}
+- system (ls /usr/lib*/libqwtplot3d-qt5.so) {LIBS+=-lqwtplot3d-qt5}
+- system (ls /usr/lib*/*/libqwtplot3d-qt5.so) {LIBS+=-lqwtplot3d-qt5}
+-
+-
++ LIBS+=-lqwt5-qt5
++ LIBS+=-lqwtplot3d-qt5
+ LIBS += -lz -lGLU
+-
+- INCLUDEPATH += /usr/include/muParser
+ LIBS += -lgsl -lgslcblas
+ LIBS += -lmuparser
+-
+- # enable user installed packages
+- INCLUDEPATH = "$(HOME)/usr/include" $$INCLUDEPATH
+- QMAKE_LIBDIR = "$(HOME)/usr/lib" $$QMAKE_LIBDIR
+-
+-
+ }
+
+ contains(PRESET, self_contained) {
+ ### mostly static linking, for self-contained binaries
+
+ INCLUDEPATH += ../3rdparty/qwt/src
+ LIBS += ../3rdparty/qwt/lib/libqwt.a
+
+ INCLUDEPATH += ../3rdparty/qwtplot3d/include
+ LIBS += ../3rdparty/qwtplot3d/lib/libqwtplot3d.a