[79548] trunk/dports/devel/mercurial/Portfile
jeremyhu at macports.org
jeremyhu at macports.org
Fri Jun 17 16:41:13 PDT 2011
Revision: 79548
http://trac.macports.org/changeset/79548
Author: jeremyhu at macports.org
Date: 2011-06-17 16:41:09 -0700 (Fri, 17 Jun 2011)
Log Message:
-----------
mercurial: Build fix for -universal variant
Modified Paths:
--------------
trunk/dports/devel/mercurial/Portfile
Modified: trunk/dports/devel/mercurial/Portfile
===================================================================
--- trunk/dports/devel/mercurial/Portfile 2011-06-17 22:12:38 UTC (rev 79547)
+++ trunk/dports/devel/mercurial/Portfile 2011-06-17 23:41:09 UTC (rev 79548)
@@ -32,6 +32,14 @@
rmd160 c9c21ac48e6c37360f4de5833ddf0ee5e2594620
depends_run port:curl-ca-bundle
+post-patch {
+ if {[variant_isset universal]} {
+ reinplace "s/-arch i386 -arch x86_64/${configure.universal_cflags}/" ${worksrcpath}/setup.py
+ } else {
+ reinplace "s/-arch i386 -arch x86_64//" ${worksrcpath}/setup.py
+ }
+}
+
post-destroot {
# configure ssl certificates
xinstall -d -m 755 ${destroot}${prefix}/etc/mercurial
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110617/d50c0e36/attachment.html>
More information about the macports-changes
mailing list