[89145] trunk/dports/science/magic/Portfile

ryandesign at macports.org ryandesign at macports.org
Thu Jan 19 14:14:12 PST 2012


Revision: 89145
          http://trac.macports.org/changeset/89145
Author:   ryandesign at macports.org
Date:     2012-01-19 14:14:11 -0800 (Thu, 19 Jan 2012)
Log Message:
-----------
magic: notice when essential libraries don't get build by the build script and exit; see #32934

Modified Paths:
--------------
    trunk/dports/science/magic/Portfile

Modified: trunk/dports/science/magic/Portfile
===================================================================
--- trunk/dports/science/magic/Portfile	2012-01-19 22:13:43 UTC (rev 89144)
+++ trunk/dports/science/magic/Portfile	2012-01-19 22:14:11 UTC (rev 89145)
@@ -37,6 +37,16 @@
 
 use_parallel_build  no
 
+post-build {
+    # The build and install don't notice when essential files don't get built,
+    # so we must exit for it when it fails. #32934
+    foreach f {ext2sim/exttosim.dylib ext2spice/exttospice.dylib magic/tclmagic.dylib} {
+        if {![file exists ${worksrcpath}/${f}]} {
+            return -code error "${f} did not get built"
+        }
+    }
+}
+
 livecheck.type      regex
 livecheck.url       [lindex ${master_sites} 0]
 livecheck.regex     ${name}-(${major}\\.\[0-9.\]+)${extract.suffix}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120119/3875fd58/attachment.html>


More information about the macports-changes mailing list