-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is API version 4 of the GtkSourceView widget using GTK+ 3. Forthcoming API version 5 will support GTK+ 4. Installs in parallel with earlier verions 3, 2 and 1 without conflict.
- Loading branch information
Showing
1 changed file
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
# -*- 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 active_variants 1.1 | ||
PortGroup compiler_blacklist_versions 1.0 | ||
PortGroup gobject_introspection 1.0 | ||
|
||
name gtksourceview4 | ||
set gname gtksourceview | ||
version 4.0.0 | ||
license LGPL-2.1+ | ||
set branch [join [lrange [split ${version} .] 0 1] .] | ||
maintainers {devans @dbevans} openmaintainer | ||
categories gnome | ||
platforms darwin | ||
description GtkSourceView-4.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 4 of the \ | ||
GtkSourceView widget. Port gtksourceview3 contains version 3 of \ | ||
widget, gtksourceview2 contains version 2 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 e83485cc439f36efeb9b93022ae35c285ff4bb6b \ | ||
sha256 6e5c7a28a7fa456a89f289f0659c57100cc09fe692db6abfcc23f7ade5d5b32a \ | ||
size 1352196 | ||
|
||
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 | ||
|
||
# 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 \ | ||
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} |