public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: media-libs/liblastfm/, media-libs/liblastfm/files/
@ 2018-04-17 12:10 Andreas Sturmlechner
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas Sturmlechner @ 2018-04-17 12:10 UTC (permalink / raw
  To: gentoo-commits

commit:     80dfffe14e4abcf01a126c1405770e022e04b039
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 17 09:20:10 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Tue Apr 17 12:02:22 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80dfffe1

media-libs/liblastfm: Fix cmake/Qt-5.11_beta3 patch

Closes: https://bugs.gentoo.org/653316
Package-Manager: Portage-2.3.29, Repoman-2.3.9

 .../files/liblastfm-1.1.0_pre20150206-cmake.patch  |  97 ------------------
 .../liblastfm-1.1.0_pre20150206-qt-5.11b3.patch    | 114 ++++++++++++++++++++-
 .../liblastfm/liblastfm-1.1.0_pre20150206.ebuild   |   5 +-
 3 files changed, 111 insertions(+), 105 deletions(-)

diff --git a/media-libs/liblastfm/files/liblastfm-1.1.0_pre20150206-cmake.patch b/media-libs/liblastfm/files/liblastfm-1.1.0_pre20150206-cmake.patch
deleted file mode 100644
index a42baf0ca30..00000000000
--- a/media-libs/liblastfm/files/liblastfm-1.1.0_pre20150206-cmake.patch
+++ /dev/null
@@ -1,97 +0,0 @@
-From 8703c12d7a177627fab4a2f67018d01cc7bf0808 Mon Sep 17 00:00:00 2001
-From: Andreas Sturmlechner <andreas.sturmlechner@gmail.com>
-Date: Sun, 1 Apr 2018 11:51:42 +0200
-Subject: [PATCH 1/3] Make Qt5 build default and simplify logic, add missing
- deps
-
----
- CMakeLists.txt | 10 +++-------
- 1 file changed, 3 insertions(+), 7 deletions(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index be88967..a8c81dd 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -27,16 +27,12 @@ set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}" "${PROJECT_SOURCE_DIR}/cmake/Module
- # setup qt stuff
- set(CMAKE_AUTOMOC ON)
- 
--option(BUILD_WITH_QT4 "Build liblastfm with Qt4 no matter if Qt5 was found" OFF)
-+option(BUILD_WITH_QT4 "Build liblastfm with Qt4" OFF)
- 
--if( NOT BUILD_WITH_QT4 )
--    # try Qt5 first, and prefer that if found
--    find_package(Qt5Core QUIET)
--endif()
-+if(NOT BUILD_WITH_QT4)
-+    find_package(Qt5 CONFIG REQUIRED Core Network Sql Xml)
- 
--if(Qt5Core_DIR)
-     set(LASTFM_LIB_VERSION_SUFFIX 5)
--    message(STATUS "Found Qt5! Please keep in mind, this is highly experimental and not our main development target..")
-     include_directories(${Qt5Core_INCLUDE_DIRS})
-     if(UNIX AND NOT APPLE)
-         find_package(Qt5DBus REQUIRED)
--- 
-2.16.3
-
-
-From 22f6900552839bc90c0fc68b62707d42544eaccf Mon Sep 17 00:00:00 2001
-From: Andreas Sturmlechner <andreas.sturmlechner@gmail.com>
-Date: Sun, 1 Apr 2018 11:56:48 +0200
-Subject: [PATCH 2/3] Make use of FeatureSummary
-
----
- CMakeLists.txt | 3 +++
- 1 file changed, 3 insertions(+)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index a8c81dd..d5fd5b1 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -20,6 +20,7 @@ option(BUILD_TESTS "Build liblastfm tests" ON)
- 
- # installation dirs
- include(GNUInstallDirs)
-+include(FeatureSummary)
- 
- #cmake module path
- set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}" "${PROJECT_SOURCE_DIR}/cmake/Modules")
-@@ -93,3 +94,5 @@ if(BUILD_TESTS)
-     enable_testing()
-     add_subdirectory(tests)
- endif()
-+
-+feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
--- 
-2.16.3
-
-
-From bf3ee28f1aa5de7a3f3f5a3077adc97804e27b0e Mon Sep 17 00:00:00 2001
-From: Andreas Sturmlechner <andreas.sturmlechner@gmail.com>
-Date: Sun, 1 Apr 2018 12:06:48 +0200
-Subject: [PATCH 3/3] Cleanup include dirs
-
----
- CMakeLists.txt | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index d5fd5b1..ef7fdd5 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -34,10 +34,10 @@ if(NOT BUILD_WITH_QT4)
-     find_package(Qt5 CONFIG REQUIRED Core Network Sql Xml)
- 
-     set(LASTFM_LIB_VERSION_SUFFIX 5)
--    include_directories(${Qt5Core_INCLUDE_DIRS})
-     if(UNIX AND NOT APPLE)
-         find_package(Qt5DBus REQUIRED)
-     endif()
-+    include_directories(Qt5::Core Qt5::Network Qt5::Xml)
- 
- #     macro(qt_wrap_ui)
- #         qt5_wrap_ui(${ARGN})
--- 
-2.16.3
-

diff --git a/media-libs/liblastfm/files/liblastfm-1.1.0_pre20150206-qt-5.11b3.patch b/media-libs/liblastfm/files/liblastfm-1.1.0_pre20150206-qt-5.11b3.patch
index dfbd694ed3d..fc0e9b8938d 100644
--- a/media-libs/liblastfm/files/liblastfm-1.1.0_pre20150206-qt-5.11b3.patch
+++ b/media-libs/liblastfm/files/liblastfm-1.1.0_pre20150206-qt-5.11b3.patch
@@ -1,7 +1,113 @@
-From 5d6ef4c27804a43b26dffcb46d6b27523a1ca340 Mon Sep 17 00:00:00 2001
+From 62a08d490a1e75e3ef5d08f3fb37e65c1563e706 Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <andreas.sturmlechner@gmail.com>
+Date: Sun, 1 Apr 2018 11:51:42 +0200
+Subject: [PATCH 1/4] Make Qt5 build default and simplify logic, add missing
+ deps
+
+---
+ CMakeLists.txt | 16 ++++++++--------
+ 1 file changed, 8 insertions(+), 8 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index be88967..e628611 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -27,19 +27,19 @@ set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}" "${PROJECT_SOURCE_DIR}/cmake/Module
+ # setup qt stuff
+ set(CMAKE_AUTOMOC ON)
+ 
+-option(BUILD_WITH_QT4 "Build liblastfm with Qt4 no matter if Qt5 was found" OFF)
++option(BUILD_WITH_QT4 "Build liblastfm with Qt4" OFF)
+ 
+-if( NOT BUILD_WITH_QT4 )
+-    # try Qt5 first, and prefer that if found
+-    find_package(Qt5Core QUIET)
+-endif()
++if(NOT BUILD_WITH_QT4)
++    find_package(Qt5 REQUIRED COMPONENTS Core Network Xml CONFIG)
++
++    if(BUILD_FINGERPRINT)
++        find_package(Qt5Sql REQUIRED CONFIG)
++    endif()
+ 
+-if(Qt5Core_DIR)
+     set(LASTFM_LIB_VERSION_SUFFIX 5)
+-    message(STATUS "Found Qt5! Please keep in mind, this is highly experimental and not our main development target..")
+     include_directories(${Qt5Core_INCLUDE_DIRS})
+     if(UNIX AND NOT APPLE)
+-        find_package(Qt5DBus REQUIRED)
++        find_package(Qt5DBus REQUIRED CONFIG)
+     endif()
+ 
+ #     macro(qt_wrap_ui)
+-- 
+2.17.0
+
+
+From ff32d56e5e1bd8b1f86a8e9840c778249ff19118 Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <andreas.sturmlechner@gmail.com>
+Date: Sun, 1 Apr 2018 11:56:48 +0200
+Subject: [PATCH 2/4] Make use of FeatureSummary
+
+---
+ CMakeLists.txt | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index e628611..dcdfd91 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -20,6 +20,7 @@ option(BUILD_TESTS "Build liblastfm tests" ON)
+ 
+ # installation dirs
+ include(GNUInstallDirs)
++include(FeatureSummary)
+ 
+ #cmake module path
+ set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}" "${PROJECT_SOURCE_DIR}/cmake/Modules")
+@@ -97,3 +98,5 @@ if(BUILD_TESTS)
+     enable_testing()
+     add_subdirectory(tests)
+ endif()
++
++feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
+-- 
+2.17.0
+
+
+From 5762278b29c1ab6559dcca7a1e8fbad1d75134da Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <andreas.sturmlechner@gmail.com>
+Date: Sun, 1 Apr 2018 12:06:48 +0200
+Subject: [PATCH 3/4] Cleanup include dirs
+
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index dcdfd91..52589b5 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -38,10 +38,10 @@ if(NOT BUILD_WITH_QT4)
+     endif()
+ 
+     set(LASTFM_LIB_VERSION_SUFFIX 5)
+-    include_directories(${Qt5Core_INCLUDE_DIRS})
+     if(UNIX AND NOT APPLE)
+         find_package(Qt5DBus REQUIRED CONFIG)
+     endif()
++    include_directories(Qt5::Core Qt5::Network Qt5::Xml)
+ 
+ #     macro(qt_wrap_ui)
+ #         qt5_wrap_ui(${ARGN})
+-- 
+2.17.0
+
+
+From aeb0cbc56376021444a56a984613faacefedfea9 Mon Sep 17 00:00:00 2001
 From: Andreas Sturmlechner <andreas.sturmlechner@gmail.com>
 Date: Sun, 15 Apr 2018 21:31:14 +0200
-Subject: [PATCH] Fix build with Qt 5.11_beta3 (drop qt5_use_modules)
+Subject: [PATCH 4/4] Fix build with Qt 5.11_beta3 (drop qt5_use_modules)
 
 ---
  CMakeLists.txt                 |  3 --
@@ -11,10 +117,10 @@ Subject: [PATCH] Fix build with Qt 5.11_beta3 (drop qt5_use_modules)
  4 files changed, 55 insertions(+), 47 deletions(-)
 
 diff --git a/CMakeLists.txt b/CMakeLists.txt
-index be88967..57da635 100644
+index 52589b5..c8bc89d 100644
 --- a/CMakeLists.txt
 +++ b/CMakeLists.txt
-@@ -56,9 +56,6 @@ if(Qt5Core_DIR)
+@@ -57,9 +57,6 @@ if(NOT BUILD_WITH_QT4)
  #     endmacro()
  else()
      find_package(Qt4 COMPONENTS QtCore QtNetwork QtXml REQUIRED)

diff --git a/media-libs/liblastfm/liblastfm-1.1.0_pre20150206.ebuild b/media-libs/liblastfm/liblastfm-1.1.0_pre20150206.ebuild
index 6e0926da102..b2010962143 100644
--- a/media-libs/liblastfm/liblastfm-1.1.0_pre20150206.ebuild
+++ b/media-libs/liblastfm/liblastfm-1.1.0_pre20150206.ebuild
@@ -33,10 +33,7 @@ DEPEND="${RDEPEND}
 # 1 of 2 (UrlBuilderTest) is failing, last checked version 1.0.9
 RESTRICT="test"
 
-PATCHES=(
-	"${FILESDIR}/${P}-cmake.patch"
-	"${FILESDIR}/${P}-qt-5.11b3.patch"
-)
+PATCHES=( "${FILESDIR}/${P}-qt-5.11b3.patch" )
 
 src_configure() {
 	# demos not working


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: media-libs/liblastfm/, media-libs/liblastfm/files/
@ 2020-12-12 18:02 Andreas Sturmlechner
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas Sturmlechner @ 2020-12-12 18:02 UTC (permalink / raw
  To: gentoo-commits

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 <asturm@gentoo.org>
+Date: Sat, 12 Dec 2020 17:09:58 +0100
+Subject: [PATCH] Add missing -DBUILD_TESTS dependency Qt5Test
+
+Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
+---
+ 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=(


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: media-libs/liblastfm/, media-libs/liblastfm/files/
@ 2025-02-23 21:46 Andreas Sturmlechner
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas Sturmlechner @ 2025-02-23 21:46 UTC (permalink / raw
  To: gentoo-commits

commit:     8b9561491137bdc1c15bea732a00f2e3d980076c
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 21 22:05:22 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Feb 23 21:44:46 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b956149

media-libs/liblastfm: add Qt6-based 1.1.0_pre20241124, EAPI-8 bump

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 media-libs/liblastfm/Manifest                      |   1 +
 .../liblastfm-1.1.0_pre20241124-strict-flags.patch | 363 +++++++++++++++++++++
 .../liblastfm/liblastfm-1.1.0_pre20241124.ebuild   |  42 +++
 media-libs/liblastfm/metadata.xml                  |   1 +
 4 files changed, 407 insertions(+)

diff --git a/media-libs/liblastfm/Manifest b/media-libs/liblastfm/Manifest
index 7e3fcd07db23..f4030cdcab37 100644
--- a/media-libs/liblastfm/Manifest
+++ b/media-libs/liblastfm/Manifest
@@ -1 +1,2 @@
 DIST liblastfm-1.1.0_pre20190625.tar.gz 119348 BLAKE2B d4755d6dfe6dc8bb4c21e1f4ed94fd96165313111a553271e518ad57f08aab45980239a51416d6e99d87a86f7859c7ea04ba81fb06f6dfa61b2aa7f554935589 SHA512 ee36cc31e1f7b345e2de29ff4151acb7bbe30960bbf2528bf8eb5214a47272955efe3bd1c6e20af8dd22a4fbc510de34befdcd6c728683ae300bd45e578e5ebb
+DIST liblastfm-1.1.0_pre20241124.tar.gz 119092 BLAKE2B bfcd2763d31969c17fa4ce091e11764288655c153a66e46732409f59bf6d44724cd933787e76cc2bb809de6f248370ee8131b6fe452ab5c17da257eb359cd251 SHA512 e45ef91320114f662cb213720732372c02524b03d64b36711fa981bc7097117edd59e1b48deb56f2acdc4847db51d03e2cf392edbd3fa87bd055c33c5dc72639

diff --git a/media-libs/liblastfm/files/liblastfm-1.1.0_pre20241124-strict-flags.patch b/media-libs/liblastfm/files/liblastfm-1.1.0_pre20241124-strict-flags.patch
new file mode 100644
index 000000000000..7d64f1a9d9e2
--- /dev/null
+++ b/media-libs/liblastfm/files/liblastfm-1.1.0_pre20241124-strict-flags.patch
@@ -0,0 +1,363 @@
+From f3e5d9a3cd2c885bfc35b6299dbc4e5d152b8754 Mon Sep 17 00:00:00 2001
+From: Tuomas Nurmi <tuomas@norsumanageri.org>
+Date: Mon, 8 Jul 2024 19:03:59 +0300
+Subject: [PATCH] Make work with stricter compilation flags
+
+QT_NO_CAST_[FROM/TO]_ASCII and signals -> Q_SIGNALS, slots -> Q_SLOTS
+Needed e.g. when included in default settings compilation of KDE Frameworks 5.85+
+software.
+---
+ demos/demo1.cpp                       | 2 +-
+ demos/demo2.cpp                       | 2 +-
+ demos/demo3.cpp                       | 2 +-
+ src/Album.h                           | 4 ++--
+ src/Artist.h                          | 4 ++--
+ src/Audioscrobbler.h                  | 6 +++---
+ src/InternetConnectionMonitor.h       | 4 ++--
+ src/Mbid.h                            | 2 +-
+ src/NetworkAccessManager.h            | 2 +-
+ src/NetworkConnectionMonitor.h        | 2 +-
+ src/RadioTuner.cpp                    | 2 +-
+ src/RadioTuner.h                      | 4 ++--
+ src/Track.cpp                         | 4 ++--
+ src/Track.h                           | 4 ++--
+ src/User.h                            | 2 +-
+ src/Xspf.h                            | 4 ++--
+ src/global.h.in                       | 2 +-
+ src/linux/LNetworkConnectionMonitor.h | 2 +-
+ src/mac/MNetworkConnectionMonitor.h   | 2 +-
+ tests/TestTrack.h                     | 2 +-
+ tests/TestUrlBuilder.h                | 2 +-
+ 21 files changed, 30 insertions(+), 30 deletions(-)
+
+diff --git a/demos/demo1.cpp b/demos/demo1.cpp
+index f3f4b44fb..c5fb52a7b 100644
+--- a/demos/demo1.cpp
++++ b/demos/demo1.cpp
+@@ -41,7 +41,7 @@ class ArtistList : public QListWidget
+         connect( reply, SIGNAL(finished()), SLOT(onGotSimilar()) );
+     }
+     
+-private slots:
++private Q_SLOTS:
+     void onGotSimilar()
+     {
+         QNetworkReply* r = static_cast<QNetworkReply*>(sender());
+diff --git a/demos/demo2.cpp b/demos/demo2.cpp
+index 27d1b116e..0800b7975 100644
+--- a/demos/demo2.cpp
++++ b/demos/demo2.cpp
+@@ -20,7 +20,7 @@ struct MyCoreApp : QCoreApplication
+     MyCoreApp( int& argc, char**& argv ) : QCoreApplication( argc, argv )
+     {}
+     
+-private slots:
++private Q_SLOTS:
+     void onWsError( lastfm::ws::Error e )
+     {
+         // QNetworkReply will invoke this slot on application level errors
+diff --git a/demos/demo3.cpp b/demos/demo3.cpp
+index 4d8546ae5..8eb8fe0ef 100644
+--- a/demos/demo3.cpp
++++ b/demos/demo3.cpp
+@@ -21,7 +21,7 @@ struct MyCoreApp : QCoreApplication
+     MyCoreApp( int& argc, char** argv ) : QCoreApplication( argc, argv )
+     {}
+ 
+-public slots:
++public Q_SLOTS:
+     void onStatus( int status )
+     {
+         qDebug() << lastfm::Audioscrobbler::Status(status);
+diff --git a/src/Album.h b/src/Album.h
+index 2770c21d7..0dd93539e 100644
+--- a/src/Album.h
++++ b/src/Album.h
+@@ -57,8 +57,8 @@ namespace lastfm
+         bool isNull() const;
+     
+         /** Album.getInfo WebService */
+-        QNetworkReply* getInfo( const QString& username = "" ) const;
+-        QNetworkReply* share( const QStringList& recipients, const QString& message = "", bool isPublic = true ) const;
++        QNetworkReply* getInfo( const QString& username = QStringLiteral("") ) const;
++        QNetworkReply* share( const QStringList& recipients, const QString& message = QStringLiteral(""), bool isPublic = true ) const;
+ 
+         /** use Tag::list to get the tag list out of the finished reply */
+         QNetworkReply* getTags() const;
+diff --git a/src/Artist.h b/src/Artist.h
+index 8e658a935..941e9c396 100644
+--- a/src/Artist.h
++++ b/src/Artist.h
+@@ -67,10 +67,10 @@ namespace lastfm
+ 
+         QDomElement toDomElement( QDomDocument& ) const;
+ 
+-        QNetworkReply* share( const QStringList& recipients, const QString& message = "", bool isPublic = true ) const;
++        QNetworkReply* share( const QStringList& recipients, const QString& message = QStringLiteral(""), bool isPublic = true ) const;
+ 
+         QNetworkReply* getEvents(int limit = 0) const;
+-        QNetworkReply* getInfo( const QString& username = "" ) const;
++        QNetworkReply* getInfo( const QString& username = QStringLiteral("") ) const;
+         static Artist getInfo( QNetworkReply* );
+ 
+         QNetworkReply* getSimilar( int limit = -1 ) const;
+diff --git a/src/Audioscrobbler.h b/src/Audioscrobbler.h
+index f74af3bec..394c5243d 100644
+--- a/src/Audioscrobbler.h
++++ b/src/Audioscrobbler.h
+@@ -43,14 +43,14 @@ namespace lastfm
+         Audioscrobbler( const QString& clientId );
+         ~Audioscrobbler();
+ 
+-    signals:
++    Q_SIGNALS:
+         void scrobblesCached( const QList<lastfm::Track>& tracks );
+         /* Note that this is emitted after we tried to submit the scrobbles
+         It could just be that they have an error code */
+         void scrobblesSubmitted( const QList<lastfm::Track>& tracks );
+         void nowPlayingError( int code, QString message );
+ 
+-    public slots:
++    public Q_SLOTS:
+         /** will ask Last.fm to update the now playing information for the 
+           * authenticated user */
+         void nowPlaying( const Track& );
+@@ -62,7 +62,7 @@ namespace lastfm
+         /** will submit the submission cache for this user */
+         void submit();
+ 
+-    private slots:
++    private Q_SLOTS:
+         void onNowPlayingReturn();
+         void onTrackScrobbleReturn();
+ 
+diff --git a/src/InternetConnectionMonitor.h b/src/InternetConnectionMonitor.h
+index 92525b2eb..3e6268317 100644
+--- a/src/InternetConnectionMonitor.h
++++ b/src/InternetConnectionMonitor.h
+@@ -45,7 +45,7 @@ class LASTFM_DLLEXPORT InternetConnectionMonitor : public QObject
+ 
+     NetworkConnectionMonitor* createNetworkConnectionMonitor();
+ 
+-signals:
++Q_SIGNALS:
+     /** yay! internet has returned */
+     void up( const QString& connectionName = "" );
+     
+@@ -56,7 +56,7 @@ class LASTFM_DLLEXPORT InternetConnectionMonitor : public QObject
+     /** emitted after the above */
+     void connectivityChanged( bool );
+ 
+-private slots:
++private Q_SLOTS:
+     void onFinished( QNetworkReply* reply );
+     void onNetworkUp();
+     void onNetworkDown();
+diff --git a/src/Mbid.h b/src/Mbid.h
+index a4f0edad3..1da1d3930 100644
+--- a/src/Mbid.h
++++ b/src/Mbid.h
+@@ -27,7 +27,7 @@ namespace lastfm
+     class LASTFM_DLLEXPORT Mbid
+     {
+     public:
+-        explicit Mbid( const QString& p = "" );
++        explicit Mbid( const QString& p = QStringLiteral("") );
+         Mbid( const Mbid& that );
+         ~Mbid();
+ 
+diff --git a/src/NetworkAccessManager.h b/src/NetworkAccessManager.h
+index 5a7187977..c2d33cdec 100644
+--- a/src/NetworkAccessManager.h
++++ b/src/NetworkAccessManager.h
+@@ -53,7 +53,7 @@ class LASTFM_DLLEXPORT NetworkAccessManager : public QNetworkAccessManager
+ protected:
+     virtual QNetworkReply* createRequest( Operation, const QNetworkRequest&, QIODevice* outgoingdata = 0 );
+ 
+-private slots:
++private Q_SLOTS:
+     void onConnectivityChanged( bool );
+ 
+ private:
+diff --git a/src/NetworkConnectionMonitor.h b/src/NetworkConnectionMonitor.h
+index 1319c4d0f..7b638f1f4 100644
+--- a/src/NetworkConnectionMonitor.h
++++ b/src/NetworkConnectionMonitor.h
+@@ -35,7 +35,7 @@ class LASTFM_DLLEXPORT NetworkConnectionMonitor : public QObject
+     ~NetworkConnectionMonitor();
+     bool isConnected() const;
+ 
+-signals:
++Q_SIGNALS:
+     void networkUp();
+     void networkDown();
+ 
+diff --git a/src/RadioTuner.cpp b/src/RadioTuner.cpp
+index 948ce660f..3deac1790 100644
+--- a/src/RadioTuner.cpp
++++ b/src/RadioTuner.cpp
+@@ -65,7 +65,7 @@ class lastfm::RadioTunerPrivate : public QObject
+           */
+         void fetchFiveMoreTracks();
+ 
+-    private slots:
++    private Q_SLOTS:
+         void onTwoSecondTimeout();
+ };
+ 
+diff --git a/src/RadioTuner.h b/src/RadioTuner.h
+index 0db08c739..b45c36a3f 100644
+--- a/src/RadioTuner.h
++++ b/src/RadioTuner.h
+@@ -48,13 +48,13 @@ namespace lastfm
+ 
+         void queueTrack( lastfm::Track& track );
+ 
+-    signals:
++    Q_SIGNALS:
+         void title( const QString& );
+         void supportsDisco( bool supportsDisco );
+         void trackAvailable();
+         void error( lastfm::ws::Error, const QString& message );
+ 
+-    private slots:
++    private Q_SLOTS:
+         void onTuneReturn();
+         void onGetPlaylistReturn();
+         // no-op
+diff --git a/src/Track.cpp b/src/Track.cpp
+index 203c30bf3..9fd9ac50f 100644
+--- a/src/Track.cpp
++++ b/src/Track.cpp
+@@ -112,12 +112,12 @@ class TrackObject : public QObject
+     void forceScrobbleStatusChanged();
+     void forceCorrected( QString correction );
+ 
+-private slots:
++private Q_SLOTS:
+     void onLoveFinished();
+     void onUnloveFinished();
+     void onGotInfo();
+ 
+-signals:
++Q_SIGNALS:
+     void loveToggled( bool love );
+     void scrobbleStatusChanged( short scrobbleStatus );
+     void corrected( QString correction );
+diff --git a/src/Track.h b/src/Track.h
+index fbde4a3f7..b35399ed3 100644
+--- a/src/Track.h
++++ b/src/Track.h
+@@ -193,7 +193,7 @@ class LASTFM_DLLEXPORT Track : public AbstractType
+ //////////// lastfm::Ws
+     
+     /** See last.fm/api Track section */
+-    QNetworkReply* share( const QStringList& recipients, const QString& message = "", bool isPublic = true ) const;
++    QNetworkReply* share( const QStringList& recipients, const QString& message = QStringLiteral(""), bool isPublic = true ) const;
+ 
+     QNetworkReply* getSimilar( int limit = -1 ) const;
+     /** The match percentage is returned from last.fm as a 4 significant
+@@ -211,7 +211,7 @@ class LASTFM_DLLEXPORT Track : public AbstractType
+     /** method should be a method name of reciever that takes a QByteArray
+     If that fails it will try invoking method with no arguments.
+     */
+-    void getInfo( QObject* receiver, const char * method, const QString& username = "" ) const;
++    void getInfo( QObject* receiver, const char * method, const QString& username = QStringLiteral("") ) const;
+     QNetworkReply* getBuyLinks( const QString& country ) const;
+ 
+     static QNetworkReply* playlinks( const QList<Track>& tracks );
+diff --git a/src/User.h b/src/User.h
+index f2666780b..662ce5110 100644
+--- a/src/User.h
++++ b/src/User.h
+@@ -121,7 +121,7 @@ namespace lastfm
+     
+         QNetworkReply* getLovedTracks( int limit = 50, int page = 1 ) const;
+         QNetworkReply* getPlaylists() const;
+-        QNetworkReply* getTopArtists( QString period = "overall", int limit = 50, int page = 1 ) const;
++        QNetworkReply* getTopArtists( QString period = QStringLiteral("overall"), int limit = 50, int page = 1 ) const;
+         QNetworkReply* getRecentTracks( int limit = 50, int page = 1 ) const;
+         QNetworkReply* getRecentArtists() const;
+         QNetworkReply* getRecentStations(  int limit = 10, int page = 1  ) const;
+diff --git a/src/Xspf.h b/src/Xspf.h
+index f392ae236..ee8276ba4 100644
+--- a/src/Xspf.h
++++ b/src/Xspf.h
+@@ -40,10 +40,10 @@ namespace lastfm
+ 
+         QList<Track> tracks() const;
+ 
+-    signals:
++    Q_SIGNALS:
+         Q_DECL_DEPRECATED void expired();
+ 
+-    private slots:
++    private Q_SLOTS:
+         Q_DECL_DEPRECATED void onExpired();
+ 
+     private:
+diff --git a/src/global.h.in b/src/global.h.in
+index fc479b221..d96659c0d 100644
+--- a/src/global.h.in
++++ b/src/global.h.in
+@@ -62,7 +62,7 @@ namespace lastfm
+         for (int i=0; i < meta.enumeratorCount(); ++i)
+         {
+             QMetaEnum m = meta.enumerator(i);
+-            if (m.name() == QLatin1String(enum_name))
++            if (QLatin1String(m.name()) == QLatin1String(enum_name))
+                 return QLatin1String(m.valueToKey(enum_value));
+         }
+         return QString("Unknown enum value for \"%1\": %2").arg( enum_name ).arg( enum_value );
+diff --git a/src/linux/LNetworkConnectionMonitor.h b/src/linux/LNetworkConnectionMonitor.h
+index b59fdc023..d65e825d7 100644
+--- a/src/linux/LNetworkConnectionMonitor.h
++++ b/src/linux/LNetworkConnectionMonitor.h
+@@ -49,7 +49,7 @@ class LNetworkConnectionMonitor : public NetworkConnectionMonitor
+ public:
+     LNetworkConnectionMonitor( QObject* parent = 0 );
+     ~LNetworkConnectionMonitor();
+-private slots:
++private Q_SLOTS:
+     void onStateChange( uint newState );
+ private:
+     QDBusInterface* m_nmInterface;
+diff --git a/src/mac/MNetworkConnectionMonitor.h b/src/mac/MNetworkConnectionMonitor.h
+index 3c03c47fa..8c051e3d7 100644
+--- a/src/mac/MNetworkConnectionMonitor.h
++++ b/src/mac/MNetworkConnectionMonitor.h
+@@ -39,7 +39,7 @@ class MNetworkConnectionMonitor : public NetworkConnectionMonitor
+ public:
+     MNetworkConnectionMonitor( QObject* parent = 0 );
+     ~MNetworkConnectionMonitor();
+-private slots:
++private Q_SLOTS:
+ 
+ private:
+ #ifdef Q_OS_MAC
+diff --git a/tests/TestTrack.h b/tests/TestTrack.h
+index 5dbd547ad..42f20ee8b 100644
+--- a/tests/TestTrack.h
++++ b/tests/TestTrack.h
+@@ -26,7 +26,7 @@ class TestTrack : public QObject
+         return t;
+     }
+     
+-private slots:
++private Q_SLOTS:
+     void testClone()
+     {
+         Track original = example();
+diff --git a/tests/TestUrlBuilder.h b/tests/TestUrlBuilder.h
+index 7001e92e2..ac07aebf1 100644
+--- a/tests/TestUrlBuilder.h
++++ b/tests/TestUrlBuilder.h
+@@ -37,7 +37,7 @@ class TestUrlBuilder : public QObject
+ {
+     Q_OBJECT
+ 
+-private slots:
++private Q_SLOTS:
+     void encode() /** @author <jono@last.fm> */
+     {
+         QFETCH( QString, input );

diff --git a/media-libs/liblastfm/liblastfm-1.1.0_pre20241124.ebuild b/media-libs/liblastfm/liblastfm-1.1.0_pre20241124.ebuild
new file mode 100644
index 000000000000..99c9a6939ce0
--- /dev/null
+++ b/media-libs/liblastfm/liblastfm-1.1.0_pre20241124.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+COMMIT=2e8e40d78a331d8e39fe39113bcb7571a7b1d4d6
+inherit cmake
+
+DESCRIPTION="Collection of libraries to integrate Last.fm services"
+HOMEPAGE="https://github.com/lastfm/liblastfm https://github.com/drfiemost/liblastfm"
+SRC_URI="https://github.com/lastfm/liblastfm/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-${COMMIT}"
+
+LICENSE="GPL-3"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+SLOT="0"
+IUSE="test"
+
+RESTRICT="!test? ( test )"
+
+RDEPEND="dev-qt/qtbase:6[dbus,network,ssl,xml]"
+DEPEND="${RDEPEND}"
+
+# Pending: https://github.com/drfiemost/liblastfm/pull/9
+PATCHES=( "${FILESDIR}/${P}-strict-flags.patch" )
+
+src_configure() {
+	local mycmakeargs=(
+		-DBUILD_DEMOS=OFF # demos not working
+		-DBUILD_WITH_QT5=OFF
+		-DBUILD_FINGERPRINT=OFF # https://github.com/lastfm/liblastfm/issues/43
+		-DBUILD_TESTS=$(usex test)
+	)
+	cmake_src_configure
+}
+
+src_test() {
+	local CMAKE_SKIP_TESTS=(
+		UrlBuilderTest # fails without network access
+	)
+	cmake_src_test
+}

diff --git a/media-libs/liblastfm/metadata.xml b/media-libs/liblastfm/metadata.xml
index ab5f9b1a3346..778cacec8f64 100644
--- a/media-libs/liblastfm/metadata.xml
+++ b/media-libs/liblastfm/metadata.xml
@@ -10,5 +10,6 @@
 	</use>
 	<upstream>
 		<remote-id type="github">lastfm/liblastfm</remote-id>
+		<remote-id type="github">drfiemost/liblastfm</remote-id>
 	</upstream>
 </pkgmetadata>


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-02-23 21:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-17 12:10 [gentoo-commits] repo/gentoo:master commit in: media-libs/liblastfm/, media-libs/liblastfm/files/ Andreas Sturmlechner
  -- strict thread matches above, loose matches on Subject: below --
2020-12-12 18:02 Andreas Sturmlechner
2025-02-23 21:46 Andreas Sturmlechner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox