[143667] trunk/dports/net/monarch/Portfile

ryandesign at macports.org ryandesign at macports.org
Thu Dec 17 03:37:20 PST 2015


Revision: 143667
          https://trac.macports.org/changeset/143667
Author:   ryandesign at macports.org
Date:     2015-12-17 03:37:20 -0800 (Thu, 17 Dec 2015)
Log Message:
-----------
monarch: use expansion operator instead of eval

Modified Paths:
--------------
    trunk/dports/net/monarch/Portfile

Modified: trunk/dports/net/monarch/Portfile
===================================================================
--- trunk/dports/net/monarch/Portfile	2015-12-17 09:56:57 UTC (rev 143666)
+++ trunk/dports/net/monarch/Portfile	2015-12-17 11:37:20 UTC (rev 143667)
@@ -42,20 +42,20 @@
 
 destroot {
     xinstall -m 755 -d ${destroot}${monarchdir}
-    eval copy [glob ${worksrcpath}/*] ${destroot}${monarchdir}
+    copy {*}[glob ${worksrcpath}/*] ${destroot}${monarchdir}
 }
 
 post-destroot {
-    eval reinplace "s|/usr/bin/perl|${prefix}/bin/perl${perl5.major}|g" \
-        [glob ${destroot}${monarchdir}/*.pl]
+    reinplace "s|/usr/bin/perl|${prefix}/bin/perl${perl5.major}|g" \
+        {*}[glob ${destroot}${monarchdir}/*.pl]
 
-    eval reinplace "s|/usr/local/groundwork/bin/perl|${prefix}/bin/perl${perl5.major}|g" \
-        [glob ${destroot}${monarchdir}/*.cgi] \
-        [glob ${destroot}${monarchdir}/*.p*]
+    reinplace "s|/usr/local/groundwork/bin/perl|${prefix}/bin/perl${perl5.major}|g" \
+        {*}[glob ${destroot}${monarchdir}/*.cgi] \
+        {*}[glob ${destroot}${monarchdir}/*.p*]
 
-    eval reinplace "s|/usr/local/groundwork/monarch|${monarchdir}|g" \
-        [glob ${destroot}${monarchdir}/*.cgi] \
-        [glob ${destroot}${monarchdir}/*.pl] \
+    reinplace "s|/usr/local/groundwork/monarch|${monarchdir}|g" \
+        {*}[glob ${destroot}${monarchdir}/*.cgi] \
+        {*}[glob ${destroot}${monarchdir}/*.pl] \
         ${destroot}${monarchdir}/monarch.sql
 
 # Fix mysqldump location
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151217/70d067aa/attachment.html>


More information about the macports-changes mailing list