[79548] trunk/dports/devel/mercurial/Portfile

Ryan Schmidt ryandesign at macports.org
Fri Jun 17 19:39:12 PDT 2011


On Jun 17, 2011, at 20:14, Jeremy Huddleston wrote:

> On Jun 17, 2011, at 16:53, Ryan Schmidt wrote:
> 
>> On Jun 17, 2011, at 18:41, jeremyhu at macports.org wrote:
>> 
>>> 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
>>> +    }
>>> +}
>> 
>> In the non-universal case, shouldn't you reinplace with ${configure.cc_archflags} instead of the empty string?
> 
> Yeah.  I just added that.  Thanks.
> 
>> Also this is not an openmaintainer port. Did Deric approve this change?
> 
> Yes.
> 
>> Was there a ticket for this issue?
> 
> No.  I've just been emailing maintainers if their ports are not openmaintainer.

In the future, I would recommend you file tickets, so that this exchange of information is more transparent to all.




More information about the macports-dev mailing list