<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/413b6c67d59947d9491ac48e33a1465925d786c4">https://github.com/macports/macports-ports/commit/413b6c67d59947d9491ac48e33a1465925d786c4</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 413b6c67d59 cyan: new port in graphics
</span>413b6c67d59 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 413b6c67d59947d9491ac48e33a1465925d786c4
</span>Author: Sergey Fedorov <vital.had@gmail.com>
AuthorDate: Sun Apr 21 22:09:27 2024 +0800

<span style='display:block; white-space:pre;color:#404040;'>    cyan: new port in graphics
</span>---
 graphics/cyan/Portfile                             | 58 ++++++++++++++++++++++
 .../patch-do-not-hardcode-deployment-target.diff   | 11 ++++
 graphics/cyan/files/patch-libomp.diff              | 11 ++++
 graphics/cyan/files/patch-no-libomp copy.diff      | 13 +++++
 4 files changed, 93 insertions(+)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/cyan/Portfile b/graphics/cyan/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..d5c63978571
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/cyan/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,58 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- 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
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem          1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup           github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup           qmake5 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# TODO: find a Qt4-capable version.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/rodlie/cyan/issues/115
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup        rodlie cyan 1.2.4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision            0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories          graphics
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license             CeCILL-2.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description         Cyan Graphics
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description    ${name} is an open-source cross-platform image viewer \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    and converter, designed for prepress (print) work.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage            https://cyan.graphics
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums           rmd160  21bc30bd4cc1daa4050038db62aea21cd82629ff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    sha256  4edfb4414820934c6898ccfa9ef1c2bfe3745effe8736f0c14f3523e8c926ab0 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    size    9413972
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.tarball_from archive
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.cxx_standard   2011
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.openmp_version 2.5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles          patch-do-not-hardcode-deployment-target.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[string match *gcc* ${configure.compiler}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    patchfiles-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    patch-no-libomp.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} elseif {[string match *clang* ${configure.compiler}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    patchfiles-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    patch-libomp.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        reinplace "s|@PREFIX@|${prefix}|" ${worksrcpath}/${name}.pro
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:pkgconfig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append  port:ImageMagick \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:lcms2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:libiconv
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# While it builds against ImageMagick7,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# it fails to work: https://github.com/rodlie/cyan/issues/116
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# configure.pkg_config_path-prepend \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    ${prefix}/lib/ImageMagick7/lib/pkgconfig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    ${worksrcpath}/${name}.pro
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    copy ${worksrcpath}/build/Cyan.app ${destroot}${applications_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    xinstall -d ${destroot}${prefix}/share/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    copy ${worksrcpath}/docs ${destroot}${prefix}/share/${name}/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/cyan/files/patch-do-not-hardcode-deployment-target.diff b/graphics/cyan/files/patch-do-not-hardcode-deployment-target.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..b5dd02c5a60
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/cyan/files/patch-do-not-hardcode-deployment-target.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- cyan.pro       2022-03-25 03:56:48
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ cyan.pro       2024-04-21 21:15:09
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -136,7 +136,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     ICON = res/Cyan.icns
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     QMAKE_INFO_PLIST = res/Info.plist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     # ugly workaround for static build:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-    QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.13
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++    # QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.13
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     QMAKE_CFLAGS += -fopenmp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     QMAKE_CXXFLAGS += -fopenmp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     QMAKE_LFLAGS += -lomp -liconv
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/cyan/files/patch-libomp.diff b/graphics/cyan/files/patch-libomp.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..84390ebc136
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/cyan/files/patch-libomp.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- cyan.pro       2022-03-25 03:56:48
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ cyan.pro       2024-04-21 22:01:19
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -140,7 +140,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     QMAKE_CFLAGS += -fopenmp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     QMAKE_CXXFLAGS += -fopenmp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     QMAKE_LFLAGS += -lomp -liconv
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-    LIBS += -L /opt/local/lib/libomp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++    LIBS += -L @PREFIX@/lib/libomp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ win32 {
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/cyan/files/patch-no-libomp copy.diff b/graphics/cyan/files/patch-no-libomp copy.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..5580cb11307
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/cyan/files/patch-no-libomp copy.diff 
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- cyan.pro       2022-03-25 03:56:48
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ cyan.pro       2024-04-21 21:16:00
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -139,8 +139,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.13
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     QMAKE_CFLAGS += -fopenmp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     QMAKE_CXXFLAGS += -fopenmp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-    QMAKE_LFLAGS += -lomp -liconv
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-    LIBS += -L /opt/local/lib/libomp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++    QMAKE_LFLAGS +=  -liconv
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++    # LIBS += -L /opt/local/lib/libomp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ win32 {
</span></pre><pre style='margin:0'>

</pre>