Ticket #42438: patch-py-obspy.diff

File patch-py-obspy.diff, 4.2 KB (added by petrrr, 11 years ago)

The modifications to the Portfile

  • Portfile

    old new  
    44PortSystem          1.0
    55PortGroup           python 1.0
    66
     7set _name           obspy
     8set _n              [string index ${_name} 0]
     9
    710name                py-obspy
    8 version             0.8.4
    9 revision            2
     11version             0.9.0
    1012categories-append   science
    1113platforms           darwin
    12 maintainers         bo.ingv.it:Peter.Danecek openmaintainer
    13 
    1414license             LGPL-3
    1515
     16maintainers         bo.ingv.it:Peter.Danecek openmaintainer
     17
    1618description         Python framework for processing seismological data
    1719
    18 long_description    ObsPy is an open-source project dedicated to provide a Python \
    19                     framework for processing seismological data. It provides \
    20                     support for file formats and signal processing routines \
    21                     which allow the manipulation, analysis and visualization \
    22                     of seismological time series. The goal of the ObsPy project is \
    23                     to facilitate rapid application development for seismology.
     20long_description    \
     21    This port provides a development snapshot of the ObsPy package. \
     22    ObsPy is an open-source project dedicated to provide a Python framework \
     23    for processing seismological data. It provides support for file formats \
     24    and signal processing routines which allow the manipulation, analysis \
     25    and visualization of seismological time series. The goal of the ObsPy \
     26    project is to facilitate rapid application development for seismology.
    2427
    25 homepage            http://obspy.org/
     28homepage            http://www.obspy.org/
    2629
    2730use_zip             yes
    28 distname            obspy-${version}
    29 master_sites        https://pypi.python.org/packages/source/o/obspy/
     31distname            ${_name}-${version}
     32master_sites        https://pypi.python.org/packages/source/${_n}/${_name}/
    3033
    31 checksums           md5     9da79d3a0604d433085ad4dc0e430100 \
    32                     rmd160  4a5b6e486304cd4e0a96d94ddc8bf88eb0a6f574 \
    33                     sha256  6e9e0a5c0e673ae41d64ca265d4abdadf2b83a60ff27c516a8dbb0e2b38965cf
     34checksums           md5     f720f675e66e8b2b6518e41b9ab9ada4 \
     35                    rmd160  b58932bc76e1bd21a2280d78aa868c767e3491b1 \
     36                    sha256  91367c7d1b63a4289b4a0ee84d49978d7523776da10629aa40a3aab197fad5e7
    3437
    3538python.versions     26 27
    3639
    3740if {${name} ne ${subport}} {
    38     depends_build-append    port:py${python.version}-setuptools
     41    depends_build-append    port:py${python.version}-numpy
     42    # Note: setuptools required only for developers
     43
    3944    depends_lib-append      port:py${python.version}-numpy \
    4045                            port:py${python.version}-scipy \
    4146                            port:py${python.version}-lxml \
    4247                            port:py${python.version}-suds \
    43                             port:py${python.version}-sqlalchemy
     48                            port:py${python.version}-sqlalchemy \
     49                            port:py${python.version}-matplotlib
     50
     51    # Note: Required for post-installation testing only
     52    depends_run-append      port:py${python.version}-flake8 \
     53                            port:py${python.version}-nose \
     54                            port:py${python.version}-mock
    4455
    4556    # py-scipy is not universal
    4657    universal_variant       no
    4758
     59    # Note: temporary workaround for numpy.distutils behaviour
    4860    patchfiles              patch-setup.py.diff
    4961
     62    # Check if and how to use compiler portgroup ...
     63    #
    5064    set gcc_versions {4.3 4.4 4.5 4.6 4.7 4.8 4.9}
    5165    set default_fortran_variant +gcc48
    5266
     
    86100            depends_build-append port:gcc${ver_no_dot}
    87101
    88102            configure.fc  ${prefix}/bin/gfortran-mp-${ver}
    89             compiler.library_path ${prefix}/lib/gcc${ver_no_dot}
     103            configure.f77 ${prefix}/bin/gfortran-mp-${ver}
     104            configure.f90 ${prefix}/bin/gfortran-mp-${ver}
    90105        }
    91106    }
    92 }
    93107
    94 livecheck.type      regex
    95 livecheck.url       ${master_sites}
    96 livecheck.regex     ">obspy-(\\d+\\.\\d+\\.\\d+)\\.zip<"
     108    livecheck.type  none
     109} else {
     110    livecheck.type  regex
     111    livecheck.url   [lindex ${master_sites} 0]
     112    livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
     113}