Changeset 142449


Ignore:
Timestamp:
Nov 12, 2015, 8:30:00 AM (4 years ago)
Author:
ryandesign@…
Message:

bastet: update to latest upstream commit; fix permissions of global scores file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/games/bastet/Portfile

    r139469 r142449  
    55PortGroup           github 1.0
    66
    7 github.setup        fph bastet 2c9d978e22ea78f47e3c522ac7c11d2223a1b8b4
     7github.setup        fph bastet 5037e410fde6fafe8e6bc4cf17a12ad98e01c17e
    88version             0.43.1
    9 revision            1
     9revision            2
    1010categories          games
    1111platforms           darwin
     
    2323homepage            http://fph.altervista.org/prog/bastet.shtml
    2424
    25 checksums           rmd160  447fae4e2134ee4552ab2f82fa2f95d2e4841112 \
    26                     sha256  064cc85c95c057b04b3d3f14d1c6bda56d6b0bec9e086df7f7d0188aadc69dea
     25checksums           rmd160  ff411887c8326f120b859db7d52970cb895bf8f1 \
     26                    sha256  8dd16613623a3e0086fd2a2c036b47aadf9f96effe1513609d50f956f76a76db
    2727
    2828depends_lib-append  port:boost \
    2929                    port:ncurses
    3030
     31set scoredir        ${prefix}/var/games/${name}
     32set scorefile       ${scoredir}/bastet.scores2
     33
    3134post-patch {
    32     reinplace "s|/var/games|${prefix}/var/games|g" ${worksrcpath}/bastet.6 ${worksrcpath}/Config.cpp
     35    reinplace "s|/var/games|${scoredir}|g" ${worksrcpath}/bastet.6 ${worksrcpath}/Config.cpp
    3336}
    3437
     
    4144                    CXXFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]" \
    4245                    LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"
    43 
    44 set scoredir        ${prefix}/var/games/bastet
    45 set scorefile       ${scoredir}/bastet.scores2
    4646
    4747destroot.keepdirs   ${scoredir}
     
    5959    if {![file exists ${scorefile}]} {
    6060        touch ${scorefile}
    61         file attributes ${scorefile} -permissions 666
     61        file attributes ${scorefile} -permissions 0666
     62    }
     63    # Fix incorrect permissions set by previous versions of this port.
     64    if {[file attributes ${scorefile} -permissions] == 666} {
     65        file attributes ${scorefile} -permissions 0666
    6266    }
    6367}
Note: See TracChangeset for help on using the changeset viewer.