# -*- 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
set my_name gtksourceview
# respository indicates they were in process of shift
# from LGPL-2+ to LGPL-2.1+
set branch [join [lrange [split ${version} .] 0 1] .]
maintainers mit.edu:wdc openmaintainer
description GtkSourceView is a text widget
GtkSourceView is a text widget that extends the standard \
gtk+ 2.x text widget GtkTextView. It improves GtkTextView \
by implementing syntax highlighting and other features \
typical of a source editor. This port contains version 2 of the \
GtkSourceView widget. Port GtkSourceView contains version 1 of the \
homepage https://wiki.gnome.org/Projects/GtkSourceView
master_sites gnome:sources/${my_name}/${branch}/
distname ${my_name}-${version}
checksums md5 1219ad1694df136f126507466aeb41aa \
sha1 5081dc7a081954d0af73852c22e874a746bda30e \
rmd160 081679debc8ca021749136e952329bb3ea0aa4f2
depends_build port:intltool \
path:lib/pkgconfig/glib-2.0.pc:glib2 \
patchfiles patch-configure.ac.diff \
patch-gtkosxapplication.diff
# reconfigure using upstream autogen.sh for intltool 0.51 compatibility
xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
configure.cmd ./autogen.sh
configure.args --enable-compile-warnings=minimum
set docdir ${prefix}/share/doc/${name}
xinstall -d ${destroot}${docdir}
xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING COPYING.lib MAINTAINERS \
NEWS README ${destroot}${docdir}
# glade-3 expects catalog modules and libraries to have a .so suffix
if {[variant_isset glade]} {
ln -s ${libdir}/libgtksourceview-2.0.dylib ${destroot}${libdir}/libgtksourceview-2.0.so
# although this port correctly senses the installed variant of gtk2 and configures accordingly,
# gtk-osx-application-gtk2 only builds with gtk2 +quartz and will fail to build if gtk2 +x11
# is active. Since this can break the x11 build of this port, only depend on it if +quartz
# is set. It's not used when building with gtk2 +x11 anyway.
depends_lib-append port:gtk-osx-application-gtk2
# make sure the right variant of gtk2 is installed for the intended build
if {[variant_isset quartz]} {