# -*- 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                ksquares
version             4.10.5
categories          kde kde4 games
license             GPL-2+
maintainers         nicos openmaintainer
description         KSquares is a fun and exciting game for desktop environment. 
long_description    ${description} The game is modeled after the well known pen \
                    and paper based game of Dots and Boxes.
platforms           darwin
homepage            http://games.kde.org/game.php?game=ksquares
master_sites        kde:stable/${version}/src
use_xz              yes
distname            ${name}-${version}
checksums           rmd160  469989685c1062907effc52f3ff8b8f69e94ed5e \
                    sha256  aca3bc04bc8b5dd54af17e5eb9968f85625de24232a295a87a21022b3c0cdf3a

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

depends_lib-append  port:kdelibs4 \
                    port:libkdegames

pre-configure {
    if {![variant_isset docs]} {
        reinplace "s|add_subdirectory(doc)|#add_subdirectory(doc)|g" ${worksrcpath}/CMakeLists.txt
    }
}

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