Ignore:
Timestamp:
May 1, 2012, 7:21:58 PM (7 years ago)
Author:
ryandesign@…
Message:

postgis2: use registry_active instead of exec'ing port to determine if dependency is installed universal; see http://lists.macosforge.org/pipermail/macports-dev/2012-April/019002.html

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/databases/postgis2/Portfile

    r92581 r92582  
    121121   
    122122    # Can’t install a non-universal PostGIS on a universal PostGreSQL
    123     if {![catch {exec ${prefix}/bin/port installed $PGVERSION\
    124                     |& grep universal}] && ![variant_isset universal]} {
    125        
     123    if {![variant_isset universal] && -1 != [string first "+universal" [lindex [lindex [registry_active $PGVERSION] 0] 3]]} {
    126124        return -code error  "Since $PGVERSION has been built universal,\
    127125                            PostGIS must also be built universal."
Note: See TracChangeset for help on using the changeset viewer.