# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           gobject_introspection 1.0

name                polari
version             3.24.2
revision            2
license             GPL-2+
set branch          [join [lrange [split ${version} .] 0 1] .]
description         An IRC Client for GNOME
long_description    Polari is an IRC chat client designed to integrate \
                    with the GNOME desktop. Polari supports group chatting \
                    in chat rooms and private messaging on a wide range of \
                    popular IRC servers
maintainers         {devans @dbevans} openmaintainer
categories          gnome

homepage            https://wiki.gnome.org/Apps/Polari
master_sites        gnome:sources/${name}/${branch}/

use_xz              yes

checksums           rmd160  c8e5fb93b44a53f41e82d0abf9de33abed6da81c \
                    sha256  3e1884000fda5cf6293e21ca1c028ec0b13d5baab5a79b8c11e4728c3238bb42 \
                    size    804160

depends_build       port:pkgconfig \
                    port:appstream-glib \
                    port:itstool

depends_lib         port:desktop-file-utils \
                    path:lib/pkgconfig/gdk-pixbuf-2.0.pc:gdk-pixbuf2 \
                    path:lib/pkgconfig/gjs-1.0.pc:gjs \
                    port:gspell \
                    path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
                    port:libiconv \
                    port:libsecret \
                    port:libsoup-2.4 \
                    port:telepathy-glib \
                    port:telepathy-idle \
                    port:telepathy-logger \
                    port:telepathy-mission-control

depends_run         port:gnome-keyring \
                    port:adwaita-icon-theme
                    
gobject_introspection yes

configure.args      --enable-compile-warnings=no \
                    --disable-schemas-compile \
                    --disable-silent-rules

post-activate {
   system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
   system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
   system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
}

livecheck.type      gnome
