Revision: 87387 http://trac.macports.org/changeset/87387 Author: ryandesign@macports.org Date: 2011-11-18 21:47:36 -0800 (Fri, 18 Nov 2011) Log Message: ----------- mercurial: simplify getting archflags; see #31977 (maintainer timeout) Modified Paths: -------------- trunk/dports/devel/mercurial/Portfile Modified: trunk/dports/devel/mercurial/Portfile =================================================================== --- trunk/dports/devel/mercurial/Portfile 2011-11-19 05:45:40 UTC (rev 87386) +++ trunk/dports/devel/mercurial/Portfile 2011-11-19 05:47:36 UTC (rev 87387) @@ -33,12 +33,10 @@ python.default_version 27 +variant universal {} + 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/${configure.cc_archflags}/" ${worksrcpath}/setup.py - } + reinplace "s/-arch i386 -arch x86_64/[get_canonical_archflags]/" ${worksrcpath}/setup.py } post-destroot {