[52332] trunk/dports/lang/ghc/Portfile
ryandesign at macports.org
ryandesign at macports.org
Sun Jun 14 01:49:19 PDT 2009
Revision: 52332
http://trac.macports.org/changeset/52332
Author: ryandesign at macports.org
Date: 2009-06-14 01:49:09 -0700 (Sun, 14 Jun 2009)
Log Message:
-----------
ghc: avoid "reinplace didn't change anything" warning with patch from #15514 when prefix is /opt/local
Modified Paths:
--------------
trunk/dports/lang/ghc/Portfile
Modified: trunk/dports/lang/ghc/Portfile
===================================================================
--- trunk/dports/lang/ghc/Portfile 2009-06-14 08:33:27 UTC (rev 52331)
+++ trunk/dports/lang/ghc/Portfile 2009-06-14 08:49:09 UTC (rev 52332)
@@ -204,15 +204,14 @@
reinplace "s|TOPDIROPT=-B/opt/local|TOPDIROPT=-B${workpath}/${canonicalname}-bootstrap|" ${workpath}/${canonicalname}-bootstrap/bin/ghc
- reinplace "s|-L/opt/local|-L${prefix}|" ${workpath}/${canonicalname}-bootstrap/bin/ghc
-
- reinplace "s|-I/opt/local|-I${prefix}|" ${workpath}/${canonicalname}-bootstrap/bin/ghc
-
- reinplace "s|/opt/local|${prefix}|g" \
- ${workpath}/${canonicalname}-bootstrap/lib/ghc-${ghc_bootversion}/ghc-asm \
- ${workpath}/${canonicalname}-bootstrap/lib/ghc-${ghc_bootversion}/ghc-split \
- ${workpath}/${canonicalname}-bootstrap/lib/ghc-${ghc_bootversion}/package.conf
-
+ if {"/opt/local" != ${prefix}} {
+ reinplace "s|-L/opt/local|-L${prefix}|" ${workpath}/${canonicalname}-bootstrap/bin/ghc
+ reinplace "s|-I/opt/local|-I${prefix}|" ${workpath}/${canonicalname}-bootstrap/bin/ghc
+ reinplace "s|/opt/local|${prefix}|g" \
+ ${workpath}/${canonicalname}-bootstrap/lib/ghc-${ghc_bootversion}/ghc-asm \
+ ${workpath}/${canonicalname}-bootstrap/lib/ghc-${ghc_bootversion}/ghc-split \
+ ${workpath}/${canonicalname}-bootstrap/lib/ghc-${ghc_bootversion}/package.conf
+ }
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090614/7f9cbed4/attachment.html>
More information about the macports-changes
mailing list