<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/fa5f5b551c56ddad762c63b8323e8646bc7cca48">https://github.com/macports/macports-ports/commit/fa5f5b551c56ddad762c63b8323e8646bc7cca48</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 fa5f5b551c5 gegl: add patch to fix build with LIBRAW 0.21
</span>fa5f5b551c5 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit fa5f5b551c56ddad762c63b8323e8646bc7cca48
</span>Author: Michael Dickens <michaelld@macports.org>
AuthorDate: Fri Jan 13 10:42:05 2023 -0500
<span style='display:block; white-space:pre;color:#404040;'> gegl: add patch to fix build with LIBRAW 0.21
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Update Merge: https://gitlab.gnome.org/GNOME/gegl/-/merge_requests/133
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/66667
</span>---
graphics/gegl/Portfile | 6 +++++-
graphics/gegl/files/patch-fix-raw-load.c.diff | 15 +++++++++++++++
2 files changed, 20 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/gegl/Portfile b/graphics/gegl/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 0cc9c066826..97475c45518 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/graphics/gegl/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/gegl/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -10,7 +10,7 @@ name gegl
</span> conflicts gegl-devel
set my_name gegl
version 0.4.40
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span> epoch 1
set branch [join [lrange [split ${version} .] 0 1] .]
license {GPL-3+ LGPL-3+}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -69,6 +69,10 @@ depends_lib-append \
</span> # https://trac.macports.org/ticket/58524
patchfiles-append patch-gegl-32bit-host-statistics.diff
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# temporary fix for LIBRAW update to 0.21
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://trac.macports.org/ticket/66667
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-fix-raw-load.c.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> post-patch {
# https://trac.macports.org/ticket/35148
if {${os.major} < 10} {
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/gegl/files/patch-fix-raw-load.c.diff b/graphics/gegl/files/patch-fix-raw-load.c.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..79a7918526a
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/gegl/files/patch-fix-raw-load.c.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,15 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- operations/external/raw-load.c.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ operations/external/raw-load.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -114,8 +114,11 @@ prepare (GeglOperation *operation)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ g_warning ("raw-load: Error Initializing raw library");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if LIBRAW_COMPILE_CHECK_VERSION_NOTLESS(0, 21)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ p->LibRaw->rawparams.shot_select = o->image_num;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ p->LibRaw->params.shot_select = o->image_num;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ p->LibRaw->params.aber[0] = 1.0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ p->LibRaw->params.aber[2] = 1.0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ //p->LibRaw->params.gamm[0] = 1.0 / 2.4;
</span></pre><pre style='margin:0'>
</pre>