Ticket #37393: gtypist.patch

File gtypist.patch, 1.4 KB (added by g5pw (Aljaž Srebrnič), 12 years ago)
  • Portfile

     
    44PortSystem 1.0
    55
    66name            gtypist
    7 version         2.8.3
     7version         2.9.1
    88categories      games
    99platforms       darwin
    1010maintainers     josephholsten.com:joseph
     
    1717homepage        http://www.gnu.org/software/gtypist/
    1818master_sites    gnu:gtypist
    1919
    20 checksums       md5 ea3c7faa01d7052c156d50fa0e0506b8 \
    21                 sha1 ac7b22c5ac4d6bb6359edb687b0810b3bb357ee7 \
    22                 rmd160 139a61badcc2324dc28b7313967187689a1d87ce
     20checksums       rmd160  753f1d2630969f5eed5830b9b4a09f2c5ca79e4c \
     21                sha256  a5885654aab74027999a67a9bbd7c3b6823479f89a6f1439244bf9c5536fb67d
    2322
    2423depends_lib     port:ncurses port:gettext
    2524
    2625configure.args  --mandir=${prefix}/share/man \
    2726                --infodir=${prefix}/share/info
    2827
     28patch {
     29    #Fix ncursesw dependency, wide char support is included in ncurses now.
     30    foreach f {cursmenu.c error.c gtypist.c script.c utf8.c} {
     31        reinplace "s|ncursesw/ncurses.h|ncurses.h|" ${worksrcpath}/src/$f
     32    }
     33    reinplace "s|ncursesw/ncurses.h|ncurses.h|" ${worksrcpath}/configure
     34    reinplace "s|-lncursesw|-lncurses|" ${worksrcpath}/configure
     35}
     36
    2937livecheck.type  regex
    3038livecheck.url   http://ftp.gnu.org/gnu/gtypist/?C=M&O=D
    3139livecheck.regex ${name}-(\\d+(?:\\.\\d+)+)\\.tar