# Maintainer: Erich Eckner # Contributor: 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.3.0 _commit=${pkgver} pkgrel=19 pkgdesc="Application for Scientific Data Analysis and Visualization, fork of QtiPlot. Qt5 port" arch=('i686' 'pentium4' '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' ) _pinned_dependencies=( 'gcc-libs=10.2.0' 'glibc>=2.31' 'glu=9.0.1' 'gsl=2.6' 'libglvnd=1.3.3' 'muparser=2.3.2' 'python=3.9.4' 'qt5-base=5.15.2+kde+r188' 'qt5-svg=5.15.2+kde+r7' 'zlib=1:1.2.11' ) depends=('mesa' 'shared-mime-info' 'desktop-file-utils' 'hicolor-icon-theme' 'python-pyqt5' 'python-pyqt5-sip' 'python-scipy' "${_pinned_dependencies[@]}") conflicts=('scidavis') source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/highperformancecoder/scidavis/archive/${_commit}.tar.gz" 'linking.patch' ) sha512sums=('2ede70bcf5b910fc61e5a23ba36129bde11fd10b14470d4e8c9509eecb245c73242a3a1eec174b4f9a22abd21880e6ecbd9f0d1e492af87ff781163ad05e20cf' '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/" \; }