<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/38824a61db9726becfa106164a77935665b02337">https://github.com/macports/macports-ports/commit/38824a61db9726becfa106164a77935665b02337</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 38824a61db9 graphviz-devel: Fix gvplugin_list
</span>38824a61db9 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 38824a61db9726becfa106164a77935665b02337
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Thu Apr 13 20:38:14 2023 -0500
<span style='display:block; white-space:pre;color:#404040;'> graphviz-devel: Fix gvplugin_list
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Fixes graphviz-gui-devel's Export function.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> See: https://trac.macports.org/ticket/67226
</span>---
graphics/graphviz-devel/Portfile | 3 ++-
graphics/graphviz-devel/files/gvplugin_list.patch | 16 ++++++++++++++++
2 files changed, 18 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/graphviz-devel/Portfile b/graphics/graphviz-devel/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index ca583448ae3..52553d6674e 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/graphics/graphviz-devel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/graphviz-devel/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -58,7 +58,7 @@ PortGroup legacysupport 1.1
</span> # strndup
legacysupport.newest_darwin_requires_legacy 10
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span>
conflicts graphviz${otherbranch}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -89,6 +89,7 @@ depends_lib path:include/turbojpeg.h:libjpeg-turbo \
</span> depends_run port:urw-fonts
patchfiles patch-cmd-tools-Makefile.am.diff
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append gvplugin_list.patch
</span>
configure.args --disable-silent-rules \
--with-codegens \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/graphviz-devel/files/gvplugin_list.patch b/graphics/graphviz-devel/files/gvplugin_list.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..9872023c6ef
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/graphviz-devel/files/gvplugin_list.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,16 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+gvc gvplugin_list: fix incorrect plugin list for call with ":"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://gitlab.com/graphviz/graphviz/-/commit/454673444067b78d372057c4e9942bddf776eea0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- lib/gvc/gvplugin.c.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ lib/gvc/gvplugin.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -353,8 +353,9 @@ char *gvplugin_list(GVC_t * gvc, api_t api, const char *str)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ then just list the alternative paths for the plugin */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ for (pnext = plugin; pnext; pnext = pnext->next) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ const strview_t type = strview(pnext->typestr, ':');
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- /* list only the matching type, or all types if s is an empty string */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (!str[0] || strview_case_eq(strv, type)) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ // list only the matching type, or all types if str is an empty
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ // string or starts with ":"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (strv.size == 0 || strview_case_eq(strv, type)) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* list each member of the matching type as "type:path" */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ agxbprint(&xb, " %s:%s", pnext->typestr, pnext->package->name);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ new = false;
</span></pre><pre style='margin:0'>
</pre>