[92582] trunk/dports/databases/postgis2/Portfile

ryandesign at macports.org ryandesign at macports.org
Tue May 1 12:21:58 PDT 2012


Revision: 92582
          https://trac.macports.org/changeset/92582
Author:   ryandesign at macports.org
Date:     2012-05-01 12:21:58 -0700 (Tue, 01 May 2012)
Log 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

Modified Paths:
--------------
    trunk/dports/databases/postgis2/Portfile

Modified: trunk/dports/databases/postgis2/Portfile
===================================================================
--- trunk/dports/databases/postgis2/Portfile	2012-05-01 19:16:19 UTC (rev 92581)
+++ trunk/dports/databases/postgis2/Portfile	2012-05-01 19:21:58 UTC (rev 92582)
@@ -120,9 +120,7 @@
     }
     
     # Can’t install a non-universal PostGIS on a universal PostGreSQL
-    if {![catch {exec ${prefix}/bin/port installed $PGVERSION\
-                    |& grep universal}] && ![variant_isset universal]} {
-        
+    if {![variant_isset universal] && -1 != [string first "+universal" [lindex [lindex [registry_active $PGVERSION] 0] 3]]} {
         return -code error  "Since $PGVERSION has been built universal,\
                             PostGIS must also be built universal."
     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120501/7ffab6aa/attachment.html>


More information about the macports-changes mailing list