Gentoo Archives: gentoo-commits

From: Craig Andrews <candrews@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/spdlog/files/, dev-libs/spdlog/
Date: Tue, 21 Jan 2020 02:12:51
Message-Id: 1579572754.cb4209494b05520fa84511c0ec3df825085af73e.candrews@gentoo
1 commit: cb4209494b05520fa84511c0ec3df825085af73e
2 Author: David Roman <davidroman96 <AT> gmail <DOT> com>
3 AuthorDate: Mon Jan 20 21:08:54 2020 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 21 02:12:34 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb420949
7
8 dev-libs/spdlog: bump to 1.5.0
9
10 Closes: https://bugs.gentoo.org/696710
11 Closes: https://bugs.gentoo.org/699346
12 Package-Manager: Portage-2.3.84, Repoman-2.3.20
13 Signed-off-by: David Roman <davidroman96 <AT> gmail.com>
14 Closes: https://github.com/gentoo/gentoo/pull/14113
15 Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>
16
17 dev-libs/spdlog/Manifest | 1 +
18 .../spdlog/files/spdlog-9999-unbundle-fmt.patch | 45 ----------------------
19 .../{spdlog-9999.ebuild => spdlog-1.5.0.ebuild} | 20 ++++++----
20 dev-libs/spdlog/spdlog-9999.ebuild | 20 ++++++----
21 4 files changed, 27 insertions(+), 59 deletions(-)
22
23 diff --git a/dev-libs/spdlog/Manifest b/dev-libs/spdlog/Manifest
24 index 9beed729a3b..9c5db7b8547 100644
25 --- a/dev-libs/spdlog/Manifest
26 +++ b/dev-libs/spdlog/Manifest
27 @@ -1,3 +1,4 @@
28 DIST spdlog-1.2.1.tar.gz 188284 BLAKE2B c3491a9c44d8a94c51d50c9ef36a2105f77e8fb61bb7b2b81a341609f433abbe3a74e7b4a467dd715a5d906f976740716488d07b4510f366556ab59d160ceefe SHA512 418f91efc207fa227558212d82c41639c0bb59e84ea47447e0b6276c4842e97f1f8aaf5802c071ef15d80ec525e317e70b6a39661a6c96ab39d33d9bd1570da1
29 DIST spdlog-1.3.0.tar.gz 202637 BLAKE2B 97027a3672b826e294dbdc202afa913a42ddae5a02a569ac28c41d79b96128de045ac5df30a76d888d6b3bea5093fb75b006365d7b1b296842750a39f43835d6 SHA512 019a52d4b6c66287ee2a6e8177457ecbbb78e1cb894f4a0a90b83a84d66cd37b397cdf77892d9116e4c34113bd3277d606d578bc96ec6521ae7745f08b1aa54f
30 DIST spdlog-1.3.1.tar.gz 202634 BLAKE2B 2465a8d1a38af1527ae66d92f5dd91ad504d01e44ac47702e315f7448e19f01743627357132f0561e48807315df9b102f337f95cab5a7aae3ec0ae7ceff940b9 SHA512 a851a44b6384f493dd312ae0a611d068af46bbfe8daf1c2f61f13d8836a3801f41b339074fbe8da8e428131c82fa5c4a9e3320a55cbdd4b7aff8bb349dfff7dd
31 +DIST spdlog-1.5.0.tar.gz 270416 BLAKE2B bac6c6650f8347458dd2dd66f318b43a769b0896d68f6a6f1310754527a69feaa52b2f6f48d67c7e811c2dafa5d3863a9a07c738df8c12abed2718fb06254b28 SHA512 78991c943dd95af563c4b29545b9b5d635caf1af5031262dde734ecf70c0b4ae866d954ee77b050f9f0cc089a3bc57ee9583895e51cb00dd1cc6c10ff905ca34
32
33 diff --git a/dev-libs/spdlog/files/spdlog-9999-unbundle-fmt.patch b/dev-libs/spdlog/files/spdlog-9999-unbundle-fmt.patch
34 deleted file mode 100644
35 index f6f37b5e493..00000000000
36 --- a/dev-libs/spdlog/files/spdlog-9999-unbundle-fmt.patch
37 +++ /dev/null
38 @@ -1,45 +0,0 @@
39 -diff --git a/include/spdlog/fmt/fmt.h b/include/spdlog/fmt/fmt.h
40 -index 5d039b8c..8107b19a 100644
41 ---- a/include/spdlog/fmt/fmt.h
42 -+++ b/include/spdlog/fmt/fmt.h
43 -@@ -19,9 +19,6 @@
44 - #ifndef FMT_USE_WINDOWS_H
45 - #define FMT_USE_WINDOWS_H 0
46 - #endif
47 --#include "bundled/core.h"
48 --#include "bundled/format.h"
49 --#else // SPDLOG_FMT_EXTERNAL is defined - use external fmtlib
50 --#include "fmt/core.h"
51 --#include "fmt/format.h"
52 --#endif
53 -+#endif // SPDLOG_FMT_EXTERNAL is defined - use external fmtlib
54 -+#include <fmt/core.h>
55 -+#include <fmt/format.h>
56 -diff --git a/include/spdlog/fmt/ostr.h b/include/spdlog/fmt/ostr.h
57 -index 9902898f..5e92a592 100644
58 ---- a/include/spdlog/fmt/ostr.h
59 -+++ b/include/spdlog/fmt/ostr.h
60 -@@ -11,8 +11,6 @@
61 - #ifndef FMT_HEADER_ONLY
62 - #define FMT_HEADER_ONLY
63 - #endif
64 --#include "bundled/ostream.h"
65 --#include "fmt.h"
66 --#else
67 --#include <fmt/ostream.h>
68 - #endif
69 -+
70 -+#include <fmt/ostream.h>
71 -diff --git a/src/spdlog.cpp b/src/spdlog.cpp
72 -index be91412d..d68dd522 100644
73 ---- a/src/spdlog.cpp
74 -+++ b/src/spdlog.cpp
75 -@@ -104,7 +104,7 @@ template std::shared_ptr<spdlog::logger> spdlog::stderr_logger_st<spdlog::async_
76 - // All rights reserved.
77 -
78 - #if !defined(SPDLOG_FMT_EXTERNAL)
79 --#include "spdlog/fmt/bundled/format-inl.h"
80 -+#include <fmt/format-inl.h>
81 -
82 - FMT_BEGIN_NAMESPACE
83 - template struct internal::basic_data<void>;
84
85 diff --git a/dev-libs/spdlog/spdlog-9999.ebuild b/dev-libs/spdlog/spdlog-1.5.0.ebuild
86 similarity index 61%
87 copy from dev-libs/spdlog/spdlog-9999.ebuild
88 copy to dev-libs/spdlog/spdlog-1.5.0.ebuild
89 index f0b80109ac4..060e167a8af 100644
90 --- a/dev-libs/spdlog/spdlog-9999.ebuild
91 +++ b/dev-libs/spdlog/spdlog-1.5.0.ebuild
92 @@ -10,9 +10,9 @@ HOMEPAGE="https://github.com/gabime/spdlog"
93
94 if [[ ${PV} == *9999 ]]; then
95 inherit git-r3
96 - EGIT_REPO_URI="https://github.com/gabime/spdlog"
97 + EGIT_REPO_URI="https://github.com/gabime/${PN}"
98 else
99 - SRC_URI="https://github.com/gabime/spdlog/archive/v${PV}.tar.gz -> ${P}.tar.gz"
100 + SRC_URI="https://github.com/gabime/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
101 KEYWORDS="~amd64"
102 fi
103
104 @@ -21,19 +21,25 @@ SLOT="0/1"
105 IUSE="test"
106 RESTRICT="!test? ( test )"
107
108 +BDEPEND="
109 + virtual/pkgconfig
110 +"
111 DEPEND="
112 - >=dev-libs/libfmt-5.0.0
113 + >=dev-libs/libfmt-5.3.0:=
114 "
115 RDEPEND="${DEPEND}"
116
117 -PATCHES=( "${FILESDIR}/${PN}-9999-unbundle-fmt.patch" )
118 +src_prepare() {
119 + cmake_src_prepare
120 + rm -r include/spdlog/fmt/bundled || die "Failed to delete bundled libfmt"
121 +}
122
123 src_configure() {
124 - rm -r include/spdlog/fmt/bundled || die
125 -
126 local mycmakeargs=(
127 - -DSPDLOG_BUILD_EXAMPLE=no
128 -DSPDLOG_BUILD_BENCH=no
129 + -DSPDLOG_BUILD_EXAMPLE=no
130 + -DSPDLOG_FMT_EXTERNAL=yes
131 + -DSPDLOG_BUILD_SHARED=no
132 -DSPDLOG_BUILD_TESTS=$(usex test)
133 )
134
135
136 diff --git a/dev-libs/spdlog/spdlog-9999.ebuild b/dev-libs/spdlog/spdlog-9999.ebuild
137 index f0b80109ac4..060e167a8af 100644
138 --- a/dev-libs/spdlog/spdlog-9999.ebuild
139 +++ b/dev-libs/spdlog/spdlog-9999.ebuild
140 @@ -10,9 +10,9 @@ HOMEPAGE="https://github.com/gabime/spdlog"
141
142 if [[ ${PV} == *9999 ]]; then
143 inherit git-r3
144 - EGIT_REPO_URI="https://github.com/gabime/spdlog"
145 + EGIT_REPO_URI="https://github.com/gabime/${PN}"
146 else
147 - SRC_URI="https://github.com/gabime/spdlog/archive/v${PV}.tar.gz -> ${P}.tar.gz"
148 + SRC_URI="https://github.com/gabime/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
149 KEYWORDS="~amd64"
150 fi
151
152 @@ -21,19 +21,25 @@ SLOT="0/1"
153 IUSE="test"
154 RESTRICT="!test? ( test )"
155
156 +BDEPEND="
157 + virtual/pkgconfig
158 +"
159 DEPEND="
160 - >=dev-libs/libfmt-5.0.0
161 + >=dev-libs/libfmt-5.3.0:=
162 "
163 RDEPEND="${DEPEND}"
164
165 -PATCHES=( "${FILESDIR}/${PN}-9999-unbundle-fmt.patch" )
166 +src_prepare() {
167 + cmake_src_prepare
168 + rm -r include/spdlog/fmt/bundled || die "Failed to delete bundled libfmt"
169 +}
170
171 src_configure() {
172 - rm -r include/spdlog/fmt/bundled || die
173 -
174 local mycmakeargs=(
175 - -DSPDLOG_BUILD_EXAMPLE=no
176 -DSPDLOG_BUILD_BENCH=no
177 + -DSPDLOG_BUILD_EXAMPLE=no
178 + -DSPDLOG_FMT_EXTERNAL=yes
179 + -DSPDLOG_BUILD_SHARED=no
180 -DSPDLOG_BUILD_TESTS=$(usex test)
181 )