diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /kde-frameworks/knotifications |
reinit the tree, so we can have metadata
Diffstat (limited to 'kde-frameworks/knotifications')
5 files changed, 210 insertions, 0 deletions
diff --git a/kde-frameworks/knotifications/Manifest b/kde-frameworks/knotifications/Manifest new file mode 100644 index 000000000000..69b3db901cf2 --- /dev/null +++ b/kde-frameworks/knotifications/Manifest @@ -0,0 +1,8 @@ +AUX knotifications-5.34.0-no-block-notification.patch 3726 SHA256 50cb5193c7ca46aed5c9daf11644481bd8504506e2e66a220d185dde3aa6e704 SHA512 836701ab0522090700c11c2c89aa046ffa13c5fd1698cf099b19d617cc4ceaa3c5f563c8ba70d9919ed83077d1f2909dd555ca34529d3bc57ad6758ce177dbfc WHIRLPOOL 13ff9d3d2e1667e167608b5d4640a51b6a90452879800b0cd9ca47f7cdc4a5bb29737bf2d6a69c4947d44f04d72b1276b3a372024889dada7ea5e048d980977b +DIST knotifications-5.37.0.tar.xz 100004 SHA256 66cdfddaa31f773a538d429026d0117e60f8a0a7f2a90c861f95d84395347b3f SHA512 3b08faf67d705233e98ff5e6cacdb6983134942f1ea5bb8cac43ecfe7b15aac987702cf635dd8dc3e45047e5069bb3fcd39c9745ac4bf414bb33f69336013644 WHIRLPOOL ec6c1ad4da2c45d0dc058d2b1c5c53679c68a1822b76085a71647f3386eede2ab86b9c8f38bc26b2f7b9a793de0c8508c5b22d539788e0043c37fd9212e01102 +DIST knotifications-5.38.0.tar.xz 99904 SHA256 ed7d33414840c8b25ce0f7fc446516bd85458b4e349825da026eb511a1d875cb SHA512 47d3268edd3162f48973e3ca0586df73ec3115b100c866e014e8dbf4b36f5102d85d97d722e849641415e2f91e7e1f2e5976b42e7a34ae95ba8ecf88e8ec0672 WHIRLPOOL 9f332d335cdae3af9ab4927ff26716b810c848c6215852cff0ed16909743654bb8fcca39ca4939ede2ec6ef16aecb6143b21a4c5b4dc0f61bb2134b63df6578b +EBUILD knotifications-5.37.0-r1.ebuild 1047 SHA256 952ba305aa987ef8bf7709f481d5eeec338682f33cbdb1e3e61e79a892717d30 SHA512 c5e18a4baafd71462a437d70f714ec08abd851aecb22fb6321756d7e2c22fef0bd0d981fcb66c6fcde890e84dca9398f443b1d7b7bd1c3dd065e2fa8f0274548 WHIRLPOOL 7afde0e221a7325040d8ad57d35dfa222fc25499f2809ca9141e4b3cdf83e5b86a72ae9b5d810a30ae8d9b9b5dfe5b6e04ca2990a9b846b7d3851d13a8fdd563 +EBUILD knotifications-5.38.0.ebuild 981 SHA256 6679028fb1a900215d51a87ef6b3bd7698174a719eaa9498bf95470ac93c4028 SHA512 f9a7ed59e8ba364035e79b26efed0d4717dd501fee5906e70327fdf012f1e21b31802748505f83d12006074f4daa42e1d7895b4206e4a8c191a8d48f1e5ab012 WHIRLPOOL 8b606e6f4e85c187f4b67c7e235711063108cbb468368fbb8e2719973219c57ba16554a006048a897e47f89cca8b23a69fde6598fad321359e1d53e3886f1fe3 +MISC ChangeLog 9548 SHA256 f1da82297eefaf2be28f62e8767c477f85a99daab7d84389e1f1043388541f8d SHA512 fe43af1553969537c16a5d6a76b993d47268835cc6531e2e3f39c75b40462b8b4ad460432f964971ae5f566cfb3a3e3806895c30c5dfaf672e58ade8e2f3902f WHIRLPOOL 7792d3b1b72b8f92000bf83b1aa9072d8ec103d27c2d15e58f0c865ddc6d906fb243950bdf7099c410318a5a6adb3d6a073ec11d3ccb9875c8820c0dff1f44a3 +MISC ChangeLog-2015 2507 SHA256 bc35d540e00e4f495c64e973d556046dc6c4141211d0c7ec79ef3d1208f2ad48 SHA512 6b1ff047ba2dbcd858778cffedbd4f1bc55eaacb1aa1660e332d0c4ebd9634c76ec829ca9ba982f8cf52cdbb020635e4d01fbbc45bf9a706a656ed9dbc3291e0 WHIRLPOOL 624f79d1f03be446b3b366d623357dee6f303fc480c3cc245beba3ff84c5f970c274a754d02ebb44f0763454b384b6982df58b08e4768233ff1a855114e2f797 +MISC metadata.xml 336 SHA256 060a96d368bfaef82d24c39580e341055359094792cb45f9fd76960778807e86 SHA512 10046ff92549d9bc3a8487d66095435045700bb85032f00e4f73477b0f7e506006601b7b1a61d341ff8af9a925939fb099b4adc55867f9b1faa5834b717283af WHIRLPOOL 1c729df378a70b5c572ac0a0c825066bd9538857d16c7f37835f958f96a2240790a98a02106f4f3d1d068303be6aeb18f149c99e8af51e7219bd56137944f912 diff --git a/kde-frameworks/knotifications/files/knotifications-5.34.0-no-block-notification.patch b/kde-frameworks/knotifications/files/knotifications-5.34.0-no-block-notification.patch new file mode 100644 index 000000000000..2d1ae95af5fb --- /dev/null +++ b/kde-frameworks/knotifications/files/knotifications-5.34.0-no-block-notification.patch @@ -0,0 +1,101 @@ +From 1c97e1d9741fd15962474f47932dd09728dae76b Mon Sep 17 00:00:00 2001 +From: David Edmundson <kde@davidedmundson.co.uk> +Date: Fri, 28 Jul 2017 13:04:50 +0100 +Subject: [PATCH] Don't block starting notification service + +Summary: +We don't need to manually start the DBus service. +It blocks the calling app, and dbusServiceExists means that we will +always end up going the DBus route over a popup anyway, so it won't +do anything useful. + +The service (in the plasma case plasma-wait-for-name) will be started +automatically when we actually send the notification. + +Also fix d-dbusServiceExists being cleared to false when the first +service owner exits. + +BUG: 382444 + +Subscribers: #frameworks + +Tags: #frameworks + +Differential Revision: https://phabricator.kde.org/D6963 +--- + src/notifybypopup.cpp | 28 +++++++++++----------------- + 1 file changed, 11 insertions(+), 17 deletions(-) + +diff --git a/src/notifybypopup.cpp b/src/notifybypopup.cpp +index 735d52b..4f244e1 100644 +--- a/src/notifybypopup.cpp ++++ b/src/notifybypopup.cpp +@@ -109,6 +109,9 @@ public: + * Specifies if DBus Notifications interface exists on session bus + */ + bool dbusServiceExists; ++ ++ bool dbusServiceActivatable; ++ + /** + * DBus notification daemon capabilities cache. + * Do not use this variable. Use #popupServerCapabilities() instead. +@@ -161,6 +164,7 @@ NotifyByPopup::NotifyByPopup(QObject *parent) + { + d->animationTimer = 0; + d->dbusServiceExists = false; ++ d->dbusServiceActivatable = false; + d->dbusServiceCapCacheDirty = true; + d->nextPosition = -1; + +@@ -180,32 +184,20 @@ NotifyByPopup::NotifyByPopup(QObject *parent) + connect(watcher, SIGNAL(serviceOwnerChanged(QString,QString,QString)), + SLOT(onServiceOwnerChanged(QString,QString,QString))); + ++#ifndef Q_WS_WIN + if (!d->dbusServiceExists) { +- bool startfdo = false; +-#ifdef Q_WS_WIN +- startfdo = true; +-#else + QDBusMessage message = QDBusMessage::createMethodCall(QStringLiteral("org.freedesktop.DBus"), + QStringLiteral("/org/freedesktop/DBus"), + QStringLiteral("org.freedesktop.DBus"), + QStringLiteral("ListActivatableNames")); +- +- // FIXME - this should be async + QDBusReply<QStringList> reply = QDBusConnection::sessionBus().call(message); + if (reply.isValid() && reply.value().contains(dbusServiceName)) { +- startfdo = true; +- // We need to set d->dbusServiceExists to true because dbus might be too slow +- // starting the service and the first call to NotifyByPopup::notify +- // might not have had the service up, by setting this to true we +- // guarantee it will still go through dbus and dbus will do the correct +- // thing and wait for the service to go up ++ d->dbusServiceActivatable = true; ++ //if the service is activatable, we can assume it exists even if it is not currently running + d->dbusServiceExists = true; + } +-#endif +- if (startfdo) { +- QDBusConnection::sessionBus().interface()->startService(dbusServiceName); +- } + } ++#endif + } + + +@@ -439,7 +431,9 @@ void NotifyByPopup::onServiceOwnerChanged(const QString &serviceName, const QStr + + if (newOwner.isEmpty()) { + d->notificationQueue.clear(); +- d->dbusServiceExists = false; ++ if (!d->dbusServiceActivatable) { ++ d->dbusServiceExists = false; ++ } + } else if (oldOwner.isEmpty()) { + d->dbusServiceExists = true; + +-- +2.13.5 + diff --git a/kde-frameworks/knotifications/knotifications-5.37.0-r1.ebuild b/kde-frameworks/knotifications/knotifications-5.37.0-r1.ebuild new file mode 100644 index 000000000000..09709561d7a1 --- /dev/null +++ b/kde-frameworks/knotifications/knotifications-5.37.0-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +KDE_TEST="false" +inherit kde5 + +DESCRIPTION="Framework for notifying the user of an event" +LICENSE="LGPL-2.1+" +KEYWORDS="amd64 ~arm ~arm64 x86" +IUSE="dbus nls speech X" + +RDEPEND=" + $(add_frameworks_dep kcodecs) + $(add_frameworks_dep kconfig) + $(add_frameworks_dep kcoreaddons) + $(add_frameworks_dep kwindowsystem) + $(add_qt_dep qtdbus) + $(add_qt_dep qtgui) + $(add_qt_dep qtwidgets) + media-libs/phonon[qt5(+)] + dbus? ( dev-libs/libdbusmenu-qt[qt5(+)] ) + speech? ( $(add_qt_dep qtspeech) ) + X? ( + $(add_qt_dep qtx11extras) + x11-libs/libX11 + x11-libs/libXtst + ) +" +DEPEND="${RDEPEND} + nls? ( $(add_qt_dep linguist-tools) ) + X? ( x11-proto/xproto ) +" + +PATCHES=( "${FILESDIR}/${PN}-5.34.0-no-block-notification.patch" ) + +src_configure() { + local mycmakeargs=( + $(cmake-utils_use_find_package dbus dbusmenu-qt5) + $(cmake-utils_use_find_package speech Qt5TextToSpeech) + $(cmake-utils_use_find_package X X11) + ) + + kde5_src_configure +} diff --git a/kde-frameworks/knotifications/knotifications-5.38.0.ebuild b/kde-frameworks/knotifications/knotifications-5.38.0.ebuild new file mode 100644 index 000000000000..46d46ca122ec --- /dev/null +++ b/kde-frameworks/knotifications/knotifications-5.38.0.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +KDE_TEST="false" +inherit kde5 + +DESCRIPTION="Framework for notifying the user of an event" +LICENSE="LGPL-2.1+" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +IUSE="dbus nls speech X" + +RDEPEND=" + $(add_frameworks_dep kcodecs) + $(add_frameworks_dep kconfig) + $(add_frameworks_dep kcoreaddons) + $(add_frameworks_dep kwindowsystem) + $(add_qt_dep qtdbus) + $(add_qt_dep qtgui) + $(add_qt_dep qtwidgets) + media-libs/phonon[qt5(+)] + dbus? ( dev-libs/libdbusmenu-qt[qt5(+)] ) + speech? ( $(add_qt_dep qtspeech) ) + X? ( + $(add_qt_dep qtx11extras) + x11-libs/libX11 + x11-libs/libXtst + ) +" +DEPEND="${RDEPEND} + nls? ( $(add_qt_dep linguist-tools) ) + X? ( x11-proto/xproto ) +" + +src_configure() { + local mycmakeargs=( + $(cmake-utils_use_find_package dbus dbusmenu-qt5) + $(cmake-utils_use_find_package speech Qt5TextToSpeech) + $(cmake-utils_use_find_package X X11) + ) + + kde5_src_configure +} diff --git a/kde-frameworks/knotifications/metadata.xml b/kde-frameworks/knotifications/metadata.xml new file mode 100644 index 000000000000..be95fa52795f --- /dev/null +++ b/kde-frameworks/knotifications/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>kde@gentoo.org</email> + <name>Gentoo KDE Project</name> + </maintainer> + <use> + <flag name="speech">Enable text-to-speech notification support</flag> + </use> +</pkgmetadata> |