# $Id: Portfile 65687 2010-03-30 09:00:39Z ryandesign@macports.org $

PortSystem       1.0
name             bluemoon
version          2.9
categories       games
maintainers      nomaintainer
description      52-card solitaire game
long_description \
    This 52-card solitaire starts with the entire deck shuffled and \
    dealt out in four rows. The aces are then moved to the left end \
    of the layout, making 4 initial free spaces. You may move to a \
    space only the card that matches the left neighbor in suit, and \
    is one greater in rank. Kings are high, so no cards may be placed \
    to their right (they create dead spaces). When no moves can be \
    made, cards still out of sequence are reshuffled and dealt face \
    up after the ends of the partial sequences, leaving a card space \
    after each sequence, so that each row looks like a partial \
    sequence followed by a space, followed by enough cards to make a \
    row of 14. A moment's reflection will show that this game cannot \
    take more than 13 deals. A good score is 1-3 deals, 4-7 is \
    average, 8 or more is poor.
homepage         http://www.catb.org/~esr/bluemoon/
platforms        darwin
master_sites     sunsite:games/solitaires
checksums        md5 e8d4a6f3d62c5d71e1d3b00df3474839
patch {
    reinplace s|/usr|$prefix|g $worksrcpath/Makefile
    reinplace "s|cp bluemoon |cp bluemoon \$\{DESTDIR\}|" $worksrcpath/Makefile
    reinplace "s|cp bluemoon.6 |cp bluemoon.6 \$\{DESTDIR\}|" $worksrcpath/Makefile
}
use_configure    no
build.target     ${name}

livecheck.type   regex
livecheck.regex  ${name}-(\[0-9.\]+)\\.tar
