# -*- 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               github 1.0
PortGroup               yelp 1.0

github.setup            gobby gobby 0.6.0 v
revision                1
checksums               rmd160  8cc7d8c121221b08aa9ad1946c7aa0856f852166 \
                        sha256  fdb3f3f1984fa22b4f5116804281e2ea17bcaeebebdc14e66f5cf80e995d5cdc \
                        size    808019

license                 GPL-2+
categories              x11 net
maintainers             nomaintainer
description             Realtime collaborative editor
platforms               darwin freebsd

long_description        Gobby is a free collaborative editor which enables you \
                        to edit files simultaneously with other users over a \
                        network. It supports multiple documents in one session \
                        and is portable to both Windows and POSIX platforms.

homepage                https://gobby.github.io/
github.tarball_from     releases

depends_build           port:gnome-doc-utils \
                        port:intltool \
                        port:itstool \
                        path:bin/pkg-config:pkgconfig

depends_lib             path:lib/pkgconfig/glib-2.0.pc:glib2 \
                        path:lib/pkgconfig/glibmm-2.68.pc:glibmm \
                        path:lib/pkgconfig/gnutls.pc:gnutls \
                        path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
                        port:gtkmm3 \
                        port:gtksourceview3 \
                        port:libgsasl \
                        port:libinfinity \
                        port:libxmlxx2

depends_run             port:desktop-file-utils

# configure: error: *** A compiler with support for C++11 language features is required.
compiler.cxx_standard   2011

# libinfinity is not universal
universal_variant       no

configure.args          --disable-silent-rules

post-activate {
    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
    system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
}
