From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3CF0615808B for ; Thu, 24 Feb 2022 17:04:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 58198E0837; Thu, 24 Feb 2022 17:04:38 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B643DE0830 for ; Thu, 24 Feb 2022 17:04:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8B298342DAA for ; Thu, 24 Feb 2022 17:04:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 205562EB for ; Thu, 24 Feb 2022 17:04:34 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1645722263.f0f6548398648a8100cfecaebeb27c5cbe30f029.asturm@gentoo> Subject: [gentoo-commits] proj/kde:master commit in: kde-apps/kpimtextedit/files/, kde-apps/kpimtextedit/ X-VCS-Repository: proj/kde X-VCS-Files: kde-apps/kpimtextedit/files/kpimtextedit-21.12.2-speech-optional-1.patch kde-apps/kpimtextedit/files/kpimtextedit-21.12.2-speech-optional-2.patch kde-apps/kpimtextedit/files/kpimtextedit-21.12.3-speech-optional-1.patch kde-apps/kpimtextedit/files/kpimtextedit-21.12.3-speech-optional-2.patch kde-apps/kpimtextedit/files/kpimtextedit-21.12.3-speech-optional-3.patch kde-apps/kpimtextedit/kpimtextedit-21.12.49.9999.ebuild kde-apps/kpimtextedit/kpimtextedit-9999.ebuild X-VCS-Directories: kde-apps/kpimtextedit/ kde-apps/kpimtextedit/files/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: f0f6548398648a8100cfecaebeb27c5cbe30f029 X-VCS-Branch: master Date: Thu, 24 Feb 2022 17:04:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 1f9f2d58-148d-4514-9ae7-16a9a2e1746f X-Archives-Hash: 141bddc8c40c76ab245d2f9615c443c1 commit: f0f6548398648a8100cfecaebeb27c5cbe30f029 Author: Andreas Sturmlechner gentoo org> AuthorDate: Thu Feb 24 14:38:08 2022 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Thu Feb 24 17:04:23 2022 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=f0f65483 kde-apps/kpimtextedit: Fix IUSE speech Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner gentoo.org> ...> kpimtextedit-21.12.3-speech-optional-1.patch} | 0 ...> kpimtextedit-21.12.3-speech-optional-2.patch} | 0 .../kpimtextedit-21.12.3-speech-optional-3.patch | 100 +++++++++++++++++++++ .../kpimtextedit/kpimtextedit-21.12.49.9999.ebuild | 2 +- kde-apps/kpimtextedit/kpimtextedit-9999.ebuild | 11 ++- 5 files changed, 110 insertions(+), 3 deletions(-) diff --git a/kde-apps/kpimtextedit/files/kpimtextedit-21.12.2-speech-optional-1.patch b/kde-apps/kpimtextedit/files/kpimtextedit-21.12.3-speech-optional-1.patch similarity index 100% rename from kde-apps/kpimtextedit/files/kpimtextedit-21.12.2-speech-optional-1.patch rename to kde-apps/kpimtextedit/files/kpimtextedit-21.12.3-speech-optional-1.patch diff --git a/kde-apps/kpimtextedit/files/kpimtextedit-21.12.2-speech-optional-2.patch b/kde-apps/kpimtextedit/files/kpimtextedit-21.12.3-speech-optional-2.patch similarity index 100% rename from kde-apps/kpimtextedit/files/kpimtextedit-21.12.2-speech-optional-2.patch rename to kde-apps/kpimtextedit/files/kpimtextedit-21.12.3-speech-optional-2.patch diff --git a/kde-apps/kpimtextedit/files/kpimtextedit-21.12.3-speech-optional-3.patch b/kde-apps/kpimtextedit/files/kpimtextedit-21.12.3-speech-optional-3.patch new file mode 100644 index 0000000000..617864cd7b --- /dev/null +++ b/kde-apps/kpimtextedit/files/kpimtextedit-21.12.3-speech-optional-3.patch @@ -0,0 +1,100 @@ +From b248e11f0c6f4e389052e616e6dd262135a23f3c Mon Sep 17 00:00:00 2001 +From: Laurent Montel +Date: Mon, 14 Feb 2022 18:58:34 +0100 +Subject: [PATCH] Add info about texttospeech support + +--- + CMakeLists.txt | 7 +++++-- + kpimtextedit-texttospeech.h.cmake | 2 ++ + src/CMakeLists.txt | 11 ++++++----- + 3 files changed, 14 insertions(+), 8 deletions(-) + create mode 100644 kpimtextedit-texttospeech.h.cmake + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index b1c48c8..a00bdeb 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -82,10 +82,13 @@ set_package_properties(Qt5TextToSpeech PROPERTIES DESCRIPTION + TYPE OPTIONAL + ) + if(TARGET Qt5::TextToSpeech) +- set(HAVE_TEXT_TO_SPEECH_SUPPORT TRUE) +- add_definitions(-DHAVE_TEXT_TO_SPEECH_SUPPORT) ++ add_definitions(-DHAVE_TEXT_TO_SPEECH_SUPPORT) ++ set(KPIMTEXTEDIT_TEXT_TO_SPEECH TRUE) + endif() + ++configure_file(kpimtextedit-texttospeech.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/kpimtextedit-texttospeech.h ) ++ ++ + if(BUILD_TESTING) + find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED COMPONENTS Test) + add_definitions(-DBUILD_TESTING) +diff --git a/kpimtextedit-texttospeech.h.cmake b/kpimtextedit-texttospeech.h.cmake +new file mode 100644 +index 0000000..c82af97 +--- /dev/null ++++ b/kpimtextedit-texttospeech.h.cmake +@@ -0,0 +1,2 @@ ++#cmakedefine01 KPIMTEXTEDIT_TEXT_TO_SPEECH ++ +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index 3e24a2f..4e02e5f 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -53,7 +53,7 @@ target_sources(KF5PimTextEdit PRIVATE + composer-ng/richtextcomposeremailquotehighlighter.h + composer-ng/richtextcomposerwidget.h + ) +-if (HAVE_TEXT_TO_SPEECH_SUPPORT) ++if (KPIMTEXTEDIT_TEXT_TO_SPEECH) + target_sources(KF5PimTextEdit PRIVATE + texttospeech/texttospeech.cpp + texttospeech/texttospeechwidget.cpp +@@ -168,7 +168,7 @@ target_link_libraries(KF5PimTextEdit + KF5::I18n + KF5::SyntaxHighlighting + ) +-if (HAVE_TEXT_TO_SPEECH_SUPPORT) ++if (KPIMTEXTEDIT_TEXT_TO_SPEECH) + target_link_libraries(KF5PimTextEdit + PRIVATE + Qt5::TextToSpeech +@@ -245,7 +245,7 @@ ecm_generate_headers(KPimTextEdit_CamelCasetexteditor_commonwidget_HEADERS + ) + + +-if (HAVE_TEXT_TO_SPEECH_SUPPORT) ++if (KPIMTEXTEDIT_TEXT_TO_SPEECH) + ecm_generate_headers(KPimTextEdit_CamelCasetexttospeechs_HEADERS + HEADER_NAMES + TextToSpeech +@@ -274,7 +274,7 @@ ecm_generate_headers(KPimTextEdit_Camelcasecomposerng_HEADERS + + + ########### install files ############### +-if (HAVE_TEXT_TO_SPEECH_SUPPORT) ++if (KPIMTEXTEDIT_TEXT_TO_SPEECH) + install(FILES + ${KPimTextEdit_texttospeechs_HEADERS} + DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF}/KPIMTextEdit/kpimtextedit +@@ -289,6 +289,7 @@ endif() + + install(FILES + ${CMAKE_CURRENT_BINARY_DIR}/kpimtextedit_export.h ++ ${CMAKE_CURRENT_BINARY_DIR}/../kpimtextedit-texttospeech.h + ${kpimtextedit_HEADERS} + ${KPimTextEdit_richtexteditor_HEADERS} + ${KPimTextEdit_texteditor_commonwidget_HEADERS} +@@ -321,7 +322,7 @@ if (BUILD_TESTING) + add_subdirectory(texteditor/commonwidget/autotests) + add_subdirectory(texteditor/plaintexteditor/tests) + add_subdirectory(texteditor/richtexteditor/tests) +- if (HAVE_TEXT_TO_SPEECH_SUPPORT) ++ if (KPIMTEXTEDIT_TEXT_TO_SPEECH) + add_subdirectory(texttospeech/autotests) + add_subdirectory(texttospeech/tests) + endif() +-- +GitLab + diff --git a/kde-apps/kpimtextedit/kpimtextedit-21.12.49.9999.ebuild b/kde-apps/kpimtextedit/kpimtextedit-21.12.49.9999.ebuild index 512857fe1e..8af46b3db2 100644 --- a/kde-apps/kpimtextedit/kpimtextedit-21.12.49.9999.ebuild +++ b/kde-apps/kpimtextedit/kpimtextedit-21.12.49.9999.ebuild @@ -40,7 +40,7 @@ DEPEND="${RDEPEND} test? ( >=kde-frameworks/ktextwidgets-${KFMIN}:5 ) " -PATCHES=( "${FILESDIR}"/${PN}-21.12.2-speech-optional-{1,2}.patch ) +PATCHES=( "${FILESDIR}"/${PN}-21.12.3-speech-optional-{1,2,3}.patch ) src_configure() { local mycmakeargs=( diff --git a/kde-apps/kpimtextedit/kpimtextedit-9999.ebuild b/kde-apps/kpimtextedit/kpimtextedit-9999.ebuild index 80cb9393c1..983108b72b 100644 --- a/kde-apps/kpimtextedit/kpimtextedit-9999.ebuild +++ b/kde-apps/kpimtextedit/kpimtextedit-9999.ebuild @@ -16,13 +16,12 @@ DESCRIPTION="Extended text editor for PIM applications" LICENSE="LGPL-2.1+" SLOT="5" KEYWORDS="" -IUSE="" +IUSE="speech" RESTRICT="test" RDEPEND=" >=dev-qt/qtgui-${QTMIN}:5 - >=dev-qt/qtspeech-${QTMIN}:5 >=dev-qt/qtwidgets-${QTMIN}:5 >=kde-frameworks/kcompletion-${KFMIN}:5 >=kde-frameworks/kconfig-${KFMIN}:5 @@ -35,7 +34,15 @@ RDEPEND=" >=kde-frameworks/kxmlgui-${KFMIN}:5 >=kde-frameworks/sonnet-${KFMIN}:5 >=kde-frameworks/syntax-highlighting-${KFMIN}:5 + speech? ( >=dev-qt/qtspeech-${QTMIN}:5 ) " DEPEND="${RDEPEND} test? ( >=kde-frameworks/ktextwidgets-${KFMIN}:5 ) " + +src_configure() { + local mycmakeargs=( + $(cmake_use_find_package speech Qt5TextToSpeech) + ) + ecm_src_configure +}