<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/7369de66968e925f17340d3c77feed88abf8156d">https://github.com/macports/macports-ports/commit/7369de66968e925f17340d3c77feed88abf8156d</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 7369de66968e925f17340d3c77feed88abf8156d
</span>Author: barracuda156 <vital.had@gmail.com>
AuthorDate: Mon Apr 22 02:02:23 2024 +0800
<span style='display:block; white-space:pre;color:#404040;'> cyan: add a Qt4-based version for old systems
</span>---
graphics/cyan/Portfile | 56 ++++++++++++++++++++++++++++++++++----------------
1 file changed, 38 insertions(+), 18 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/cyan/Portfile b/graphics/cyan/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 970ad1d688f..61600058249 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/graphics/cyan/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/cyan/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -2,12 +2,8 @@
</span>
PortSystem 1.0
PortGroup github 1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-PortGroup qmake5 1.0
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# TODO: find a Qt4-capable version.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# https://github.com/rodlie/cyan/issues/115
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-github.setup rodlie cyan 1.2.4
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name cyan
</span> categories graphics
license CeCILL-2.1
maintainers {@barracuda156 gmail.com:vital.had} openmaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -15,27 +11,47 @@ description Cyan Graphics
</span> long_description ${name} is an open-source cross-platform image viewer \
and converter, designed for prepress (print) work.
homepage https://cyan.graphics
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 21bc30bd4cc1daa4050038db62aea21cd82629ff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.platform} eq "darwin" && ${os.major} < 11} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PortGroup qmake 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # This is the same upstream, older repo.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # See: https://github.com/rodlie/cyan/issues/115
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # TODO: see if we can fix a newer version.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # For QtMimeTypes use qt4-mimetypes port.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ github.setup olear cyan 1.0.0 {} .RC2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums rmd160 0325d3d86d269fd7ccec5f77ac55e0d9478f1941 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 77ce3b37ffa32d0057544b59c1e8b231e533ab351236f70926333881456ec3ea \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 475138
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</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;'>+ 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;'>+ checksums rmd160 21bc30bd4cc1daa4050038db62aea21cd82629ff \
</span> sha256 4edfb4414820934c6898ccfa9ef1c2bfe3745effe8736f0c14f3523e8c926ab0 \
size 9413972
<span style='display:block; white-space:pre;background:#ffe0e0;'>-github.tarball_from archive
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-compiler.cxx_standard 2011
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-compiler.openmp_version 2.5
</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:#ffe0e0;'>-patchfiles patch-do-not-hardcode-deployment-target.diff
</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:#ffe0e0;'>-if {[string match *gcc* ${configure.compiler}]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- patchfiles-append \
</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> patch-no-libomp.diff
<span style='display:block; white-space:pre;background:#ffe0e0;'>-} elseif {[string match *clang* ${configure.compiler}]} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- patchfiles-append \
</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> patch-libomp.diff
<span style='display:block; white-space:pre;background:#ffe0e0;'>- post-patch {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|@PREFIX@|${prefix}|" ${worksrcpath}/${name}.pro
</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;'>+github.tarball_from archive
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> depends_lib-append port:ImageMagick \
port:lcms2 \
port:libiconv
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -50,6 +66,10 @@ configure.args-append \
</span>
destroot {
copy ${worksrcpath}/build/Cyan.app ${destroot}${applications_dir}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -d ${destroot}${prefix}/share/${name}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- 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;background:#e0ffe0;'>+ if {(${os.platform} eq "darwin" && ${os.major} > 11) ||
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${os.platform} ne "darwin"} {
</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> }
</pre><pre style='margin:0'>
</pre>