* [gentoo-commits] proj/kde:master commit in: kde-apps/libkcddb/files/, kde-apps/libkcddb/
@ 2015-01-21 20:48 Johannes Huber
0 siblings, 0 replies; 2+ messages in thread
From: Johannes Huber @ 2015-01-21 20:48 UTC (permalink / raw
To: gentoo-commits
commit: 90e4c97053ab2ec448453c9242e6a0fff145ed70
Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
AuthorDate: Mon Jan 19 23:52:55 2015 +0000
Commit: Johannes Huber <johu <AT> gentoo <DOT> org>
CommitDate: Wed Jan 21 20:47:43 2015 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=90e4c970
[kde-apps/libkcddb] Make tests optional
---
.../files/libkcddb-5.9999-tests-optional.patch | 27 ++++++++++++++++++++++
kde-apps/libkcddb/libkcddb-5.9999.ebuild | 8 ++-----
2 files changed, 29 insertions(+), 6 deletions(-)
diff --git a/kde-apps/libkcddb/files/libkcddb-5.9999-tests-optional.patch b/kde-apps/libkcddb/files/libkcddb-5.9999-tests-optional.patch
new file mode 100644
index 0000000..22ddd41
--- /dev/null
+++ b/kde-apps/libkcddb/files/libkcddb-5.9999-tests-optional.patch
@@ -0,0 +1,27 @@
+--- a/CMakeLists.txt 2015-01-20 00:43:05.096398998 +0100
++++ b/CMakeLists.txt 2015-01-20 00:44:37.340010389 +0100
+@@ -12,7 +12,7 @@
+ include(GenerateExportHeader)
+ include(ECMSetupVersion)
+
+-find_package(Qt5 REQUIRED COMPONENTS Network Widgets Test)
++find_package(Qt5 REQUIRED COMPONENTS Network Widgets)
+ find_package(KF5 REQUIRED COMPONENTS Config DocTools Codecs I18n KIO WidgetsAddons)
+
+ ecm_setup_version(${KF5_VERSION}
+@@ -36,10 +36,14 @@
+
+ include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
+
+-add_subdirectory( test )
+ add_subdirectory( kcmcddb )
+ add_subdirectory( libkcddb )
+
++if(BUILD_TESTING)
++ find_package(Qt5Test REQUIRED)
++ add_subdirectory( test )
++endif()
++
+ feature_summary(WHAT PACKAGES_NOT_FOUND FATAL_ON_MISSING_REQUIRED_PACKAGES)
+
+ # Figure out the relative path from the installed Config.cmake file to the install prefix (which may be at
diff --git a/kde-apps/libkcddb/libkcddb-5.9999.ebuild b/kde-apps/libkcddb/libkcddb-5.9999.ebuild
index bced8d8..3293d1a 100644
--- a/kde-apps/libkcddb/libkcddb-5.9999.ebuild
+++ b/kde-apps/libkcddb/libkcddb-5.9999.ebuild
@@ -5,6 +5,7 @@
EAPI=5
EGIT_BRANCH="kf5"
+KDE_TEST="true"
inherit kde5
DESCRIPTION="KDE library for CDDB"
@@ -32,12 +33,7 @@ RDEPEND="${DEPEND}
!kde-base/libkcddb:4
"
-src_prepare() {
- sed -e '/add_subdirectory( test )/ s/^#*/#/' \
- -i CMakeLists.txt || die
-
- kde5_src_prepare
-}
+PATCHES=( "${FILESDIR}/${PN}-5.9999-tests-optional.patch" )
src_configure() {
local mycmakeargs=(
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] proj/kde:master commit in: kde-apps/libkcddb/files/, kde-apps/libkcddb/
@ 2020-12-29 16:03 Andreas Sturmlechner
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Sturmlechner @ 2020-12-29 16:03 UTC (permalink / raw
To: gentoo-commits
commit: 57100d7e0efd70e09376c532da20d7c5d0adcc6c
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 29 09:51:29 2020 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Tue Dec 29 09:51:29 2020 +0000
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=57100d7e
kde-apps/libkcddb: Drop unused DEPEND
Upstream commit fdddc63be6b5a2b95bd3ff7177b02e58d922bed2
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
.../files/libkcddb-20.12.1-unused-dep.patch | 54 ++++++++++++++++++++++
kde-apps/libkcddb/libkcddb-20.12.49.9999.ebuild | 3 +-
kde-apps/libkcddb/libkcddb-9999.ebuild | 1 -
3 files changed, 56 insertions(+), 2 deletions(-)
diff --git a/kde-apps/libkcddb/files/libkcddb-20.12.1-unused-dep.patch b/kde-apps/libkcddb/files/libkcddb-20.12.1-unused-dep.patch
new file mode 100644
index 0000000000..908d8ee939
--- /dev/null
+++ b/kde-apps/libkcddb/files/libkcddb-20.12.1-unused-dep.patch
@@ -0,0 +1,54 @@
+From fdddc63be6b5a2b95bd3ff7177b02e58d922bed2 Mon Sep 17 00:00:00 2001
+From: "Friedrich W. H. Kossebau" <kossebau@kde.org>
+Date: Tue, 29 Dec 2020 09:10:33 +0100
+Subject: [PATCH] Drop unused linkage to KF5::Codecs
+
+GIT_SILENT
+
+* asturm 2020-12-29: rebased, added relevant include cleanup part from 44a7ec47
+---
+ CMakeLists.txt | 2 +-
+ libkcddb/CMakeLists.txt | 1 -
+ 2 files changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index b9ee121..30a6717 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -21,7 +21,7 @@
+ set(REQUIRED_QT_VERSION 5.4.0)
+
+ find_package(Qt5 ${REQUIRED_QT_VERSION} REQUIRED COMPONENTS Network Widgets)
+-find_package(KF5 ${KF5_DEP_VERSION} REQUIRED COMPONENTS Config DocTools Codecs I18n KIO WidgetsAddons)
++find_package(KF5 ${KF5_DEP_VERSION} REQUIRED COMPONENTS Config DocTools I18n KIO WidgetsAddons)
+
+ ecm_setup_version("5.0.0"
+ VARIABLE_PREFIX KCDDB
+diff --git a/libkcddb/CMakeLists.txt b/libkcddb/CMakeLists.txt
+index e0c0e6a..3b239a9 100644
+--- a/libkcddb/CMakeLists.txt
++++ b/libkcddb/CMakeLists.txt
+@@ -52,7 +52,6 @@ target_link_libraries(KF5Cddb
+ PUBLIC
+ KF5::ConfigGui
+ PRIVATE
+- KF5::Codecs
+ KF5::I18n
+ KF5::KIOCore
+ Qt5::Network)
+diff --git a/libkcddb/musicbrainz/musicbrainzlookup.cpp b/libkcddb/musicbrainz/musicbrainzlookup.cpp
+index b8e7261..89b89db 100644
+--- a/libkcddb/musicbrainz/musicbrainzlookup.cpp
++++ b/libkcddb/musicbrainz/musicbrainzlookup.cpp
+@@ -21,8 +21,6 @@
+ #include <musicbrainz5/NameCredit.h>
+ #include <musicbrainz5/SecondaryType.h>
+
+-#include <KCodecs/KCodecs>
+-
+ #include <QCryptographicHash>
+ #include <QDebug>
+
+--
+GitLab
+
diff --git a/kde-apps/libkcddb/libkcddb-20.12.49.9999.ebuild b/kde-apps/libkcddb/libkcddb-20.12.49.9999.ebuild
index b166cfb87a..43eb73f470 100644
--- a/kde-apps/libkcddb/libkcddb-20.12.49.9999.ebuild
+++ b/kde-apps/libkcddb/libkcddb-20.12.49.9999.ebuild
@@ -20,7 +20,6 @@ DEPEND="
>=dev-qt/qtgui-${QTMIN}:5
>=dev-qt/qtnetwork-${QTMIN}:5
>=dev-qt/qtwidgets-${QTMIN}:5
- >=kde-frameworks/kcodecs-${KFMIN}:5
>=kde-frameworks/kconfig-${KFMIN}:5
>=kde-frameworks/kconfigwidgets-${KFMIN}:5
>=kde-frameworks/kcoreaddons-${KFMIN}:5
@@ -35,6 +34,8 @@ RDEPEND="${DEPEND}"
# bug 280996
RESTRICT+=" test"
+PATCHES=( "${FILESDIR}/${PN}-20.12.1-unused-dep.patch" )
+
src_prepare() {
ecm_src_prepare
diff --git a/kde-apps/libkcddb/libkcddb-9999.ebuild b/kde-apps/libkcddb/libkcddb-9999.ebuild
index b166cfb87a..59e885bf55 100644
--- a/kde-apps/libkcddb/libkcddb-9999.ebuild
+++ b/kde-apps/libkcddb/libkcddb-9999.ebuild
@@ -20,7 +20,6 @@ DEPEND="
>=dev-qt/qtgui-${QTMIN}:5
>=dev-qt/qtnetwork-${QTMIN}:5
>=dev-qt/qtwidgets-${QTMIN}:5
- >=kde-frameworks/kcodecs-${KFMIN}:5
>=kde-frameworks/kconfig-${KFMIN}:5
>=kde-frameworks/kconfigwidgets-${KFMIN}:5
>=kde-frameworks/kcoreaddons-${KFMIN}:5
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-12-29 16:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-21 20:48 [gentoo-commits] proj/kde:master commit in: kde-apps/libkcddb/files/, kde-apps/libkcddb/ Johannes Huber
-- strict thread matches above, loose matches on Subject: below --
2020-12-29 16:03 Andreas Sturmlechner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox