Revision
92494
Author
vince@macports.org
Date
2012-04-30 01:06:31 -0700 (Mon, 30 Apr 2012)

Log Message

Implement modifications suggested by Ryan (thanks)

Modified Paths

Diff

Modified: trunk/dports/databases/postgis2/Portfile (92493 => 92494)


--- trunk/dports/databases/postgis2/Portfile	2012-04-30 06:15:25 UTC (rev 92493)
+++ trunk/dports/databases/postgis2/Portfile	2012-04-30 08:06:31 UTC (rev 92494)
@@ -107,14 +107,9 @@
 
 # Port phases
 
-pre-fetch {
-    if {[join [split [exec ${prefix}/bin/geos-config --version] "."] ""] < 332\
-        && [variant_isset topology]} {
-        
-        return -code error  "Topology module requires at least geos 3.3.2.\
-                            Please upgrade."
-    }
-    
+pre-configure {
+    system "cd ${worksrcpath} && ./autogen.sh"
+
     if {[variant_isset postgresql90]} {
         set PGVERSION   postgresql90
     } elseif {[variant_isset postgresql91]} {
@@ -130,10 +125,6 @@
     }
 }
 
-pre-configure {
-    system "cd ${worksrcpath} && ./autogen.sh"
-}
-
 configure.cflags-append \
     -Diconv=libiconv -Diconv_open=libiconv_open -Diconv_close=libiconv_close \
     -I${prefix}/include
@@ -154,4 +145,4 @@
 
 livecheck.type              regex
 livecheck.url               ${master_sites}
-livecheck.regex             ${name}-(\\d+(?:\\.\\d+)*)\\.tar
\ No newline at end of file
+livecheck.regex             ${name}-(\\d+(?:\\.\\d+)*)\\.tar