[MacPorts] #37334: NEW: py-obspy @0.8.3

MacPorts noreply at macports.org
Tue Dec 18 06:53:25 PST 2012


#37334: NEW: py-obspy @0.8.3
------------------------------+--------------------------
  Reporter:  Peter.Danecek@…  |      Owner:  ryandesign@…
      Type:  submission       |     Status:  assigned
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:
Resolution:                   |   Keywords:
      Port:  py-obspy         |
------------------------------+--------------------------

Comment (by Peter.Danecek@…):

 Here the hook I would add to handle deactivation. However, I have some
 doubt on how to handle the super-/subport deactivation. In case the port
 was installed via its superport (py-obspy-core) it should be deactivated
 as well, so I added the respective line. But this may cause an error if
 this py-obspy-core is not installed.

 How to handle this cleanly? Any suggestion? Thanks!


 {{{
 # hook to deactivate old installations of py-obspy-core ("deactivate
 hack")
 pre-activate {
     if {[file exists ${prefix}/bin/obspy-runtests-2.5
         && ![catch {set vers [lindex [registry_active py26-obspy-core]
 0]}]
         && [rpm-vercomp [lindex $vers 1] 0.8.0] < 0} {
         registry_deactivate py-obspy-core "" [list ports_nodepcheck 1]
         registry_deactivate py25-obspy-core "" [list ports_nodepcheck 1]
     }
     if {[file exists ${prefix}/bin/obspy-runtests-2.6
         && ![catch {set vers [lindex [registry_active py26-obspy-core]
 0]}]
         && [rpm-vercomp [lindex $vers 1] 0.8.0] < 0} {
         registry_deactivate py-obspy-core "" [list ports_nodepcheck 1]
         registry_deactivate py26-obspy-core "" [list ports_nodepcheck 1]
     }
     if {[file exists ${prefix}/bin/obspy-runtests-2.7
         && ![catch {set vers [lindex [registry_active py26-obspy-core]
 0]}]
         && [rpm-vercomp [lindex $vers 1] 0.8.0] < 0} {
         registry_deactivate py-obspy-core "" [list ports_nodepcheck 1]
         registry_deactivate py27-obspy-core "" [list ports_nodepcheck 1]
     }
 }
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/37334#comment:6>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list