diff --git a/media-gfx/ueberzugpp/files/ueberzugpp-2.9.7-cli11-2.6.0.patch b/media-gfx/ueberzugpp/files/ueberzugpp-2.9.7-cli11-2.6.0.patch new file mode 100644 index 0000000000000..c371c9a08bd5e --- /dev/null +++ b/media-gfx/ueberzugpp/files/ueberzugpp-2.9.7-cli11-2.6.0.patch @@ -0,0 +1,15 @@ +https://bugs.gentoo.org/964933 +https://github.com/jstkdng/ueberzugpp/pull/268 +--- a/src/main.cpp ++++ b/src/main.cpp +@@ -23,4 +23,10 @@ + #include + ++#include ++#if (CLI11_VERSION_MAJOR >= 3) || (CLI11_VERSION_MAJOR == 2 && CLI11_VERSION_MINOR >= 6) ++// CLI11 2.6.0 and beyond requires this header file for the CLI::IsMember validator. ++#include ++#endif ++ + #include "application.hpp" + #include "flags.hpp" diff --git a/media-gfx/ueberzugpp/ueberzugpp-2.9.7.ebuild b/media-gfx/ueberzugpp/ueberzugpp-2.9.7.ebuild index b26ec480edddc..5ac8b2e2d9c67 100644 --- a/media-gfx/ueberzugpp/ueberzugpp-2.9.7.ebuild +++ b/media-gfx/ueberzugpp/ueberzugpp-2.9.7.ebuild @@ -53,6 +53,10 @@ BDEPEND=" ) " +PATCHES=( + "${FILESDIR}"/${P}-cli11-2.6.0.patch +) + src_configure() { if use X && tc-is-clang && [[ $(tc-get-cxx-stdlib) == libc++ && $(clang-major-version) -lt 20 ]]