mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 10:57:07 -08:00
kde-apps/kalarm: drop 21.12.3
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST kalarm-21.12.3.tar.xz 2197144 BLAKE2B 583a367bd883351311d5d84e48af9e8168a5d6ef6210e0191983079c02b9a87866d9b602a6a5b9bf0e78f9f183705e6be5876c23311d8e217858e5aa65e4e196 SHA512 6f56719774b99968a4037ec2aaf4938101ff012244e5b432daa0d5591a92ac7f454101770e01470647abd472399eac6bec8ecb7b5def4480dcc7feed779f4acd
|
||||
DIST kalarm-22.04.3.tar.xz 2347752 BLAKE2B 9749172b9246c0f903ccbf7fd6ca7dae756ac9cfab594a85cc0cdff772dc0f0c21b48b2f2c0ff71467b117f0e287def9c4202a033636ce93f1317a567ff8e017 SHA512 22650e5263d0a7bb584da138977da32cad38672f2e2dd2beb5ad1b9f31f76cbed68fd3b9ca5c241bacbc793ce5102da5b331b68e689868620f46aab2234d26c4
|
||||
|
||||
@@ -1,124 +0,0 @@
|
||||
From 53a299c513c447afc57c7f520ac35aea2dffc277 Mon Sep 17 00:00:00 2001
|
||||
From: Laurent Montel <montel@kde.org>
|
||||
Date: Fri, 25 Feb 2022 07:29:19 +0100
|
||||
Subject: [PATCH] Make build without texttospeech support
|
||||
|
||||
---
|
||||
src/commandoptions.cpp | 7 +++++++
|
||||
src/messagedisplayhelper.cpp | 5 +++++
|
||||
src/prefdlg.cpp | 5 +++++
|
||||
src/soundpicker.cpp | 5 +++++
|
||||
4 files changed, 22 insertions(+)
|
||||
|
||||
diff --git a/src/commandoptions.cpp b/src/commandoptions.cpp
|
||||
index a564fbb3..a6bbded1 100644
|
||||
--- a/src/commandoptions.cpp
|
||||
+++ b/src/commandoptions.cpp
|
||||
@@ -14,7 +14,10 @@
|
||||
#include "kalarm_debug.h"
|
||||
|
||||
#include <KAlarmCal/Identities>
|
||||
+#include <kpimtextedit/kpimtextedit-texttospeech.h>
|
||||
+#if KPIMTEXTEDIT_TEXT_TO_SPEECH
|
||||
#include <KPIMTextEdit/TextToSpeech>
|
||||
+#endif
|
||||
#include <KLocalizedString>
|
||||
|
||||
#include <QCommandLineParser>
|
||||
@@ -570,7 +573,11 @@ void CommandOptions::process()
|
||||
{
|
||||
if (mParser->isSet(*mOptions.at(BEEP)))
|
||||
setErrorIncompatible(BEEP, SPEAK);
|
||||
+#if KPIMTEXTEDIT_TEXT_TO_SPEECH
|
||||
else if (!KPIMTextEdit::TextToSpeech::self()->isReady())
|
||||
+#else
|
||||
+ else
|
||||
+#endif
|
||||
setError(xi18nc("@info:shell", "<icode>%1</icode> requires KAlarm to be compiled with QTextToSpeech support", optionName(SPEAK)));
|
||||
}
|
||||
const bool onceOnly = mParser->isSet(*mOptions.at(REMINDER_ONCE));
|
||||
diff --git a/src/messagedisplayhelper.cpp b/src/messagedisplayhelper.cpp
|
||||
index 0f6b9680..6e80e8ca 100644
|
||||
--- a/src/messagedisplayhelper.cpp
|
||||
+++ b/src/messagedisplayhelper.cpp
|
||||
@@ -21,7 +21,10 @@
|
||||
#include "lib/synchtimer.h"
|
||||
#include "kalarm_debug.h"
|
||||
|
||||
+#include <kpimtextedit/kpimtextedit-texttospeech.h>
|
||||
+#if KPIMTEXTEDIT_TEXT_TO_SPEECH
|
||||
#include <KPIMTextEdit/TextToSpeech>
|
||||
+#endif
|
||||
|
||||
#include <KLocalizedString>
|
||||
#include <KConfig>
|
||||
@@ -831,6 +834,7 @@ void MessageDisplayHelper::playAudio()
|
||||
*/
|
||||
void MessageDisplayHelper::slotSpeak()
|
||||
{
|
||||
+#if KPIMTEXTEDIT_TEXT_TO_SPEECH
|
||||
KPIMTextEdit::TextToSpeech* tts = KPIMTextEdit::TextToSpeech::self();
|
||||
if (!tts->isReady())
|
||||
{
|
||||
@@ -840,6 +844,7 @@ void MessageDisplayHelper::slotSpeak()
|
||||
}
|
||||
|
||||
tts->say(mMessage);
|
||||
+#endif
|
||||
}
|
||||
|
||||
/******************************************************************************
|
||||
diff --git a/src/prefdlg.cpp b/src/prefdlg.cpp
|
||||
index ea32116e..d3cf48ae 100644
|
||||
--- a/src/prefdlg.cpp
|
||||
+++ b/src/prefdlg.cpp
|
||||
@@ -48,7 +48,10 @@
|
||||
#include <KHolidays/HolidayRegion>
|
||||
using namespace KHolidays;
|
||||
|
||||
+#include <kpimtextedit/kpimtextedit-texttospeech.h>
|
||||
+#if KPIMTEXTEDIT_TEXT_TO_SPEECH
|
||||
#include <KPIMTextEdit/TextToSpeech>
|
||||
+#endif
|
||||
|
||||
#include <KLocalizedString>
|
||||
#include <KShell>
|
||||
@@ -1355,8 +1358,10 @@ EditPrefTab::EditPrefTab(StackedScrollGroup* scrollGroup)
|
||||
mSound->addItem(SoundPicker::i18n_combo_None()); // index 0
|
||||
mSound->addItem(SoundPicker::i18n_combo_Beep()); // index 1
|
||||
mSound->addItem(SoundPicker::i18n_combo_File()); // index 2
|
||||
+#if KPIMTEXTEDIT_TEXT_TO_SPEECH
|
||||
if (KPIMTextEdit::TextToSpeech::self()->isReady())
|
||||
mSound->addItem(SoundPicker::i18n_combo_Speak()); // index 3
|
||||
+#endif
|
||||
mSound->setMinimumSize(mSound->sizeHint());
|
||||
mSound->setWhatsThis(defsetting.subs(SoundPicker::i18n_label_Sound()).toString());
|
||||
hlayout->addWidget(mSound);
|
||||
diff --git a/src/soundpicker.cpp b/src/soundpicker.cpp
|
||||
index 426baf96..f85071ea 100644
|
||||
--- a/src/soundpicker.cpp
|
||||
+++ b/src/soundpicker.cpp
|
||||
@@ -16,7 +16,10 @@
|
||||
#include "lib/pushbutton.h"
|
||||
#include "kalarm_debug.h"
|
||||
|
||||
+#include <kpimtextedit/kpimtextedit-texttospeech.h>
|
||||
+#if KPIMTEXTEDIT_TEXT_TO_SPEECH
|
||||
#include <KPIMTextEdit/TextToSpeech>
|
||||
+#endif
|
||||
|
||||
#include <KLocalizedString>
|
||||
#include <phonon/backendcapabilities.h>
|
||||
@@ -130,7 +133,9 @@ void SoundPicker::showFile(bool show)
|
||||
*/
|
||||
void SoundPicker::showSpeak(bool show)
|
||||
{
|
||||
+#if KPIMTEXTEDIT_TEXT_TO_SPEECH
|
||||
if (!KPIMTextEdit::TextToSpeech::self()->isReady())
|
||||
+#endif
|
||||
show = false; // speech capability is not installed or configured
|
||||
if (show != mSpeakShowing)
|
||||
{
|
||||
--
|
||||
GitLab
|
||||
|
||||
@@ -1,82 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
ECM_HANDBOOK="optional"
|
||||
PVCUT=$(ver_cut 1-3)
|
||||
KFMIN=5.88.0
|
||||
QTMIN=5.15.2
|
||||
inherit ecm kde.org
|
||||
|
||||
DESCRIPTION="Application to manage alarms and other timer based alerts for the desktop"
|
||||
HOMEPAGE="https://apps.kde.org/kalarm/ https://userbase.kde.org/KAlarm"
|
||||
|
||||
LICENSE="GPL-2+ handbook? ( FDL-1.2+ )"
|
||||
SLOT="5"
|
||||
KEYWORDS="amd64 arm64 ~ppc64 x86"
|
||||
IUSE="speech X"
|
||||
|
||||
DEPEND="
|
||||
>=dev-qt/qtdbus-${QTMIN}:5
|
||||
>=dev-qt/qtgui-${QTMIN}:5
|
||||
>=dev-qt/qtnetwork-${QTMIN}:5
|
||||
>=dev-qt/qtwidgets-${QTMIN}:5
|
||||
>=kde-apps/akonadi-${PVCUT}:5
|
||||
>=kde-apps/akonadi-contacts-${PVCUT}:5
|
||||
>=kde-apps/akonadi-mime-${PVCUT}:5
|
||||
>=kde-apps/kalarmcal-${PVCUT}:5
|
||||
>=kde-apps/kcalutils-${PVCUT}:5
|
||||
>=kde-apps/kidentitymanagement-${PVCUT}:5
|
||||
>=kde-apps/kmailtransport-${PVCUT}:5
|
||||
>=kde-apps/kmime-${PVCUT}:5
|
||||
>=kde-apps/kontactinterface-${PVCUT}:5
|
||||
>=kde-apps/kpimtextedit-${PVCUT}:5[speech=]
|
||||
>=kde-apps/pimcommon-${PVCUT}:5
|
||||
>=kde-frameworks/kauth-${KFMIN}:5
|
||||
>=kde-frameworks/kcalendarcore-${KFMIN}:5
|
||||
>=kde-frameworks/kcmutils-${KFMIN}:5
|
||||
>=kde-frameworks/kcodecs-${KFMIN}:5
|
||||
>=kde-frameworks/kcompletion-${KFMIN}:5
|
||||
>=kde-frameworks/kconfig-${KFMIN}:5
|
||||
>=kde-frameworks/kconfigwidgets-${KFMIN}:5
|
||||
>=kde-frameworks/kcontacts-${KFMIN}:5
|
||||
>=kde-frameworks/kcoreaddons-${KFMIN}:5
|
||||
>=kde-frameworks/kcrash-${KFMIN}:5
|
||||
>=kde-frameworks/kdbusaddons-${KFMIN}:5
|
||||
>=kde-frameworks/kglobalaccel-${KFMIN}:5
|
||||
>=kde-frameworks/kguiaddons-${KFMIN}:5
|
||||
>=kde-frameworks/kholidays-${KFMIN}:5
|
||||
>=kde-frameworks/ki18n-${KFMIN}:5
|
||||
>=kde-frameworks/kiconthemes-${KFMIN}:5
|
||||
>=kde-frameworks/kidletime-${KFMIN}:5
|
||||
>=kde-frameworks/kio-${KFMIN}:5
|
||||
>=kde-frameworks/kitemmodels-${KFMIN}:5
|
||||
>=kde-frameworks/kjobwidgets-${KFMIN}:5
|
||||
>=kde-frameworks/knotifications-${KFMIN}:5
|
||||
>=kde-frameworks/knotifyconfig-${KFMIN}:5
|
||||
>=kde-frameworks/kservice-${KFMIN}:5
|
||||
>=kde-frameworks/ktextwidgets-${KFMIN}:5
|
||||
>=kde-frameworks/kwidgetsaddons-${KFMIN}:5
|
||||
>=kde-frameworks/kwindowsystem-${KFMIN}:5
|
||||
>=kde-frameworks/kxmlgui-${KFMIN}:5
|
||||
>=media-libs/phonon-4.11.0
|
||||
X? (
|
||||
>=dev-qt/qtx11extras-${QTMIN}:5
|
||||
x11-libs/libX11
|
||||
)
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
>=kde-apps/kdepim-runtime-${PVCUT}:5
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-21.12.3-speech-optional.patch )
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
$(cmake_use_find_package X Qt5X11Extras)
|
||||
$(cmake_use_find_package X X11)
|
||||
)
|
||||
|
||||
ecm_src_configure
|
||||
}
|
||||
Reference in New Issue
Block a user