# -*- 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                ski
version             6.5
revision            3
categories          games python
platforms           any
license             GPL-2
maintainers         nomaintainer

description         ASCII downhill skiing game
long_description    Imagine you are skiing down an infinite slope, \
                    facing such hazards as trees, ice, bare ground, \
                    and the man-eating Yeti! Unfortunately, you have \
                    put your jet-powered skis on backwards, so you \
                    can't see ahead where you are going\; only behind \
                    where you have been. However, you can turn to \
                    either side, jump or hop through the air, teleport \
                    through hyperspace, launch nuclear ICBMs, and cast \
                    spells to call the Fire Demon. And since the \
                    hazards occur in patches, you can skillfully \
                    outmaneuver them. A fun and very silly game that \
                    proves you don't need fancy graphical user \
                    interfaces to have a good time. The internals of \
                    this game are actually kind of interesting. The \
                    terrain generator is a simple cellular automaton \
                    that generates crude 2D fractals.
homepage            http://www.catb.org/~esr/ski/

depends_run         port:python27
supported_archs     noarch

master_sites        sunsite:games
checksums           rmd160  9a48559183d15484442c30ed379daeab0b1c7c16 \
                    sha256  346be95447df7eddc3888b5378dbed4bc9cd9136b14839b89c771ca425b7f1ed

patchfiles          use-macports-python.patch
post-patch {
    reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/ski
}

use_configure       no

destroot {
    xinstall -m 755 ${worksrcpath}/ski ${destroot}${prefix}/bin
    xinstall -m 444 ${worksrcpath}/ski.6 ${destroot}${prefix}/share/man/man6
}
