Ticket #42069: Portfile.diff

File Portfile.diff, 1.3 KB (added by zpeeters@…, 10 years ago)
  • Portfile

    old new  
    1919
    2020master_sites            ftp://fr.rpmfind.net/pub/libxml/ \
    2121                        ftp://gd.tuwien.ac.at/pub/libxml/ \
    22                         ${homepage}sources/ \
     22                        http://xmlsoft.org/sources/ \
    2323                        ftp://xmlsoft.org/libxml2/
    2424
    2525distname                libxml2-${version}
     
    2828checksums               rmd160  257285d9ac070ed9f58666b7bd7c4653651c871b \
    2929                        sha256  fd3c64cb66f2c4ea27e934d275904d92cec494a8e8405613780cbc8a71680fdb
    3030
    31 python.versions         24 25 26 27
     31python.versions         24 25 26 27 32 33
    3232
    3333if {${name} ne ${subport}} {
    3434    depends_lib-append      port:libxml2
     
    3636    worksrcdir              ${worksrcdir}/python
    3737   
    3838    patchfiles              patch-setup.py.diff
     39   
     40    if {${python.version} >= 30} {
     41        patchfiles-append   patch-drv_libxml2.py.diff
     42    }
     43   
    3944    post-patch {
    4045      reinplace "s|@PREFIX@|$prefix|" ${worksrcpath}/setup.py
    4146    }
     
    4954    livecheck.type  none
    5055} else {
    5156    livecheck.type  regex
    52     livecheck.url   ${homepage}news.html
     57    livecheck.url   http://xmlsoft.org/news.html
    5358    livecheck.regex {<h3>(\d+(?:\.\d+)*): .*</h3>}
    5459}