# -*- 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                lskat
version             4.10.5
categories          kde kde4 games
license             LGPL-2+
maintainers         nicos openmaintainer
description         Lskat stands for Lieutnant Skat (from German Offiziersskat).
long_description    Lieutnant Skat (from German Offiziersskat) is a fun and \
                    engaging card game for two players, where the second player is \
                    either live opponent, or built in artificial intelligence. You \
                    can also play and test an online demo version of this game.
platforms           darwin
homepage            http://games.kde.org/game.php?game=lskat
master_sites        kde:stable/${version}/src
use_xz              yes
distname            ${name}-${version}
checksums           rmd160  bd37f57573b84b275827931c3f5a0da6d70918df \
                    sha256  266b5ca22c6222a85e4754ae593e8220a7dedac426b9167f0a2df0603894b5eb

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-old
}

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