# -*- 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 120216 2014-05-19 16:37:14Z nicos@macports.org $

PortSystem          1.0
PortGroup           kde4   1.1

name                ksquares
version             4.12.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  5b6b91183dd9a8dfcaf8fc5f1891468131367d03 \
                    sha256  d662e41861f7404cabbdb4a13dc2bc8c295de22e00535eda1fd89127d11e2342

#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+)+)
