commit:     70bcb3e284e393f0102c6ac0754389550d41877e
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 12 16:33:24 2020 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Dec 12 17:58:22 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70bcb3e2

media-libs/liblastfm: Add missing test dependency even if restricted

Closes: https://bugs.gentoo.org/758896
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 .../liblastfm-1.1.0_pre20190625-missing-dep.patch  | 28 ++++++++++++++++++++++
 .../liblastfm/liblastfm-1.1.0_pre20190625.ebuild   |  2 ++
 2 files changed, 30 insertions(+)

diff --git 
a/media-libs/liblastfm/files/liblastfm-1.1.0_pre20190625-missing-dep.patch 
b/media-libs/liblastfm/files/liblastfm-1.1.0_pre20190625-missing-dep.patch
new file mode 100644
index 00000000000..e36a01c1583
--- /dev/null
+++ b/media-libs/liblastfm/files/liblastfm-1.1.0_pre20190625-missing-dep.patch
@@ -0,0 +1,28 @@
+From 9264fbecf8c7e910fa038ab372376ecc9b8c403c Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <[email protected]>
+Date: Sat, 12 Dec 2020 17:09:58 +0100
+Subject: [PATCH] Add missing -DBUILD_TESTS dependency Qt5Test
+
+Signed-off-by: Andreas Sturmlechner <[email protected]>
+---
+ CMakeLists.txt | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index d4fd670..bb5a895 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -37,6 +37,10 @@ if(NOT BUILD_WITH_QT4)
+         find_package(Qt5Sql REQUIRED CONFIG)
+     endif()
+ 
++    if(BUILD_TESTS)
++        find_package(Qt5Test CONFIG REQUIRED)
++    endif()
++
+     set(LASTFM_LIB_VERSION_SUFFIX 5)
+     if(UNIX AND NOT APPLE)
+         find_package(Qt5DBus REQUIRED CONFIG)
+-- 
+2.29.2
+

diff --git a/media-libs/liblastfm/liblastfm-1.1.0_pre20190625.ebuild 
b/media-libs/liblastfm/liblastfm-1.1.0_pre20190625.ebuild
index 66923fd858e..e7a0b783f0a 100644
--- a/media-libs/liblastfm/liblastfm-1.1.0_pre20190625.ebuild
+++ b/media-libs/liblastfm/liblastfm-1.1.0_pre20190625.ebuild
@@ -34,6 +34,8 @@ DEPEND="${RDEPEND}
        test? ( dev-qt/qttest:5 )
 "
 
+PATCHES=( "${FILESDIR}/${P}-missing-dep.patch" )
+
 src_configure() {
        # demos not working
        local mycmakeargs=(

Reply via email to