# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem      1.0

name            gnuchess
version         6.2.9
revision        0
categories      games
platforms       darwin freebsd
maintainers     {khindenburg @kurthindenburg} openmaintainer

license         GPL-3+

description     GNU Chess is a chess-playing program.
long_description    ${description} It can be used to play chess \
                    against the computer on a terminal or, more \
                    commonly, as a chess engine for graphical chess \
                    frontends such as XBoard.

homepage        https://www.gnu.org/software/chess
master_sites    gnu:chess

depends_lib-append      port:readline port:ncurses

checksums           rmd160  0ef3f443044a49f25c3a10f033d4527152f10234 \
                    sha256  ddfcc20bdd756900a9ab6c42c7daf90a2893bf7f19ce347420ce36baebc41890 \
                    size    802697

post-patch {
    # Fix "/bin/sh: .././install-sh: Permission denied"
    file attributes ${worksrcpath}/install-sh -permissions a+x
}
