commit: 79de2de023843ad9849d7c070065c2127e18da8a Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Sat Feb 17 17:16:31 2018 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Sat Feb 17 19:16:06 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79de2de0
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 media-sound/clementine/clementine-1.3.1_p20180203.ebuild | 8 ++++++++ media-sound/clementine/clementine-9999.ebuild | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/media-sound/clementine/clementine-1.3.1_p20180203.ebuild b/media-sound/clementine/clementine-1.3.1_p20180203.ebuild index 8a8acf0c01c..91cb135683f 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 caae648812d..43167c9035a 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() {
