Ticket #41914: bastet-0.43.diff

File bastet-0.43.diff, 2.4 KB (added by ryandesign (Ryan Carsten Schmidt), 10 years ago)

proposed patch

  • Portfile

    old new  
    44PortSystem 1.0
    55
    66name                bastet
    7 version             0.41
     7version             0.43
    88categories          games
    99platforms           darwin
    1010maintainers         sfiera
     11license             GPL-3+
     12
    1113description         Bastard Tetris is an antagonistic Tetris clone
    1214long_description \
    1315  Bastet stands for bastard tetris, and is a Tetris(R) \
     
    1820
    1921homepage            http://fph.altervista.org/prog/bastet.shtml
    2022master_sites        http://fph.altervista.org/prog/files/
    21 checksums           md5 48379dc98916ba083e9be5544f552a06
    2223extract.suffix      .tgz
    23 patchfiles          patch-Makefile.diff
    2424
    25 depends_lib-append port:ncurses
     25checksums           rmd160  d84fe09316238443ee884d2932b3ecb4c0191cb0 \
     26                    sha256  e208c68684cc9b818a08b0d3f5f1e7ef381b1e4d8bc801a90b5ff6a8f00d8168
    2627
    27 use_configure       no
     28depends_lib-append  port:boost \
     29                    port:ncurses
    2830
    29 build.args          PREFIX=${prefix}
     31patchfiles          patch-Makefile.diff
    3032
    3133post-patch {
    32   reinplace "s|termio\.h|termios.h|" ${worksrcpath}/bast.c
     34    reinplace "s|/var/games|${prefix}/var/games|g" ${worksrcpath}/bastet.6 ${worksrcpath}/Config.cpp
    3335}
    3436
     37use_configure       no
     38
     39variant universal {}
     40
     41build.env           CXX=${configure.cxx} \
     42                    CXXFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]" \
     43                    LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"
     44
     45set scoredir        ${prefix}/var/games/bastet
     46set scorefile       ${scoredir}/bastet.scores
     47
     48destroot.keepdirs   ${scoredir}
     49
    3550destroot {
    3651  xinstall -m 755 ${worksrcpath}/bastet ${destroot}${prefix}/bin/
    37   xinstall -m 755 -d ${destroot}${prefix}/var/games/bastet \
    38     ${destroot}${prefix}/share/doc/${name}
    39   xinstall -m 666 ${filespath}/bastet.scores \
    40     ${destroot}${prefix}/var/games/bastet/
    41   xinstall -m 644 -W ${worksrcpath} AUTHORS BUGS COPYING NEWS README \
    42     README-Petris TODO ${destroot}${prefix}/share/doc/${name}
     52    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
     53    xinstall -m 644 -W ${worksrcpath} AUTHORS LICENSE NEWS README \
     54        ${destroot}${prefix}/share/doc/${subport}
     55}
     56
     57post-activate {
     58    if {![file exists ${scorefile}]} {
     59        touch ${scorefile}
     60        file attributes ${scorefile} -permissions 666
     61    }
    4362}
    4463
    4564livecheck.type  regex