[45217] trunk/dports/x11/xrender/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Sun Jan 11 02:36:36 PST 2009


Revision: 45217
          http://trac.macports.org/changeset/45217
Author:   jeremyhu at macports.org
Date:     2009-01-11 02:36:36 -0800 (Sun, 11 Jan 2009)
Log Message:
-----------
xrender: Only do the post-destroot if we are actually installing something (fix for +system_x11).  See #17956

Modified Paths:
--------------
    trunk/dports/x11/xrender/Portfile

Modified: trunk/dports/x11/xrender/Portfile
===================================================================
--- trunk/dports/x11/xrender/Portfile	2009-01-11 10:07:39 UTC (rev 45216)
+++ trunk/dports/x11/xrender/Portfile	2009-01-11 10:36:36 UTC (rev 45217)
@@ -35,10 +35,12 @@
 use_parallel_build  yes
 
 post-destroot {
-    set docdir ${prefix}/share/doc/${name}-${version}
-    xinstall -d ${destroot}${docdir}
-    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \
-        ${destroot}${docdir}
+    if {[file exists "${worksrcpath}"]} { 
+        set docdir ${prefix}/share/doc/${name}-${version}
+        xinstall -d ${destroot}${docdir}
+        xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \
+            ${destroot}${docdir}
+    }
 }
 
 platform macosx {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090111/eb0871e2/attachment.html>


More information about the macports-changes mailing list