From: Andreas Sturmlechner Date: Sat, 5 Aug 2017 09:18:38 +0000 (+0200) Subject: media-sound/cantata: Fix build with USE=replaygain X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=5f761feca7e6e7468e541c410660ed61b18bcd40;p=gentoo.git media-sound/cantata: Fix build with USE=replaygain Package-Manager: Portage-2.3.6, Repoman-2.3.1 --- diff --git a/media-sound/cantata/cantata-2.1.0.ebuild b/media-sound/cantata/cantata-2.1.0.ebuild index 65f1626c7dd1..e60ac6b3c74a 100644 --- a/media-sound/cantata/cantata-2.1.0.ebuild +++ b/media-sound/cantata/cantata-2.1.0.ebuild @@ -60,6 +60,8 @@ DEPEND="${RDEPEND} # cantata has no tests RESTRICT="test" +PATCHES=( "${FILESDIR}/${P}-headers.patch" ) + src_prepare() { remove_locale() { rm "translations/${PN}_${1}".ts || die diff --git a/media-sound/cantata/files/cantata-2.1.0-headers.patch b/media-sound/cantata/files/cantata-2.1.0-headers.patch new file mode 100644 index 000000000000..a442a2c1022d --- /dev/null +++ b/media-sound/cantata/files/cantata-2.1.0-headers.patch @@ -0,0 +1,42 @@ +Description: Fix include location for ebur128 files + The Debian packages for ebur128 are shipping the headers in: + + libebur128-dev: /usr/include/ebur128.h + + while the upstream code expects ebur128/ebur128.h + +Author: Stuart Prescott +Forwarded: not sure -- check interaction with cmake rules +--- a/replaygain/ffmpeginput.cpp ++++ b/replaygain/ffmpeginput.cpp +@@ -31,7 +31,7 @@ + #include + #include + #include +-#include "ebur128/ebur128.h" ++#include "ebur128.h" + #include "ffmpeginput.h" + + static QMutex mutex; +--- a/replaygain/mpg123input.cpp ++++ b/replaygain/mpg123input.cpp +@@ -18,7 +18,7 @@ + #include + #include + #include +-#include "ebur128/ebur128.h" ++#include "ebur128.h" + #include "mpg123input.h" + + struct Mpg123Input::Handle { +--- a/replaygain/trackscanner.h ++++ b/replaygain/trackscanner.h +@@ -25,7 +25,7 @@ + #define _SCANNER_H_ + + #include "jobcontroller.h" +-#include "ebur128/ebur128.h" ++#include "ebur128.h" + + class Input; +