[MacPorts] PortfileRecipes modified

MacPorts noreply at macports.org
Sun Oct 12 18:22:19 PDT 2014


Page "PortfileRecipes" was changed by larryv at macports.org
Diff URL: <https://trac.macports.org/wiki/PortfileRecipes?action=diff&version=80>
Revision 80
Comment: recommend argument expansion instead of eval
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: PortfileRecipes
=========================================================================
--- PortfileRecipes (version: 79)
+++ PortfileRecipes (version: 80)
@@ -57,13 +57,13 @@
 }}}
 
 == Using glob results in "Cannot stat: <list of files>" == #glob
-glob returns a list which is not handled by some commands (e.g. xinstall); instead, wrap the command in an eval.  Instead of
+glob returns a list which is not handled by some commands (e.g. xinstall); instead, use argument expansion, introduced with Tcl 8.5.  Instead of
 {{{
 xinstall -m 644 [glob ${worksrcpath}/docs/*.html] ${destroot}${prefix}/share/doc/${subport}
 }}}
 which fails with the "Cannot stat..." error, instead use
 {{{
-eval xinstall -m 644 [glob ${worksrcpath}/docs/*.html] ${destroot}${prefix}/share/doc/${subport}
+xinstall -m 644 {*}[glob ${worksrcpath}/docs/*.html] ${destroot}${prefix}/share/doc/${subport}
 }}}
 
 
-------8<------8<------8<------8<------8<------8<------8<------8<--------

--
Page URL: <https://trac.macports.org/wiki/PortfileRecipes>
MacPorts <http://www.macports.org/>
Ports system for OS X

This is an automated message. Someone added your email address to be
notified of changes on 'PortfileRecipes' page.
If it was not you, please report to .


More information about the macports-changes mailing list