Revision
72773
Author
michaelld@macports.org
Date
2010-10-26 04:26:36 -0700 (Tue, 26 Oct 2010)

Log Message

Fix typo in use of qt4 portgroup variable.
Rename non-obvious files to be fixed to 'fixfile'.

Modified Paths

Diff

Modified: trunk/dports/audio/liblastfm/Portfile (72772 => 72773)


--- trunk/dports/audio/liblastfm/Portfile	2010-10-26 08:46:12 UTC (rev 72772)
+++ trunk/dports/audio/liblastfm/Portfile	2010-10-26 11:26:36 UTC (rev 72773)
@@ -34,14 +34,16 @@
     # create Makefile's, then patch them to remove a flaw made by qmake.
     # (1) find subdir Makefile names from top-level Makefile, and have
     # 'make' create each in turn.
-    foreach tMf [exec grep -e "Makefile\[\^ \]\*:" ${worksrcpath}/Makefile | \
+    foreach fixfile [exec grep -e "Makefile\[\^ \]\*:" \
+                         ${worksrcpath}/Makefile | \
                      sed -e "s@\\(\[^ \]*/Makefile\[^ \]*\\):\[^ \]*@\\1@g"] {
-        system "cd ${worksrcpath} && PATH=${qtdir}/bin:$env(PATH) make ${tMf}"
+        system "cd ${worksrcpath} && PATH=${qt_dir}/bin:$env(PATH) \
+                    make ${fixfile}"
     }
 
     # (2) find all created Makefile*'s, and reinplace the offending flaw
-    foreach tMf [exec find ${worksrcpath} -name "Makefile*"] {
-        reinplace "s@\\(-arch \[^ \]*\\) -arch@\\1@" ${tMf}
+    foreach fixfile [exec find ${worksrcpath} -name "Makefile*"] {
+        reinplace "s@\\(-arch \[^ \]*\\) -arch@\\1@" ${fixfile}
     }
 }