Ticket #31977: mercurial.diff

File mercurial.diff, 606 bytes (added by ryandesign (Ryan Carsten Schmidt), 13 years ago)

proposed patch

  • Portfile

     
    3333
    3434python.default_version 27
    3535
     36variant universal {}
     37
    3638post-patch {
    37     if {[variant_isset universal]} {
    38         reinplace "s/-arch i386 -arch x86_64/${configure.universal_cflags}/" ${worksrcpath}/setup.py
    39     } else {
    40         reinplace "s/-arch i386 -arch x86_64/${configure.cc_archflags}/" ${worksrcpath}/setup.py
    41     }
     39    reinplace "s/-arch i386 -arch x86_64/[get_canonical_archflags]/" ${worksrcpath}/setup.py
    4240}
    4341
    4442post-destroot {