# Maintainer: Mirko Scholz # Contributor: Evgeniy Alekseev # Contributor: Knut Franke # Contributor: Olaf Leidinger # Contributor: Robal # Contributor: Alexander Kempen # see https://svnweb.freebsd.org/ports/head/science/scidavis/Makefile?view=markup _pkgname=scidavis pkgname=scidavis-qt5 pkgver=2.9.0 _commit=9eece990c9beed36f36ceadd35fcad92d8f07ca7 _commit_liborigin=a92f26f28e531f64684b66a2731dd617bea3cb45 _commit_qwtplot3d=b2655743d30ed3185f3c0e2626b33a1d29655216 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' 'pyqt-builder' 'qwt5-qt5>=5.2.3.4-3' ) depends=('gsl' 'glu' 'mesa' 'muparser>=2.3.2' 'shared-mime-info' 'desktop-file-utils' 'hicolor-icon-theme' 'python-pyqt5' 'python-pyqt5-sip' 'qt5-svg' 'python' 'python-scipy') conflicts=('scidavis' 'python-sip4') source=( "${_pkgname}-${pkgver}.zip::https://github.com/SciDAVis/scidavis/archive/${_commit}.zip" "liborigin-${_commit_liborigin}.zip::https://github.com/SciDAVis/liborigin/archive/${_commit_liborigin}.zip" "qwtplot3d-${_commit_qwtplot3d}.zip::https://github.com/SciDAVis/qwtplot3d/archive/${_commit_qwtplot3d}.zip" ) sha512sums=('8dd969bd5cb0ae2507e2c511a4c2ff9ba7ab4dca30f45f4807e539bdfa7c7468682aff269817d7046cdc5317ab42cd43e5b66174796425685d3e99016dcbc434' 'aa63824a62cb4abf15241d35091c697c143ea0185e7efedbf3931c4cb427c5646606e15a6dc1cdeb2e143d6d77476b9fdd877cff3cc797d7439a5cba953a450c' '5784fe55b11ee6437b765964b87522dd60a1e84e4424982ca3f3f3c6b09d986c5d5f8f0dfa593d70027f614865261eee27c7827c4d194cbe2f678d60ae4bf0b7') prepare() { cd "${_pkgname}-${_commit}" rm -rf 3rdparty/liborigin mv ../liborigin-${_commit_liborigin} 3rdparty/liborigin rm -rf 3rdparty/qwtplot3d mv ../qwtplot3d-${_commit_qwtplot3d} 3rdparty/qwtplot3d mkdir -p build } build() { cd "${_pkgname}-${_commit}" cd build cmake .. -DSEARCH_FOR_UPDATES=OFF -DDOWNLOAD_LINKS=OFF -DORIGIN_IMPORT=ON -DSCRIPTING_PYTHON=ON \ -DCMAKE_INSTALL_PREFIX=/usr || true make } package() { cd "${_pkgname}-${_commit}" cd build make INSTALL_ROOT="${pkgdir}" DESTDIR="${pkgdir}" install }