# -*- 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
# $Id: Portfile 107854 2013-07-07 13:08:30Z nicos@macports.org $

PortSystem          1.0
PortGroup           kde4   1.1

name                kreversi
version             4.10.5
categories          kde kde4 games
license             GPL-2+
maintainers         nicos openmaintainer
description         KReversi is a simple one player strategy game played against \
                    the computer. 
long_description    ${description} If a player's piece is captured by an opposing \
                    player, that piece is turned over to reveal the color of that \
                    player. A winner is declared when one player has more pieces of \
                    his own color on the board and there are no more possible moves.
platforms           darwin
homepage            http://games.kde.org/game.php?game=kreversi
master_sites        kde:stable/${version}/src
use_xz              yes
distname            ${name}-${version}
checksums           rmd160  5c9e4e8608209267aacb9682f0aabdae2f7b45ce \
                    sha256  1f74ae8318c300dda47403bc4a84e857c4b8c50199eeaaac9c18e1f58159afd7

#Binaries do not link to openssl, nor use the ssl backend of kdelibs4
license_noconflict  openssl

depends_lib-append  port:kdelibs4 \
                    port:libkdegames

if {![variant_isset docs]} {
    patchfiles      patch-CMakeLists.diff
}

#Delete icons-old directory, which break configure at the recursive search of 
#kde4_add_app_icon
pre-configure {
    delete ${worksrcpath}/icons/icons-old
}


livecheck.url       http://kde.mirrors.hoobly.com/stable/
livecheck.regex     (\\d+(\\.\\d+)+)
