# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 PortGroup qmake 1.0 name scidavis version 1.14 categories science license GPL-2+ maintainers nicos openmaintainer description SciDAVis is a user-friendly data analysis and visualization program \ primarily aimed at high-quality plotting of scientific data long_description ${description} platforms darwin homepage http://scidavis.sourceforge.net master_sites sourceforge:project/scidavis/SciDAVis/${version} #distname ${name}.${version} depends_build-append port:doxygen \ path:bin/cmake:cmake depends_lib-append port:qwt52 \ port:qwtplot3d \ port:gsl \ port:boost \ port:muparser \ port:zlib \ port:libGLU checksums rmd160 22969c5bb862993a186faca447ae59b4f437621f \ sha256 a5fcb6c0d22794d0082229f23a6d04d5422858c4c7731344dff8c908be6b0424 universal_variant no patchfiles patch-OriginObj.diff \ patch-liborigin.diff configure.pre_args-append "'CONFIG+=osx_dist noassistant'" pre-configure { reinplace "s|/usr|${prefix}|g" ${worksrcpath}/config.pri reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/config.pri reinplace "s|/opt/local|${prefix}|g" ${worksrcpath}/mkMacDist.sh reinplace "s|/usr|${prefix}|g" ${worksrcpath}/fitPlugins/exp_saturation/exp_saturation.pro reinplace "s|/usr|${prefix}|g" ${worksrcpath}/fitPlugins/explin/explin.pro reinplace "s|/usr|${prefix}|g" ${worksrcpath}/fitPlugins/fitRational0/fitRational0.pro reinplace "s|/usr|${prefix}|g" ${worksrcpath}/fitPlugins/fitRational1/fitRational1.pro reinplace "s|/usr|${prefix}|g" ${worksrcpath}/fitPlugins/planck_wavelength/planck_wavelength.pro reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/3rdparty/liborigin/CMakeLists.txt if {![variant_isset python27]} { reinplace "s|CONFIG+=python| |g" \ ${worksrcpath}/config.pri } } post-destroot { #Put the application to the right folder move ${destroot}${prefix}/bin/scidavis.app ${destroot}${applications_dir}/scidavis.app if {[variant_isset python27]} { move ${destroot}/opt/etc/scidavisrc.py ${destroot}${prefix}/etc/scidavisrc.py } } variant python27 description "add support for python scripting" { # Can use either py*-pyqt4 or py*-pyqt4-devel. depends_lib-append port:python27 \ port:py27-sip \ path:share/py27-sip/PyQt4:py27-pyqt4 } livecheck.type sourceforge livecheck.url http://sourceforge.net/projects/scidavis/files/SciDAVis/ livecheck.regex (\[0-9.\]+\[A-Z\]+\[0-9.\])