summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdriaan de Groot <adridg@FreeBSD.org>2024-06-04 17:08:07 +0200
committerAdriaan de Groot <adridg@FreeBSD.org>2024-06-11 17:39:29 +0200
commitd8a094ae635259f93f1a3f37d9c21302a724ac6a (patch)
treea662c9638f0c21e16965c9dc36c66999bf0a2046
parent71b4d14619c62ec8fe5037ff9ea1921269ee18a9 (diff)
downloadfreebsd-ports-d8a094ae635259f93f1a3f37d9c21302a724ac6a.zip
audio/sayonara: update to 1.10, latest upstream
While here, fix up patches for i386 so that that finally builds. (cherry picked from commit 2f7c4079adcdf333cdf4393d29a84e318a899016)
-rw-r--r--audio/sayonara/Makefile3
-rw-r--r--audio/sayonara/distinfo6
-rw-r--r--audio/sayonara/files/patch-src_Components_Covers_Fetcher_Audioscrobbler.cpp20
-rw-r--r--audio/sayonara/files/patch-src_Components_Lyrics_LyricWebpageParser.cpp11
-rw-r--r--audio/sayonara/files/patch-src_Components_Playlist_PlaylistModifiers.cpp11
5 files changed, 46 insertions, 5 deletions
diff --git a/audio/sayonara/Makefile b/audio/sayonara/Makefile
index b23f3d09172b..70a43737ab04 100644
--- a/audio/sayonara/Makefile
+++ b/audio/sayonara/Makefile
@@ -1,7 +1,6 @@
PORTNAME= sayonara
-DISTVERSION= 1.9.0
+DISTVERSION= 1.10.0
DISTVERSIONSUFFIX= -stable1
-PORTREVISION= 3
CATEGORIES= audio
MAINTAINER= adridg@FreeBSD.org
diff --git a/audio/sayonara/distinfo b/audio/sayonara/distinfo
index 3a4269f6a7df..5ae6b2a67185 100644
--- a/audio/sayonara/distinfo
+++ b/audio/sayonara/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1709061996
-SHA256 (sayonara-player-1.9.0-stable1.tar.bz2) = 5843e8c278ba660a245979a67835b3d1514cde35b1e748082a5c255e0785def8
-SIZE (sayonara-player-1.9.0-stable1.tar.bz2) = 1718006
+TIMESTAMP = 1717362640
+SHA256 (sayonara-player-1.10.0-stable1.tar.bz2) = f4635796da02bfc67232459475806b0d52dc991b827fb11982a708504a500a6c
+SIZE (sayonara-player-1.10.0-stable1.tar.bz2) = 1740393
diff --git a/audio/sayonara/files/patch-src_Components_Covers_Fetcher_Audioscrobbler.cpp b/audio/sayonara/files/patch-src_Components_Covers_Fetcher_Audioscrobbler.cpp
new file mode 100644
index 000000000000..ab2ed553fb5d
--- /dev/null
+++ b/audio/sayonara/files/patch-src_Components_Covers_Fetcher_Audioscrobbler.cpp
@@ -0,0 +1,20 @@
+--- src/Components/Covers/Fetcher/Audioscrobbler.cpp.orig 2024-06-04 15:10:26 UTC
++++ src/Components/Covers/Fetcher/Audioscrobbler.cpp
+@@ -30,6 +30,8 @@
+ #include <QStringList>
+ #include <QUrl>
+
++#include <array>
++
+ using Cover::Fetcher::Audioscrobbler;
+
+ namespace
+@@ -37,7 +39,7 @@ namespace
+ QStringList mapToStringList(const QMap<QString, QString>& map)
+ {
+ auto result = QStringList {};
+- const auto sizes = std::array {"mega", "extralarge", "large", "medium", "small"};
++ const auto sizes = std::array<char *, 5> {"mega", "extralarge", "large", "medium", "small"};
+ for(const auto size: sizes)
+ {
+ result.push_back(map[size]);
diff --git a/audio/sayonara/files/patch-src_Components_Lyrics_LyricWebpageParser.cpp b/audio/sayonara/files/patch-src_Components_Lyrics_LyricWebpageParser.cpp
new file mode 100644
index 000000000000..10a01bc6aadd
--- /dev/null
+++ b/audio/sayonara/files/patch-src_Components_Lyrics_LyricWebpageParser.cpp
@@ -0,0 +1,11 @@
+--- src/Components/Lyrics/LyricWebpageParser.cpp.orig 2024-06-04 15:17:38 UTC
++++ src/Components/Lyrics/LyricWebpageParser.cpp
+@@ -27,6 +27,8 @@
+ #include <QTextBlock>
+ #include <QTextDocument>
+
++#include <array>
++
+ using namespace Lyrics;
+
+ namespace
diff --git a/audio/sayonara/files/patch-src_Components_Playlist_PlaylistModifiers.cpp b/audio/sayonara/files/patch-src_Components_Playlist_PlaylistModifiers.cpp
new file mode 100644
index 000000000000..10724e9ced95
--- /dev/null
+++ b/audio/sayonara/files/patch-src_Components_Playlist_PlaylistModifiers.cpp
@@ -0,0 +1,11 @@
+--- src/Components/Playlist/PlaylistModifiers.cpp.orig 2024-06-04 19:25:08 UTC
++++ src/Components/Playlist/PlaylistModifiers.cpp
+@@ -179,7 +179,7 @@ namespace Playlist
+ const auto& tracks = playlist.tracks();
+ const auto durationMs =
+ std::accumulate(tracks.begin(), tracks.end(), 0, [](const auto timeMs, const auto& track) {
+- return timeMs + std::max(0L, track.durationMs());
++ return timeMs + std::max(MilliSeconds(0), track.durationMs());
+ });
+
+ return durationMs;