<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/1fbb8bd483014acc8682a97b55e74d4a860472a0">https://github.com/macports/macports-ports/commit/1fbb8bd483014acc8682a97b55e74d4a860472a0</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 1fbb8bd483014acc8682a97b55e74d4a860472a0
</span>Author: Christopher Nielsen <mascguy@github.com>
AuthorDate: Tue Jun 6 14:00:00 2023 -0400
<span style='display:block; white-space:pre;color:#404040;'> gtksourceview4: take co-ownership; cleanup
</span>---
gnome/gtksourceview4/Portfile | 55 ++++++++++++++++++++++++++-----------------
1 file changed, 34 insertions(+), 21 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/gnome/gtksourceview4/Portfile b/gnome/gtksourceview4/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 0e80b0f4368..ecccf2f2b04 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/gnome/gtksourceview4/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gnome/gtksourceview4/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -7,13 +7,13 @@ PortGroup meson 1.0
</span> name gtksourceview4
set gname gtksourceview
version 4.8.3
<span style='display:block; white-space:pre;background:#ffe0e0;'>-license LGPL-2.1+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-set branch [join [lrange [split ${version} .] 0 1] .]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-maintainers {devans @dbevans} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> categories gnome
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms darwin
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-description GtkSourceView-4.0 is a source highlighting text widget for GTK+ 3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license LGPL-2.1+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {devans @dbevans} {mascguy @mascguy} openmaintainer
</span>
<span style='display:block; white-space:pre;background:#e0ffe0;'>+description GtkSourceView-4.0 is a source highlighting text widget for GTK+ 3
</span> 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 \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -21,8 +21,9 @@ long_description GtkSourceView is a text widget that extends the standard \
</span> GtkSourceView widget. Port gtksourceview3 contains version 3 of \
widget, gtksourceview2 contains version 2 and port gtksourceview \
contains version 1.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> homepage https://wiki.gnome.org/Projects/GtkSourceView
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set branch [join [lrange [split ${version} .] 0 1] .]
</span> master_sites gnome:sources/${gname}/${branch}/
distname ${gname}-${version}
use_xz yes
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -32,13 +33,14 @@ checksums rmd160 9d96f7358ca9150bf4f379fec2b34f0f8d453049 \
</span> size 1165036
depends_build-append \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- port:pkgconfig \
</span> port:gettext \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- port:gtk-doc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:gtk-doc \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:pkgconfig
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_lib path:lib/pkgconfig/glib-2.0.pc:glib2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append \
</span> port:fribidi \
port:gettext-runtime \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ path:lib/pkgconfig/glib-2.0.pc:glib2 \
</span> path:lib/pkgconfig/gobject-introspection-1.0.pc:gobject-introspection \
path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
port:libxml2 \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -46,20 +48,26 @@ depends_lib path:lib/pkgconfig/glib-2.0.pc:glib2 \
</span>
compiler.c_standard 1999
<span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.args -Dgtk_doc=true
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -Dgtk_doc=true
</span>
# error: declaration of 'index' shadows a global declaration
<span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.cflags-append -Wno-shadow
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.cflags-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -Wno-shadow
</span>
# gobject-introspection uses g-ir-scanner, which uses $CC from env
if {${universal_possible} && [variant_isset universal]} {
foreach arch ${configure.universal_archs} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- lappend merger_build_env(${arch}) "CC=${configure.cc} -arch ${arch}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- lappend merger_destroot_env(${arch}) "CC=${configure.cc} -arch ${arch}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend merger_build_env(${arch}) \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "CC=${configure.cc} -arch ${arch}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend merger_destroot_env(${arch}) \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "CC=${configure.cc} -arch ${arch}"
</span> }
} else {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- build.env-append "CC=${configure.cc} ${configure.cc_archflags}"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- destroot.env-append "CC=${configure.cc} ${configure.cc_archflags}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.env-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "CC=${configure.cc} ${configure.cc_archflags}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.env-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "CC=${configure.cc} ${configure.cc_archflags}"
</span> }
variant quartz conflicts x11 {}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -72,17 +80,21 @@ if {[variant_isset quartz]} {
</span> }
variant glade description {Install a glade catalog file} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-append -Dglade_catalog=true
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_lib-append port:glade
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -Dglade_catalog=true
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:glade
</span> }
post-destroot {
set docdir ${prefix}/share/doc/${name}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> xinstall -d ${destroot}${docdir}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- NEWS README.md ${destroot}${docdir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 644 -W ${worksrcpath} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AUTHORS COPYING NEWS README.md \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${docdir}
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# glade expects catalog modules and libraries to have a .so suffix
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # glade expects catalog modules and libraries to have a .so suffix
</span> if {[variant_isset glade]} {
set libdir ${prefix}/lib
ln -s ${libdir}/libgtksourceview-4.0.dylib ${destroot}${libdir}/libgtksourceview-4.0.so
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -91,7 +103,8 @@ post-destroot {
</span>
platform darwin 8 {
# Tiger lacks @rpath, apply the usual gtk-doc workaround
<span style='display:block; white-space:pre;background:#ffe0e0;'>- destroot.env-append "DYLD_LIBRARY_PATH=${build_dir}/${gname}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.env-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "DYLD_LIBRARY_PATH=${build_dir}/${gname}"
</span> }
livecheck.type gnome
</pre><pre style='margin:0'>
</pre>