# -*- 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                kblocks
version             4.12.5
categories          kde kde4 games
license             GPL-2+
maintainers         nicos openmaintainer
description         KBlocks is the classic falling blocks game. 
long_description    ${description} The idea is to stack the falling blocks to \
                    create horizontal lines without any gaps. When a line is completed \
                    it is removed, and more space is available in the play area. \
                    When there is not enough space for blocks to fall, the game is over.
platforms           darwin
homepage            http://www.kde.org/applications/games/kblocks/
master_sites        kde:stable/${version}/src
use_xz              yes
distname            ${name}-${version}
checksums           rmd160  359e85c9122647d8fe162919d649462e919fc060 \
                    sha256  e7e0688d9769fd74f60547503ced27e17e4c3ba36de5b99195901f30ec0ecf05

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

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