# -*- 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 PortSystem 1.0 PortGroup python 1.0 PortGroup select 1.0 name py-obspy version 1.4.0 revision 1 categories-append science license LGPL-3 maintainers {petr @petrrr} openmaintainer description Python framework for processing seismological data long_description \ ObsPy is an open-source project dedicated to provide a Python framework \ for processing seismological data. It provides support for file formats \ and signal processing routines which allow the manipulation, analysis \ and visualization of seismological time series. The goal of the ObsPy \ project is to facilitate rapid application development for seismology. homepage https://github.com/obspy/obspy/wiki/ checksums rmd160 3e861220a8616ba1e68f16851296c197e3d80b90 \ sha256 336a6e1d9a485732b08173cb5dc1dd720a8e53f3b54c180a62bb8ceaa5fe5c06 \ size 16984057 python.versions 39 310 311 312 # aic_simple.c: error: redefinition of ā€˜iā€™ compiler.c_standard 2011 if {${name} ne ${subport}} { # py-scipy is not universal universal_variant no depends_lib-append port:py${python.version}-decorator \ port:py${python.version}-lxml \ port:py${python.version}-matplotlib \ port:py${python.version}-numpy \ port:py${python.version}-scipy \ port:py${python.version}-requests \ port:py${python.version}-sqlalchemy # soft dependencies added for simplicity depends_lib-append port:py${python.version}-geographiclib \ port:py${python.version}-cartopy \ port:py${python.version}-pyshp depends_test-append port:py${python.version}-packaging \ port:py${python.version}-pyproj \ port:py${python.version}-pytest \ port:py${python.version}-pytest-json-report test.run yes test.args -k \"not test_tsindex.py"\ # add manpages depends_build-append port:help2man post-build { set libarch [glob -tail -directory ${worksrcpath}/build lib.*] set libsrc build/${libarch}/obspy/lib set libtgt ${worksrcpath}/obspy/lib # hack: link to built libraries to make scripts (and help2man) work foreach l [glob -tail -directory ${worksrcpath}/${libsrc} *.so] { ln -s ../../${libsrc}/${l} ${libtgt}/. } system -W ${worksrcpath} "${python.bin} setup.py --no-user-cfg build_man" } post-destroot { system -W ${worksrcpath} "${python.bin} setup.py --no-user-cfg install_man --prefix=${python.prefix} --root=${destroot}" } depends_run-append port:${python.rootname}_select select.group ${python.rootname} select.file ${filespath}/${python.rootname}${python.version} notes-append " To make this Python ${python.branch} version of ObsPy the default \ (i.e, use its script by their default names, e.g. obspy-runtests, etc.), run: sudo port select --set ${select.group} [file tail ${select.file}] " }