# -*- 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$ PortSystem 1.0 PortGroup active_variants 1.1 PortGroup compiler_blacklist_versions 1.0 PortGroup gobject_introspection 1.0 name gtksourceview3 set gname gtksourceview version 3.22.0 license LGPL-2.1+ set branch [join [lrange [split ${version} .] 0 1] .] maintainers devans openmaintainer categories gnome platforms darwin description GtkSourceView-3.0 is a 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} use_xz yes checksums rmd160 58be2fe965690fb29f031c5c0d7cbec169f214ba \ sha256 70657f48732427984dce6cc812bdd3f2b701c0a49e0a0a08889705b3dadcf8e5 depends_build port:pkgconfig \ port:gtk-doc depends_lib path:lib/pkgconfig/glib-2.0.pc:glib2 \ port:gettext \ port:gtk3 \ port:libxml2 \ port:vala gobject_introspection yes patchfiles patch-no-as-needed.diff # autoreconf required due to patching of m4/ax_compiler_flags_ldflags.m4 use_autoreconf yes autoreconf.args -fvi # 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 \ --disable-silent-rules test.run yes test.target check variant quartz {} if {[variant_isset quartz]} { require_active_variants gtk3 quartz } else { require_active_variants gtk3 x11 } variant glade description {Install a glade catalog file} { configure.args-append --enable-glade-catalog depends_lib-append port:glade } post-destroot { set docdir ${prefix}/share/doc/${name} xinstall -d ${destroot}${docdir} xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING MAINTAINERS \ NEWS README ${destroot}${docdir} # glade expects catalog modules and libraries to have a .so suffix if {[variant_isset glade]} { set libdir ${prefix}/lib ln -s ${libdir}/libgtksourceview-3.0.dylib ${destroot}${libdir}/libgtksourceview-3.0.so } } livecheck.type gnome livecheck.name ${gname}