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

PortSystem          1.0
PortGroup           kde4   1.1

name                kiriki
version             4.14.3
revision            3
categories          kde kde4 games
license             GPL-2+
maintainers         nomaintainer
description         Kiriki is an addictive and fun dice game for KDE. 
long_description    ${description} It is designed to be played by as many as six \
                    players. Participants have to collect points by rolling five dice \
                    for up to three times per single turn.
platforms           darwin
homepage            http://games.kde.org/game.php?game=klines
master_sites        kde:stable/${version}/src
use_xz              yes
distname            ${name}-${version}
checksums           rmd160  ff1814ddb1395ad7563bfbe2ef0e87bf28a8d535 \
                    sha256  1db5e6fd69adc6823e22fecafafaca845b49feca3579edb362d496d4f7d03102

#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       ${kde4.mirror}
livecheck.regex     (\\d+(\\.\\d+)+)
