[31616] trunk/dports/lang/gcc42/Portfile

mww at macports.org mww at macports.org
Fri Nov 30 03:54:28 PST 2007


Revision: 31616
          http://trac.macosforge.org/projects/macports/changeset/31616
Author:   mww at macports.org
Date:     2007-11-30 03:54:18 -0800 (Fri, 30 Nov 2007)

Log Message:
-----------
need to catch the glob command for ffitarget.h - #13261

Modified Paths:
--------------
    trunk/dports/lang/gcc42/Portfile

Modified: trunk/dports/lang/gcc42/Portfile
===================================================================
--- trunk/dports/lang/gcc42/Portfile	2007-11-30 11:33:16 UTC (rev 31615)
+++ trunk/dports/lang/gcc42/Portfile	2007-11-30 11:54:18 UTC (rev 31616)
@@ -104,8 +104,7 @@
 
 post-destroot {
 	# install/copy ffitarget.h only if we have it
-	set ffitarget.h [glob ${destroot}${prefix}/lib/${name}/gcc/*/${version}/include/ffitarget.h]
-	if {[llength ${ffitarget.h}]} {
+	if {![catch {set ffitarget.h [glob ${destroot}${prefix}/lib/${name}/gcc/*/${version}/include/ffitarget.h]} result]} {
 		file copy ${ffitarget.h} ${destroot}${prefix}/include/${name}/
 	}
 	xinstall -m 755 -d ${destroot}${prefix}/etc/select/gcc

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071130/ff3c9e8a/attachment.html


More information about the macports-changes mailing list