[92509] trunk/dports/python/py-gdal/Portfile

jmr at macports.org jmr at macports.org
Mon Apr 30 07:13:18 PDT 2012


Revision: 92509
          https://trac.macports.org/changeset/92509
Author:   jmr at macports.org
Date:     2012-04-30 07:13:18 -0700 (Mon, 30 Apr 2012)
Log Message:
-----------
py-gdal: fix stub

Modified Paths:
--------------
    trunk/dports/python/py-gdal/Portfile

Modified: trunk/dports/python/py-gdal/Portfile
===================================================================
--- 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
-}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120430/c4401edd/attachment.html>


More information about the macports-changes mailing list