pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kf6-kstatusnotifieritem: fix build on NetBSD - from Robert Bagdan.



Module Name:	pkgsrc-wip
Committed By:	Mark Davies <mark%ecs.vuw.ac.nz@localhost>
Pushed By:	markd
Date:		Mon Jan 6 15:56:36 2025 +1300
Changeset:	f1b0ee471d86c6816cbc07df179c0aef5b3c42e4

Modified Files:
	kf6-kstatusnotifieritem/PLIST
	kf6-kstatusnotifieritem/distinfo
Added Files:
	kf6-kstatusnotifieritem/patches/patch-src_libdbusmenu-qt_dbusmenushortcut__p.cpp
	kf6-kstatusnotifieritem/patches/patch-src_libdbusmenu-qt_dbusmenushortcut__p.h

Log Message:
kf6-kstatusnotifieritem: fix build on NetBSD - from Robert Bagdan.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=f1b0ee471d86c6816cbc07df179c0aef5b3c42e4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 kf6-kstatusnotifieritem/PLIST                      | 53 ++++++++++++++++++++++
 kf6-kstatusnotifieritem/distinfo                   |  8 ++--
 ...atch-src_libdbusmenu-qt_dbusmenushortcut__p.cpp | 44 ++++++++++++++++++
 .../patch-src_libdbusmenu-qt_dbusmenushortcut__p.h | 24 ++++++++++
 4 files changed, 126 insertions(+), 3 deletions(-)

diffs:
diff --git a/kf6-kstatusnotifieritem/PLIST b/kf6-kstatusnotifieritem/PLIST
index 48d96a5493..05638ca6d0 100644
--- a/kf6-kstatusnotifieritem/PLIST
+++ b/kf6-kstatusnotifieritem/PLIST
@@ -1 +1,54 @@
 @comment $NetBSD$
+include/KF6/KStatusNotifierItem/KStatusNotifierItem
+include/KF6/KStatusNotifierItem/kstatusnotifieritem.h
+include/KF6/KStatusNotifierItem/kstatusnotifieritem_export.h
+include/KF6/KStatusNotifierItem/kstatusnotifieritem_version.h
+lib/cmake/KF6StatusNotifierItem/KF6StatusNotifierItemConfig.cmake
+lib/cmake/KF6StatusNotifierItem/KF6StatusNotifierItemConfigVersion.cmake
+lib/cmake/KF6StatusNotifierItem/KF6StatusNotifierItemTargets-noconfig.cmake
+lib/cmake/KF6StatusNotifierItem/KF6StatusNotifierItemTargets.cmake
+lib/libKF6StatusNotifierItem.so
+lib/libKF6StatusNotifierItem.so.6
+lib/libKF6StatusNotifierItem.so.${PKGVERSION}
+share/dbus-1/interfaces/kf6_org.kde.StatusNotifierItem.xml
+share/dbus-1/interfaces/kf6_org.kde.StatusNotifierWatcher.xml
+share/locale/ar/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/locale/ast/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/locale/bg/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/locale/ca/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/locale/ca@valencia/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/locale/cs/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/locale/de/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/locale/en_GB/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/locale/eo/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/locale/es/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/locale/eu/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/locale/fi/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/locale/fr/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/locale/gl/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/locale/he/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/locale/hu/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/locale/ia/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/locale/is/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/locale/it/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/locale/ja/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/locale/ka/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/locale/ko/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/locale/lt/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/locale/lv/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/locale/nl/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/locale/nn/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/locale/pl/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/locale/pt_BR/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/locale/ro/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/locale/ru/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/locale/sa/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/locale/sk/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/locale/sl/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/locale/sv/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/locale/ta/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/locale/tr/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/locale/uk/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/locale/zh_CN/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/locale/zh_TW/LC_MESSAGES/kstatusnotifieritem6_qt.qm
+share/qlogging-categories6/kstatusnotifieritem.categories
diff --git a/kf6-kstatusnotifieritem/distinfo b/kf6-kstatusnotifieritem/distinfo
index 45fb26fdff..81144aa692 100644
--- a/kf6-kstatusnotifieritem/distinfo
+++ b/kf6-kstatusnotifieritem/distinfo
@@ -1,5 +1,7 @@
 $NetBSD: distinfo,v 1.17 2024/02/06 10:46:29 markd Exp $
 
-BLAKE2s (kstatusnotifieritem-6.2.0.tar.xz) = 4081f23463f77a4873dac7abc7cd255327cf468ed347406ec9897d84a8d68bce
-SHA512 (kstatusnotifieritem-6.2.0.tar.xz) = 926f7e05e5745d592cda2a7d30de73d4ff49304aa2e46721320849214f7da059fe3a2c8aac4e19056bea1d14da57c6e4ab148d7e5cae97667019f2724895dbca
-Size (kstatusnotifieritem-6.2.0.tar.xz) = 47532 bytes
+BLAKE2s (kstatusnotifieritem-6.8.0.tar.xz) = 3685eb785be5a2f193c2f3ee59cf7080c5b7931f1ad34f92374ecf71350a6e94
+SHA512 (kstatusnotifieritem-6.8.0.tar.xz) = bf060f2fe9c80151050e81f7b03da8cbaa48262dbd884773131c9df83493622378fc736d514e2a7f66c86f8b6836ad792d02c3bcb81f7eb2228bf6813a2d340a
+Size (kstatusnotifieritem-6.8.0.tar.xz) = 48388 bytes
+SHA1 (patch-src_libdbusmenu-qt_dbusmenushortcut__p.cpp) = 2237a32acb9eb0c70e8a8df8814f86e3f21cea3f
+SHA1 (patch-src_libdbusmenu-qt_dbusmenushortcut__p.h) = 3095b6db9519f34f9d56cda530a113918087cf9c
diff --git a/kf6-kstatusnotifieritem/patches/patch-src_libdbusmenu-qt_dbusmenushortcut__p.cpp b/kf6-kstatusnotifieritem/patches/patch-src_libdbusmenu-qt_dbusmenushortcut__p.cpp
new file mode 100644
index 0000000000..8db3de7951
--- /dev/null
+++ b/kf6-kstatusnotifieritem/patches/patch-src_libdbusmenu-qt_dbusmenushortcut__p.cpp
@@ -0,0 +1,44 @@
+$NetBSD$
+
+* Add DBusMenuShortcut type overload for QDBusArgument to fix build
+
+--- src/libdbusmenu-qt/dbusmenushortcut_p.cpp.orig	2025-01-04 08:49:06.219623820 +0000
++++ src/libdbusmenu-qt/dbusmenushortcut_p.cpp
+@@ -8,6 +8,8 @@
+ 
+ // Qt
+ #include <QKeySequence>
++#include <QDBusArgument>
++#include <QDBusMetaType>
+ 
+ // Local
+ #include "debug_p.h"
+@@ -70,3 +72,28 @@ QKeySequence DBusMenuShortcut::toKeySequ
+     const QString string = tmp.join(QLatin1String(", "));
+     return QKeySequence::fromString(string);
+ }
++
++QDBusArgument &operator<<(QDBusArgument &argument, const DBusMenuShortcut &obj)
++{
++    argument.beginArray(qMetaTypeId<QStringList>());
++    typename QList<QStringList>::ConstIterator it = obj.constBegin();
++    typename QList<QStringList>::ConstIterator end = obj.constEnd();
++    for ( ; it != end; ++it)
++        argument << *it;
++    argument.endArray();
++    return argument;
++}
++
++const QDBusArgument &operator>>(const QDBusArgument &argument, DBusMenuShortcut &obj)
++{
++    argument.beginArray();
++    obj.clear();
++    while (!argument.atEnd()) {
++        QStringList item;
++        argument >> item;
++        obj.push_back(item);
++    }
++    argument.endArray();
++    return argument;
++}
++
diff --git a/kf6-kstatusnotifieritem/patches/patch-src_libdbusmenu-qt_dbusmenushortcut__p.h b/kf6-kstatusnotifieritem/patches/patch-src_libdbusmenu-qt_dbusmenushortcut__p.h
new file mode 100644
index 0000000000..dfe1262434
--- /dev/null
+++ b/kf6-kstatusnotifieritem/patches/patch-src_libdbusmenu-qt_dbusmenushortcut__p.h
@@ -0,0 +1,24 @@
+$NetBSD$
+
+* Add DBusMenuShortcut type overload for QDBusArgument to fix build
+
+--- src/libdbusmenu-qt/dbusmenushortcut_p.h.orig	2025-01-04 08:49:00.488996262 +0000
++++ src/libdbusmenu-qt/dbusmenushortcut_p.h
+@@ -12,6 +12,7 @@
+ #include <QStringList>
+ 
+ class QKeySequence;
++class QDBusArgument;
+ 
+ class DBusMenuShortcut : public QList<QStringList>
+ {
+@@ -20,6 +21,9 @@ public:
+     static DBusMenuShortcut fromKeySequence(const QKeySequence &);
+ };
+ 
++QDBusArgument &operator<<(QDBusArgument &argument, const DBusMenuShortcut &);
++const QDBusArgument &operator>>(const QDBusArgument &argument, DBusMenuShortcut &);
++
+ Q_DECLARE_METATYPE(DBusMenuShortcut)
+ 
+ #endif /* DBUSMENUSHORTCUT_H */


Home | Main Index | Thread Index | Old Index