[136578] trunk/dports/net/nrg/Portfile

ryandesign at macports.org ryandesign at macports.org
Thu May 21 20:19:41 PDT 2015


Revision: 136578
          https://trac.macports.org/changeset/136578
Author:   ryandesign at macports.org
Date:     2015-05-21 20:19:41 -0700 (Thu, 21 May 2015)
Log Message:
-----------
nrg: use expand operator instead of eval; use move instead of file rename

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

Modified: trunk/dports/net/nrg/Portfile
===================================================================
--- trunk/dports/net/nrg/Portfile	2015-05-22 03:18:36 UTC (rev 136577)
+++ trunk/dports/net/nrg/Portfile	2015-05-22 03:19:41 UTC (rev 136578)
@@ -58,8 +58,8 @@
                 ${worksrcpath}/examples/NRG.mconf.in \
                 ${worksrcpath}/src/nrg-spiketrimmer.in
 
-        eval reinplace "s|@prefix@/bin|@bindir@|g" \
-                [glob ${worksrcpath}/templates/*.in]
+        reinplace "s|@prefix@/bin|@bindir@|g" \
+                {*}[glob ${worksrcpath}/templates/*.in]
 
 #### Make NRG page title the way I want it ####
        reinplace "s|Somesite's NRG Home Page|NRG Home Page|g" \
@@ -90,10 +90,10 @@
 post-destroot {
 # Install images to \${prefix}/var/nrg/web/icons
 	xinstall -d -m 755 ${destroot}${prefix}/var/${name}/web/icons
-	eval xinstall -m 755 [glob ${worksrcpath}/images/*.*] ${destroot}${prefix}/var/${name}/web/icons
+	xinstall -m 755 {*}[glob ${worksrcpath}/images/*.*] ${destroot}${prefix}/var/${name}/web/icons
 
 # Rename Site.mconf so graphed devices won't get rewritten on port upgrades
-	file rename ${destroot}${prefix}/var/${name}/Site.mconf \
+	move ${destroot}${prefix}/var/${name}/Site.mconf \
 		${destroot}${prefix}/var/${name}/Site.mconf.sample
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150521/73cff52f/attachment-0001.html>


More information about the macports-changes mailing list