From: David Roman Date: Sun, 21 Jul 2019 00:46:20 +0000 (+0200) Subject: dev-libs/spdlog: fix patch of live ebuild X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=5bd1526cf0e8b971ebd3f5101f5f707bc6e33bf9;p=gentoo.git dev-libs/spdlog: fix patch of live ebuild Closes: https://bugs.gentoo.org/689788 Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: David Roman Closes: https://github.com/gentoo/gentoo/pull/12486 Signed-off-by: Andreas Sturmlechner --- diff --git a/dev-libs/spdlog/files/spdlog-9999-unbundle-fmt.patch b/dev-libs/spdlog/files/spdlog-9999-unbundle-fmt.patch new file mode 100644 index 000000000000..f6f37b5e493c --- /dev/null +++ b/dev-libs/spdlog/files/spdlog-9999-unbundle-fmt.patch @@ -0,0 +1,45 @@ +diff --git a/include/spdlog/fmt/fmt.h b/include/spdlog/fmt/fmt.h +index 5d039b8c..8107b19a 100644 +--- a/include/spdlog/fmt/fmt.h ++++ b/include/spdlog/fmt/fmt.h +@@ -19,9 +19,6 @@ + #ifndef FMT_USE_WINDOWS_H + #define FMT_USE_WINDOWS_H 0 + #endif +-#include "bundled/core.h" +-#include "bundled/format.h" +-#else // SPDLOG_FMT_EXTERNAL is defined - use external fmtlib +-#include "fmt/core.h" +-#include "fmt/format.h" +-#endif ++#endif // SPDLOG_FMT_EXTERNAL is defined - use external fmtlib ++#include ++#include +diff --git a/include/spdlog/fmt/ostr.h b/include/spdlog/fmt/ostr.h +index 9902898f..5e92a592 100644 +--- a/include/spdlog/fmt/ostr.h ++++ b/include/spdlog/fmt/ostr.h +@@ -11,8 +11,6 @@ + #ifndef FMT_HEADER_ONLY + #define FMT_HEADER_ONLY + #endif +-#include "bundled/ostream.h" +-#include "fmt.h" +-#else +-#include + #endif ++ ++#include +diff --git a/src/spdlog.cpp b/src/spdlog.cpp +index be91412d..d68dd522 100644 +--- a/src/spdlog.cpp ++++ b/src/spdlog.cpp +@@ -104,7 +104,7 @@ template std::shared_ptr spdlog::stderr_logger_st + + FMT_BEGIN_NAMESPACE + template struct internal::basic_data; diff --git a/dev-libs/spdlog/spdlog-9999.ebuild b/dev-libs/spdlog/spdlog-9999.ebuild index 497e7da9b419..a9cbb03ae992 100644 --- a/dev-libs/spdlog/spdlog-9999.ebuild +++ b/dev-libs/spdlog/spdlog-9999.ebuild @@ -25,13 +25,13 @@ DEPEND=" " RDEPEND="${DEPEND}" -PATCHES=( "${FILESDIR}/${PN}-1.0.0-unbundle-fmt.patch" ) +PATCHES=( "${FILESDIR}/${PN}-9999-unbundle-fmt.patch" ) src_configure() { rm -r include/spdlog/fmt/bundled || die local mycmakeargs=( - -DSPDLOG_BUILD_EXAMPLES=no + -DSPDLOG_BUILD_EXAMPLE=no -DSPDLOG_BUILD_BENCH=no -DSPDLOG_BUILD_TESTS=$(usex test) )