<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/51e2e3bd95cffe621d7e25db10f4f4aca74ad3be">https://github.com/macports/macports-ports/commit/51e2e3bd95cffe621d7e25db10f4f4aca74ad3be</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 51e2e3bd95cffe621d7e25db10f4f4aca74ad3be
</span>Author: barracuda156 <vital.had@gmail.com>
AuthorDate: Sun Aug 27 18:27:46 2023 +0800

<span style='display:block; white-space:pre;color:#404040;'>    libqtxdg-legacy: new port, qtxdg for Qt4
</span>---
 devel/libqtxdg-legacy/Portfile                     | 36 ++++++++++++++++++++++
 .../files/patch-qiconloader_qt4.diff               | 15 +++++++++
 2 files changed, 51 insertions(+)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/libqtxdg-legacy/Portfile b/devel/libqtxdg-legacy/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..fb335bf2463
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/libqtxdg-legacy/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,36 @@
</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           cmake 1.1
</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           qt4 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 last version to support Qt4.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Please keep it pegged, or consider forward-porting Qt4 support into 1.3.x.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name                libqtxdg-legacy
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup        lxqt libqtxdg 1.2.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision            0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories          devel
</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;'>+license             LGPL-2.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+conflicts           libqtxdg
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description         Qt implementation of freedesktop.org xdg specs
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description    {*}${description}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums           rmd160  fe28aaea91e52e8c8a4e0dd026e8f222679ca753 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    sha256  88c9b01b56fea205226b53642833963e4f27471de3b90e93e9b650ca28d098d9 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    size    55704
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.tarball_from releases
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_xz              yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Alternative option is to use libmagic, but QtMimeTypes is the recommended one.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append  port:qt4-mimetypes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# qt_mac_get_scalefactor() is not found; uncommenting cocoa header fixes compilation, but linking still fails.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Anyway, it seems to have been introduced as a backport patch to support HDI displays,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# which is not of a particular concern on old systems: https://lists.qt-project.org/pipermail/development/2012-September/006624.html
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles          patch-qiconloader_qt4.diff
</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;'>+                    -DUSE_QT4:BOOL=ON
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/libqtxdg-legacy/files/patch-qiconloader_qt4.diff b/devel/libqtxdg-legacy/files/patch-qiconloader_qt4.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..135c9451648
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/libqtxdg-legacy/files/patch-qiconloader_qt4.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;'>+--- qiconfix/qiconloader_qt4.cpp   2015-03-29 17:30:27.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ qiconfix/qiconloader_qt4.cpp   2023-08-27 15:44:34.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -492,9 +492,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                              QIcon::Mode mode, QIcon::State state)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     QSize pixmapSize = rect.size();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if defined(Q_WS_MAC)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-    pixmapSize *= qt_mac_get_scalefactor();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++//#if defined(Q_WS_MAC)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++//    pixmapSize *= qt_mac_get_scalefactor();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++//#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     painter->drawPixmap(rect, pixmap(pixmapSize, mode, state));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span></pre><pre style='margin:0'>

</pre>