# -*- 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 91775 2012-04-10 13:13:13Z nicos@macports.org $

PortSystem          1.0
PortGroup           kde4   1.1

name                gwenview
version             4.8.2
categories          kde kde4
license             GPL-2+
maintainers         nicos openmaintainer
description         Gwenview is an image viewer for KDE.
long_description    Gwenview can load and save all image formats supported by KDE.
platforms           darwin
homepage            http://www.kde.org/applications/graphics/gwenview/
master_sites        kde:stable/${version}/src/
use_xz              yes
distname            gwenview-${version}
checksums           rmd160  aea0fb5b137e42be0f806d7be75ae9d35f1e7eda \
                    sha256  24535e39e8e8667deec5bd43f4e7d0572c40dd3aa501246d6778ae8496d2d1e1

depends_lib-append  port:kdelibs4 \
                    port:kde4-baseapps \
                    port:exiv2 \
                    port:libkipi \
                    port:jpeg

if {![variant_isset doc]} {
    patchfiles      patch-CMakeLists.txt.diff
}

configure.args-append   -DGWENVIEW_SEMANTICINFO_BACKEND=None

variant kipi description "adds support for KDE Image Plugin Interface" { 
 depends_lib-append port:kipi-plugins
}

livecheck.url       http://kde.mirrors.hoobly.com/stable/latest/src/
livecheck.regex     gwenview-(\\d+\\.\\d+\\.\\d+)${extract.suffix}
