From: Andreas Sturmlechner Date: Sat, 17 Feb 2018 17:16:31 +0000 (+0100) Subject: media-sound/clementine: Fix lastfm paths X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=79de2de023843ad9849d7c070065c2127e18da8a;p=gentoo.git media-sound/clementine: Fix lastfm paths Unfortunately clementine relies on downstream paths. Closes: https://bugs.gentoo.org/645638 Package-Manager: Portage-2.3.24, Repoman-2.3.6 --- diff --git a/media-sound/clementine/clementine-1.3.1_p20180203.ebuild b/media-sound/clementine/clementine-1.3.1_p20180203.ebuild index 8a8acf0c01cb..91cb135683fa 100644 --- a/media-sound/clementine/clementine-1.3.1_p20180203.ebuild +++ b/media-sound/clementine/clementine-1.3.1_p20180203.ebuild @@ -117,6 +117,14 @@ src_prepare() { sed -e "/find_package.*Qt5/s:\ Test::" -i CMakeLists.txt || die cmake_comment_add_subdirectory tests fi + + # Fix clementine relying on downstream renaming of lastfm header dir + sed -i -e "/^#include/s/lastfm5/lastfm/" \ + tests/albumcoverfetcher_test.cpp \ + src/internet/lastfm/lastfm{settingspage.cpp,service.cpp,compat.h} \ + src/core/song.cpp || die "Failed to sed lastfm header suffix" + sed -e "/^find_path.*LASTFM5/s/lastfm5/lastfm/" \ + -i CMakeLists.txt || die "Failed to sed lastfm header suffix" } src_configure() { diff --git a/media-sound/clementine/clementine-9999.ebuild b/media-sound/clementine/clementine-9999.ebuild index caae648812d0..43167c9035aa 100644 --- a/media-sound/clementine/clementine-9999.ebuild +++ b/media-sound/clementine/clementine-9999.ebuild @@ -117,6 +117,14 @@ src_prepare() { sed -e "/find_package.*Qt5/s:\ Test::" -i CMakeLists.txt || die cmake_comment_add_subdirectory tests fi + + # Fix clementine relying on downstream renaming of lastfm header dir + sed -i -e "/^#include/s/lastfm5/lastfm/" \ + tests/albumcoverfetcher_test.cpp \ + src/internet/lastfm/lastfm{settingspage.cpp,service.cpp,compat.h} \ + src/core/song.cpp || die "Failed to sed lastfm header suffix" + sed -e "/^find_path.*LASTFM5/s/lastfm5/lastfm/" \ + -i CMakeLists.txt || die "Failed to sed lastfm header suffix" } src_configure() {