Revision
92509
Author
jmr@macports.org
Date
2012-04-30 07:13:18 -0700 (Mon, 30 Apr 2012)

Log Message

py-gdal: fix stub

Modified Paths

Diff

Modified: trunk/dports/python/py-gdal/Portfile (92508 => 92509)


--- trunk/dports/python/py-gdal/Portfile	2012-04-30 13:56:08 UTC (rev 92508)
+++ trunk/dports/python/py-gdal/Portfile	2012-04-30 14:13:18 UTC (rev 92509)
@@ -25,26 +25,25 @@
 if {$subport != $name} {
     depends_lib-append     port:gdal \
                            port:py${python.version}-numpy
+    patch {
+        reinplace "s|../../apps/|${prefix}/bin/|" ${worksrcpath}/setup.cfg
+    }
+    
+    post-destroot {
+        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
+        xinstall -m 755 -d ${destroot}${prefix}/share/examples/${subport}
+        xinstall -m 755 -d ${destroot}${prefix}/share/examples/${subport}/scripts
+    
+        xinstall -W ${worksrcpath} README.txt PKG-INFO \
+            ${destroot}${prefix}/share/doc/${subport}
+    
+        xinstall -m 644 ${worksrcpath}/samples/README \
+            ${destroot}${prefix}/share/examples/${subport}/
+        eval xinstall -m 755 [glob ${worksrcpath}/samples/*.py] \
+            ${destroot}${prefix}/share/examples/${subport}/
+        eval xinstall -m 755 [glob ${worksrcpath}/scripts/*.py] \
+            ${destroot}${prefix}/share/examples/${subport}/scripts
+        eval xinstall -m 644 [glob ${worksrcpath}/scripts/*.dox] \
+            ${destroot}${prefix}/share/examples/${subport}/scripts
+    }
 }
-
-patch {
-    reinplace "s|../../apps/|${prefix}/bin/|" ${worksrcpath}/setup.cfg
-}
-
-post-destroot {
-    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
-    xinstall -m 755 -d ${destroot}${prefix}/share/examples/${name}
-    xinstall -m 755 -d ${destroot}${prefix}/share/examples/${name}/scripts
-
-    xinstall -W ${worksrcpath} README.txt PKG-INFO \
-        ${destroot}${prefix}/share/doc/${name}
-
-    xinstall -m 644 ${worksrcpath}/samples/README \
-        ${destroot}${prefix}/share/examples/${name}/
-    eval xinstall -m 755 [glob ${worksrcpath}/samples/*.py] \
-        ${destroot}${prefix}/share/examples/${name}/
-    eval xinstall -m 755 [glob ${worksrcpath}/scripts/*.py] \
-        ${destroot}${prefix}/share/examples/${name}/scripts
-    eval xinstall -m 644 [glob ${worksrcpath}/scripts/*.dox] \
-        ${destroot}${prefix}/share/examples/${name}/scripts
-}