Revision
76566
Author
vince@macports.org
Date
2011-02-28 04:15:22 -0800 (Mon, 28 Feb 2011)

Log Message

Fixes a wrong scope in the post-configure phase.

Modified Paths

Diff

Modified: trunk/dports/gis/gdal-grass/Portfile (76565 => 76566)


--- trunk/dports/gis/gdal-grass/Portfile	2011-02-28 11:51:06 UTC (rev 76565)
+++ trunk/dports/gis/gdal-grass/Portfile	2011-02-28 12:15:22 UTC (rev 76566)
@@ -35,14 +35,14 @@
 			${worksrcpath}/Makefile
 		reinplace -E "s|^(LD_SHARED.*)|\\1 ${configure.universal_cxxflags}|" \
 			${worksrcpath}/Makefile
+	}
 			
-		# Fixes destroot issues
-		reinplace -E "s|^(GRASSTABLES_DIR\[^/]*)(.*)|\\1${destroot}\\2|" \
-			${worksrcpath}/Makefile
-		reinplace -E "s|^(AUTOLOAD_DIR\[^/]*)(.*)|\\1${destroot}\\2|" \
-			${worksrcpath}/Makefile
-		reinplace "s|mkdir|mkdir -p|" ${worksrcpath}/Makefile
-	}
+	# Fixes destroot issues
+	reinplace -E "s|^(GRASSTABLES_DIR\[^/]*)(.*)|\\1${destroot}\\2|" \
+		${worksrcpath}/Makefile
+	reinplace -E "s|^(AUTOLOAD_DIR\[^/]*)(.*)|\\1${destroot}\\2|" \
+		${worksrcpath}/Makefile
+	reinplace "s|mkdir|mkdir -p|" ${worksrcpath}/Makefile
 }
 
 build.target