1 | # -*- 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 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python 1.0 |
---|
6 | |
---|
7 | name py-obspy |
---|
8 | version 0.8.3 |
---|
9 | categories-append science |
---|
10 | platforms darwin |
---|
11 | supported_archs noarch |
---|
12 | maintainers bo.ingv.it:Peter.Danecek openmaintainer |
---|
13 | |
---|
14 | license LGPL-3 |
---|
15 | |
---|
16 | description Python framework for processing seismological data |
---|
17 | long_description ObsPy is an open-source project dedicated to provide a Python \ |
---|
18 | framework for processing seismological data. It provides \ |
---|
19 | support for file formats and signal processing routines \ |
---|
20 | which allow the manipulation, analysis and visualization \ |
---|
21 | of seismological time series. The goal of the ObsPy project is \ |
---|
22 | to facilitate rapid application development for seismology. |
---|
23 | |
---|
24 | homepage http://obspy.org/ |
---|
25 | |
---|
26 | use_zip yes |
---|
27 | distname obspy-${version} |
---|
28 | master_sites http://pypi.python.org/packages/source/o/obspy |
---|
29 | |
---|
30 | checksums md5 ffb704ed3a33f0299a8e0352437e6639 \ |
---|
31 | rdm160 4c74a75a8a26073dd5f016410cece3391d7ad712 \ |
---|
32 | sha256 b14d44b0645d7eca2f1e1d50ffc157a8df7594f407a2ca66aedc19506b3d5813 |
---|
33 | |
---|
34 | python.versions 26 27 |
---|
35 | |
---|
36 | if {${subport} != ${name}} { |
---|
37 | depends_build port:py${python.version}-distribute |
---|
38 | depends_lib-append port:py${python.version}-numpy \ |
---|
39 | port:py${python.version}-scipy \ |
---|
40 | port:py${python.version}-lxml \ |
---|
41 | port:py${python.version}-suds \ |
---|
42 | port:py${python.version}-sqlalchemy |
---|
43 | } |
---|
44 | |
---|
45 | # hook to deactivate old installations of py-obspy-core ("deactivate hack") |
---|
46 | pre-activate { |
---|
47 | if {${subport} == ${name}} { |
---|
48 | if {[file exists ${prefix}/share/doc/py-obspy-core/README ] |
---|
49 | && ![catch {set vers [lindex [registry_active py-obspy-core] 0]}] |
---|
50 | && [rpm-vercomp [lindex $vers 1] 0.8.0] < 0} { |
---|
51 | registry_deactivate py-obspy-core "" [list ports_nodepcheck 1] |
---|
52 | } |
---|
53 | } else { |
---|
54 | if {${python.version} == 26 |
---|
55 | && [file exists ${prefix}/bin/obspy-runtests-2.6 ] |
---|
56 | && ![catch {set vers [lindex [registry_active py26-obspy-core] 0]}] |
---|
57 | && [rpm-vercomp [lindex $vers 1] 0.8.0] < 0} { |
---|
58 | registry_deactivate py26-obspy-core "" [list ports_nodepcheck 1] |
---|
59 | } |
---|
60 | if {${python.version} == 27 |
---|
61 | && [file exists ${prefix}/bin/obspy-runtests-2.7 ] |
---|
62 | && ![catch {set vers [lindex [registry_active py26-obspy-core] 0]}] |
---|
63 | && [rpm-vercomp [lindex $vers 1] 0.8.0] < 0} { |
---|
64 | registry_deactivate py27-obspy-core "" [list ports_nodepcheck 1] |
---|
65 | } |
---|
66 | } |
---|
67 | } |
---|