# -*- 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
PortGroup active_variants 1.1
PortGroup compiler_blacklist_versions 1.0
PortGroup gobject_introspection 1.0
set branch [join [lrange [split ${version} .] 0 1] .]
maintainers {devans @dbevans} openmaintainer
description GtkSourceView-3.0 is a source highlighting text widget for GTK+ 3
long_description GtkSourceView is a text widget that extends the standard \
GTK+ 3.x text widget GtkTextView. It improves GtkTextView \
by implementing syntax highlighting and other features \
typical of a source editor. This port contains version 3 of the \
GtkSourceView widget. Port GtkSourceView2 contains version 2 of the \
widget and port GtkSourceview contains version 1.
homepage https://wiki.gnome.org/Projects/GtkSourceView
master_sites gnome:sources/${gname}/${branch}/
distname ${gname}-${version}
checksums rmd160 691fd7dbc3faeeea10ec7e18aa1411398abbf6c1 \
sha256 a5c20d3a6347533689358f3ea52486409f6dd41d5a69c65eab7570cfaffee8e6 \
depends_build port:pkgconfig
depends_lib path:lib/pkgconfig/glib-2.0.pc:glib2 \
gobject_introspection yes
# blacklist compilers that do not support C11 (redefinition of typedef ‘GtkSourceTag’ at gtksourceview/gtksourcetag.h:35)
compiler.blacklist *gcc* {clang < 300}
configure.args --enable-compile-warnings=no \
if {[variant_isset quartz]} {
require_active_variants gtk3 quartz
require_active_variants gtk3 x11
variant glade description {Install a glade catalog file} {
configure.args-append --enable-glade-catalog
depends_lib-append port:glade