[89642] trunk/dports/python/py-parsing/Portfile

ryandesign at macports.org ryandesign at macports.org
Sat Feb 4 21:58:23 PST 2012


Revision: 89642
          http://trac.macports.org/changeset/89642
Author:   ryandesign at macports.org
Date:     2012-02-04 21:58:21 -0800 (Sat, 04 Feb 2012)
Log Message:
-----------
py-parsing: create docdir before trying to install things into it (#33138), and use $subport instead of $name so the subports don't conflict with one another

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

Modified: trunk/dports/python/py-parsing/Portfile
===================================================================
--- trunk/dports/python/py-parsing/Portfile	2012-02-05 05:50:11 UTC (rev 89641)
+++ trunk/dports/python/py-parsing/Portfile	2012-02-05 05:58:21 UTC (rev 89642)
@@ -30,14 +30,14 @@
 
 if {$subport != $name} {
     post-destroot {
+        set docdir ${destroot}${prefix}/share/doc/${subport}
+        xinstall -d ${docdir}
         xinstall -m 644 -W ${worksrcpath} CHANGES HowToUsePyparsing.html \
-            LICENSE README ${destroot}${prefix}/share/doc/${name}
+            LICENSE README ${docdir}
         delete ${worksrcpath}/docs/examples ${worksrcpath}/docs/htmldoc
-        eval xinstall -m 644 [glob ${worksrcpath}/docs/*] \
-            ${destroot}${prefix}/share/doc/${name}
-        file copy ${worksrcpath}/htmldoc ${destroot}${prefix}/share/doc/${name}
-        eval xinstall -m 644 [glob ${worksrcpath}/examples/*] \
-            ${destroot}${prefix}/share/doc/${name}/examples/
+        eval xinstall -m 644 [glob ${worksrcpath}/docs/*] ${docdir}
+        file copy ${worksrcpath}/htmldoc ${docdir}
+        eval xinstall -m 644 [glob ${worksrcpath}/examples/*] ${docdir}/examples/
     }
     livecheck.type  none
 } else {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120204/319af31b/attachment.html>


More information about the macports-changes mailing list