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

name            libgtksourceviewmm
version         0.3.1
revision        2
# Its dependency, gtksourceview, builds on Catalina and earlier.
platforms       {darwin < 20}
license         LGPL-2+
set branch      [join [lrange [split ${version} .] 0 1] .]

description     gtksourceviewmm provides C++ wrappers for gtksourceview.
long_description \
                {*}${description}
maintainers     nomaintainer

categories      gnome

homepage        https://www.gtkmm.org
master_sites    gnome:sources/${name}/${branch}/

use_bzip2       yes
checksums       sha256  1084f0f826252191829097185c4f2fc88c2b3a2327054ba9056af90ff6cac2cf \
                rmd160  c19b99bdc7734a9b068e377dae0e4f4918b2fa3e \
                size    382122

depends_lib     port:gettext \
                port:gtksourceview \
                port:libgnomemm \
                port:libiconv
depends_build   path:bin/doxygen:doxygen \
                port:pkgconfig

patchfiles      patch-glib-2.32.diff

# Undefined symbols: "__Z8get_defsB5cxx11mPFbmE"
compiler.cxx_standard \
                2011

configure.cppflags-append \
                "-L${prefix}/lib"

livecheck.type  regex
livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/
livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}
