Ticket #42440: patch-py-BitVector.diff

File patch-py-BitVector.diff, 2.1 KB (added by petrrr, 11 years ago)

patch for python/py-BitVector/Portfile

  • Portfile

    old new  
    44PortSystem          1.0
    55PortGroup           python 1.0
    66
    7 name                py-BitVector
    8 version             3.3
     7set _name           BitVector
     8
     9name                py-${_name}
     10version             3.3.1
    911categories-append   math
    1012platforms           darwin
    1113
     
    1921                    representation of bit arrays and for logical operations \
    2022                    on such arrays. It is written in pure Python.
    2123
    22 homepage            https://engineering.purdue.edu/kak/dist/BitVector-${version}.html
     24homepage            https://engineering.purdue.edu/kak/dist/${_name}-${version}.html
    2325
    24 distname            BitVector-${version}
     26distname            ${_name}-${version}
    2527master_sites        https://engineering.purdue.edu/kak/dist
    2628
    27 checksums           md5     5cd94e48eefabac749edaebf8337fc5a \
    28                     rmd160  1228aa6855a8958dd14ecbe5c639f3d343588183 \
    29                     sha256  ad82343d3e12f2538a250de3385c2511e980e85478f858659c5280eb988d0484
     29checksums           md5     08cde7d782b7a5a721a94225a1488985 \
     30                    rmd160  9b1cae21dc0852f826625770da8cede6878f3271 \
     31                    sha256  798ace69f4f845722ee67648ff13ac29aba966f7ebd56f7ae0d1035054a0c6b4
    3032
    3133python.versions     26 27 31 32 33 34
    3234
     
    4749
    4850    # Adding documentation & examples
    4951    post-destroot {
    50         copy ${worksrcpath}/${distname}.html ${destroot}${prefix}/share/doc/${subport}
     52        set dest_doc ${destroot}${prefix}/share/doc/${subport}
     53        copy ${worksrcpath}/${distname}.html ${dest_doc}
    5154
    5255        # Avoid creation of example directory
    53         delete  ${destroot}${prefix}/share/doc/${subport}/examples
    54         copy ${worksrcpath}/Examples ${destroot}${prefix}/share/doc/${subport}/examples
     56        delete ${dest_doc}/examples
     57        copy ${worksrcpath}/Examples ${dest_doc}/examples
    5558    }
     59
     60    livecheck.type      none
     61} else {
     62    livecheck.type      regex
     63    livecheck.url       [lindex ${master_sites} 0]
     64    livecheck.regex     "${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}"
    5665}