[80122] trunk/dports/archivers/zlib/Portfile

ryandesign at macports.org ryandesign at macports.org
Mon Jul 4 13:08:06 PDT 2011


Revision: 80122
          http://trac.macports.org/changeset/80122
Author:   ryandesign at macports.org
Date:     2011-07-04 13:08:06 -0700 (Mon, 04 Jul 2011)
Log Message:
-----------
zlib: ensure zlib does not complete installation without libz.dylib, to prevent problems like #29137

Modified Paths:
--------------
    trunk/dports/archivers/zlib/Portfile

Modified: trunk/dports/archivers/zlib/Portfile
===================================================================
--- trunk/dports/archivers/zlib/Portfile	2011-07-04 20:04:52 UTC (rev 80121)
+++ trunk/dports/archivers/zlib/Portfile	2011-07-04 20:08:06 UTC (rev 80122)
@@ -39,6 +39,13 @@
 destroot.destdir        prefix=${destroot}${prefix}
 
 post-destroot {
+    foreach {neededfile} "${prefix}/lib/libz.dylib" {
+        if {![file exists ${destroot}${neededfile}]} {
+            ui_error "${neededfile} is not in the destroot. Please clean ${name} and try again."
+            return -code error "missing ${neededfile} in destroot"
+        }
+    }
+    
     set docdir ${prefix}/share/doc/${name}
     xinstall -d ${destroot}${docdir}
     xinstall -m 0644 -W ${worksrcpath} ChangeLog FAQ README zlib.3.pdf ${destroot}${docdir}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110704/3b1bede7/attachment.html>


More information about the macports-changes mailing list