Ticket #37254: 37254-1-whitespace.patch

File 37254-1-whitespace.patch, 1.8 KB (added by seanfarley (Sean Farley), 11 years ago)

py-cairo: fix off-by-one whitespace indentation

  • dports/python/py-cairo/Portfile

    # HG changeset patch
    # User Sean Farley <sean.michael.farley@gmail.com>
    # Date 1355161827 21600
    # Node ID 9be7b6db71c3e1de3a8d6a1abcd40811522d17ed
    # Parent  07385e8378f0438a91fbb608719fc4ef953536b3
    py-cairo: fix off-by-one whitespace indentation
    
    diff --git a/dports/python/py-cairo/Portfile b/dports/python/py-cairo/Portfile
    a b  
    3535if {${name} != ${subport}} {
    3636    depends_build-append port:py${python.version}-numpy
    3737
    3838    # pycairo distributes python 2.x versions as py2cairo
    3939    if {${python.version} < 31} {
    40         set my_name      py2cairo
     40        set my_name     py2cairo
    4141
    42         checksums        rmd160  ce75db9af32ef1a3e90f6aaa649cbb2493a941a4 \
    43                          sha256  d30439f06c2ec1a39e27464c6c828b6eface3b22ee17b2de05dc409e429a7431
     42        checksums       rmd160  ce75db9af32ef1a3e90f6aaa649cbb2493a941a4 \
     43                        sha256  d30439f06c2ec1a39e27464c6c828b6eface3b22ee17b2de05dc409e429a7431
    4444
    4545        post-patch {
    4646            reinplace "s|py3cairo|pycairo|g" ${worksrcpath}/setup.py
    4747        }
    4848    }
    4949
    50     distname             ${my_name}-${version}
     50    distname            ${my_name}-${version}
    5151
    5252    platform darwin 9 {
    5353        post-patch {
    5454           reinplace "s| -export-symbols-regex.*||g" ${worksrcpath}/src/Makefile.in
    5555        }
     
    6767
    6868    variant x11 {
    6969        require_active_variants cairo x11
    7070    }
    7171
    72     default_variants        +x11
     72    default_variants    +x11
    7373
    74     livecheck.type       none
     74    livecheck.type      none
    7575} else {
    76     livecheck.type       regex
    77     livecheck.regex      "${my_name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
     76    livecheck.type      regex
     77    livecheck.regex     "${my_name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
    7878}