[gentoo-commits] repo/gentoo:master commit in: dev-libs/spdlog/, dev-libs/spdlog/files/

2023-05-26 Thread Sam James
commit: 3c28815d55e0281a356bed17449b012b27c08c07
Author: Sam James  gentoo  org>
AuthorDate: Sat May 27 03:02:58 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sat May 27 03:02:58 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c28815d

dev-libs/spdlog: fix build w/ musl-1.2.4

Closes: https://bugs.gentoo.org/906954
Signed-off-by: Sam James  gentoo.org>

 dev-libs/spdlog/files/spdlog-musl-1.2.4.patch  | 30 ++
 ...pdlog-1.11.0.ebuild => spdlog-1.11.0-r1.ebuild} |  1 +
 2 files changed, 31 insertions(+)

diff --git a/dev-libs/spdlog/files/spdlog-musl-1.2.4.patch 
b/dev-libs/spdlog/files/spdlog-musl-1.2.4.patch
new file mode 100644
index ..cd1240d36f46
--- /dev/null
+++ b/dev-libs/spdlog/files/spdlog-musl-1.2.4.patch
@@ -0,0 +1,30 @@
+https://bugs.gentoo.org/906954
+https://github.com/gabime/spdlog/commit/287a00d364990edbb621fe5e392aeb550135fb96
+
+From 287a00d364990edbb621fe5e392aeb550135fb96 Mon Sep 17 00:00:00 2001
+From: Khem Raj 
+Date: Tue, 3 Jan 2023 09:54:50 -0800
+Subject: [PATCH] Do not use LFS64 functions on linux/musl (#2589)
+
+On musl, off_t is 64bit always ( even on 32bit platforms ), therefore
+using LFS64 funcitons is not needed on such platforms. Moreover, musl
+has stopped providing aliases for these functions [1] which means it
+wont compile on newer musl systems. Therefore only use it on 32bit
+glibc/linux platforms and exclude musl like cygwin or OSX
+
+[1] 
https://git.musl-libc.org/cgit/musl/commit/?id=246f1c811448f37a44b41cd8df8d0ef9736d95f4
+Signed-off-by: Khem Raj 
+--- a/include/spdlog/details/os-inl.h
 b/include/spdlog/details/os-inl.h
+@@ -236,8 +236,8 @@ SPDLOG_INLINE size_t filesize(FILE *f)
+ #else
+ int fd = ::fileno(f);
+ #endif
+-// 64 bits(but not in osx or cygwin, where fstat64 is deprecated)
+-#if (defined(__linux__) || defined(__sun) || defined(_AIX)) && 
(defined(__LP64__) || defined(_LP64))
++// 64 bits(but not in osx, linux/musl or cygwin, where fstat64 is deprecated)
++#if ((defined(__linux__) && defined(__GLIBC__)) || defined(__sun) || 
defined(_AIX)) && (defined(__LP64__) || defined(_LP64))
+ struct stat64 st;
+ if (::fstat64(fd, ) == 0)
+ {
+

diff --git a/dev-libs/spdlog/spdlog-1.11.0.ebuild 
b/dev-libs/spdlog/spdlog-1.11.0-r1.ebuild
similarity index 96%
rename from dev-libs/spdlog/spdlog-1.11.0.ebuild
rename to dev-libs/spdlog/spdlog-1.11.0-r1.ebuild
index ebda7ae2f4a2..311db3477688 100644
--- a/dev-libs/spdlog/spdlog-1.11.0.ebuild
+++ b/dev-libs/spdlog/spdlog-1.11.0-r1.ebuild
@@ -31,6 +31,7 @@ RDEPEND="${DEPEND}"
 
 PATCHES=(
"${FILESDIR}/${PN}-force_external_fmt.patch"
+   "${FILESDIR}/${PN}-musl-1.2.4.patch"
 )
 
 src_prepare() {



[gentoo-commits] repo/gentoo:master commit in: dev-libs/spdlog/, dev-libs/spdlog/files/

2023-05-10 Thread Sam James
commit: c75626a840b049c50a500b3d29a54986ea2372da
Author: Sam James  gentoo  org>
AuthorDate: Wed May 10 16:09:19 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Wed May 10 16:09:48 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c75626a8

Revert "dev-libs/spdlog: fix fails compile with libfmt-10.0.0"

This reverts commit 03d7b984817fbf07c4d830f30e34ae20a79af7b4.

Bug: https://bugs.gentoo.org/906069
Bug: https://bugs.gentoo.org/906071
Signed-off-by: Sam James  gentoo.org>

 dev-libs/spdlog/files/spdlog-libfmt-10.0.0.patch | 30 
 dev-libs/spdlog/spdlog-1.11.0.ebuild |  1 -
 2 files changed, 31 deletions(-)

diff --git a/dev-libs/spdlog/files/spdlog-libfmt-10.0.0.patch 
b/dev-libs/spdlog/files/spdlog-libfmt-10.0.0.patch
deleted file mode 100644
index 185fb12fb727..
--- a/dev-libs/spdlog/files/spdlog-libfmt-10.0.0.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-Bug: https://bugs.gentoo.org/906069
-Upstream: https://github.com/gabime/spdlog/pull/2694
-
-Fixing spdlog-1.11.0 fails compile with libfmt-10.0.0
-
-diff --git a/include/spdlog/common.h b/include/spdlog/common.h
-index e69201a81..5f671c5c6 100644
 a/include/spdlog/common.h
-+++ b/include/spdlog/common.h
-@@ -173,12 +173,19 @@ using format_string_t = fmt::format_string;
- template
- using remove_cvref_t = typename std::remove_cv::type>::type;
- 
-+template 
-+#if FMT_VERSION >= 90101
-+using fmt_runtime_string = fmt::runtime_format_string;
-+#else
-+using fmt_runtime_string = fmt::basic_runtime;
-+#endif
-+
- // clang doesn't like SFINAE disabled constructor in std::is_convertible<> so 
have to repeat the condition from basic_format_string here,
- // in addition, fmt::basic_runtime is only convertible to 
basic_format_string but not basic_string_view
- template
- struct is_convertible_to_basic_format_string
- : std::integral_constant>::value || 
std::is_same, fmt::basic_runtime>::value>
-+  std::is_convertible>::value || 
std::is_same, fmt_runtime_string>::value>
- {};
- 
- #if defined(SPDLOG_WCHAR_FILENAMES) || 
defined(SPDLOG_WCHAR_TO_UTF8_SUPPORT)

diff --git a/dev-libs/spdlog/spdlog-1.11.0.ebuild 
b/dev-libs/spdlog/spdlog-1.11.0.ebuild
index 6759c44b79f8..ebda7ae2f4a2 100644
--- a/dev-libs/spdlog/spdlog-1.11.0.ebuild
+++ b/dev-libs/spdlog/spdlog-1.11.0.ebuild
@@ -31,7 +31,6 @@ RDEPEND="${DEPEND}"
 
 PATCHES=(
"${FILESDIR}/${PN}-force_external_fmt.patch"
-   "${FILESDIR}/${PN}-libfmt-10.0.0.patch"
 )
 
 src_prepare() {



[gentoo-commits] repo/gentoo:master commit in: dev-libs/spdlog/, dev-libs/spdlog/files/

2023-02-07 Thread Andreas Sturmlechner
commit: 3f07118c6a9c4c98a5cf7b25fcaa5985ea22b819
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Tue Feb  7 17:51:04 2023 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Tue Feb  7 20:11:39 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f07118c

dev-libs/spdlog: drop 1.10.0

Closes: https://bugs.gentoo.org/892273
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 dev-libs/spdlog/Manifest   |  1 -
 .../spdlog/files/spdlog-1.9.2-fix-clone-test.patch | 13 --
 dev-libs/spdlog/spdlog-1.10.0.ebuild   | 52 --
 3 files changed, 66 deletions(-)

diff --git a/dev-libs/spdlog/Manifest b/dev-libs/spdlog/Manifest
index 17dd522095c4..9b7ecd5e52b8 100644
--- a/dev-libs/spdlog/Manifest
+++ b/dev-libs/spdlog/Manifest
@@ -1,2 +1 @@
-DIST spdlog-1.10.0.tar.gz 368651 BLAKE2B 
e40afa9fd1dd791e1f703392f0f54fc798ed70537a9f1ee9c8598dd449f4cd4dd03bc4ce95e416cbbe224711a17e70708a106f0432384542d6316cf232cf8757
 SHA512 
e82ec0a0c813ed2f1c8a31a0f21dbb733d0a7bd8d05284feae3bd66040bc53ad47a93b26c3e389c7e5623cfdeba1854d690992c842748e072aab3e6e6ecc5666
 DIST spdlog-1.11.0.tar.gz 373033 BLAKE2B 
a05a535ba55641ecb3bf484eeff902f266bf3967cfbd619234ab0ca2d0c15bddb27b73ce43c33623d02fb046f621933cd52cf39f377f354182d9cdab33340f28
 SHA512 
210f3135c7af3ec774ef9a5c77254ce172a44e2fa720bf590e1c9214782bf5c8140ff683403a85b585868bc308286fbdeb1c988e4ed1eb3c75975254ffe75412

diff --git a/dev-libs/spdlog/files/spdlog-1.9.2-fix-clone-test.patch 
b/dev-libs/spdlog/files/spdlog-1.9.2-fix-clone-test.patch
deleted file mode 100644
index a224969d9025..
--- a/dev-libs/spdlog/files/spdlog-1.9.2-fix-clone-test.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-See https://bugs.gentoo.org/840764
-
 a/tests/test_misc.cpp
-+++ b/tests/test_misc.cpp
-@@ -131,7 +131,7 @@ TEST_CASE("clone async", "[clone]")
- logger->info("Some message 1");
- cloned->info("Some message 2");
- 
--spdlog::details::os::sleep_for_millis(10);
-+spdlog::details::os::sleep_for_millis(100);
- 
- REQUIRE(test_sink->lines().size() == 2);
- REQUIRE(test_sink->lines()[0] == "Some message 1");

diff --git a/dev-libs/spdlog/spdlog-1.10.0.ebuild 
b/dev-libs/spdlog/spdlog-1.10.0.ebuild
deleted file mode 100644
index 896f8a475926..
--- a/dev-libs/spdlog/spdlog-1.10.0.ebuild
+++ /dev/null
@@ -1,52 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit cmake
-
-DESCRIPTION="Fast C++ logging library"
-HOMEPAGE="https://github.com/gabime/spdlog;
-
-if [[ ${PV} == * ]]; then
-   inherit git-r3
-   EGIT_REPO_URI="https://github.com/gabime/${PN};
-else
-   SRC_URI="https://github.com/gabime/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-   KEYWORDS="amd64 arm arm64 ppc ppc64 ~riscv x86"
-fi
-
-LICENSE="MIT"
-SLOT="0/1"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-BDEPEND="
-   virtual/pkgconfig
-"
-DEPEND="
-   >=dev-libs/libfmt-8.0.0:=
-"
-RDEPEND="${DEPEND}"
-
-PATCHES=(
-   "${FILESDIR}/${PN}-force_external_fmt.patch"
-   "${FILESDIR}/${PN}-1.9.2-fix-clone-test.patch"
-)
-
-src_prepare() {
-   cmake_src_prepare
-   rm -r include/spdlog/fmt/bundled || die "Failed to delete bundled 
libfmt"
-}
-
-src_configure() {
-   local mycmakeargs=(
-   -DSPDLOG_BUILD_BENCH=no
-   -DSPDLOG_BUILD_EXAMPLE=no
-   -DSPDLOG_FMT_EXTERNAL=yes
-   -DSPDLOG_BUILD_SHARED=yes
-   -DSPDLOG_BUILD_TESTS=$(usex test)
-   )
-
-   cmake_src_configure
-}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/spdlog/, dev-libs/spdlog/files/

2022-05-13 Thread Sam James
commit: 84dbae0590ac182a8358c48714856b6c00ae581d
Author: David Roman  gmail  com>
AuthorDate: Wed May 11 09:46:50 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Fri May 13 22:45:58 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84dbae05

dev-libs/spdlog: drop 1.8.2, 1.8.5, 1.8.5-r1

Closes: https://bugs.gentoo.org/798492
Closes: https://bugs.gentoo.org/833379
Signed-off-by: David Roman  gmail.com>
Signed-off-by: Sam James  gentoo.org>

 dev-libs/spdlog/Manifest   |  2 -
 .../spdlog/files/spdlog-1.8.5-libfmt-8-fix.patch   | 13 --
 dev-libs/spdlog/spdlog-1.8.2.ebuild| 47 -
 dev-libs/spdlog/spdlog-1.8.5-r1.ebuild | 49 --
 dev-libs/spdlog/spdlog-1.8.5.ebuild| 47 -
 5 files changed, 158 deletions(-)

diff --git a/dev-libs/spdlog/Manifest b/dev-libs/spdlog/Manifest
index 2239849f32bd..3743e1c72882 100644
--- a/dev-libs/spdlog/Manifest
+++ b/dev-libs/spdlog/Manifest
@@ -1,4 +1,2 @@
-DIST spdlog-1.8.2.tar.gz 319010 BLAKE2B 
a17ac7691c74600e435cff9d45495a7f7e8ae5439400a9f0b02c3891daca232aa57b25ba6d619ce19d50bf053b28454a7e4f205ed439ca4345dd044390512a29
 SHA512 
7a0a2353a10187cc314253b366fc46be8f9fe2480d2cbac3a96a8e6825ee4b62b0a5ebb3add2b22b5d7ca8fe6963926603e5296e3431c0a4f7ac42beda7f
-DIST spdlog-1.8.5.tar.gz 321229 BLAKE2B 
2cdc1902a9e6f51da5c1af02b2961914a5437cfefec13aaaca8b996166c0990f602c811f69569a8812d880f995b401af44457ec4255bc5a0f9e46b51266d1b43
 SHA512 
77cc9df0c40bbdbfe1f3e5818dccf121918bfceac28f2608f39e5bf944968b7e8e24a6fc29f01bc58a9bae41b8892d49cfb59c196935ec9868884320b50f130c
 DIST spdlog-1.9.2-update-catch-glibc-2.34.patch.bz2 54615 BLAKE2B 
62b707fef02c7876692f7cc67119ea2b1a712d005d5367e5afdc50f42d6762f370a463ca3194e6850c059c679aef0e908471e0362afa2dc44a8bf7aaf19af2b0
 SHA512 
5d9868de7968ecf2c17b5fbb1199e70b064551bc2474fe563770d1e8d4b5f6d46d371091284c3bd10b47b3c7e94b134252e16f26b1834eff4390896acd773ecb
 DIST spdlog-1.9.2.tar.gz 327799 BLAKE2B 
8e4cce17887509512c0d3a63485f9271098bdf7f853c2a07adb8d46459c1039d93d16d05cb60963c1bbc754f6af6ba3af1a66c69bc421bf234f676231c8c1315
 SHA512 
87b12a792cf2d740ef29db4b6055788a487b6d474662b878711b8a5534efea5f0d97b6ac357834500b66cc65e1ba8934446a695e9691fd5d4b95397b6871555c

diff --git a/dev-libs/spdlog/files/spdlog-1.8.5-libfmt-8-fix.patch 
b/dev-libs/spdlog/files/spdlog-1.8.5-libfmt-8-fix.patch
deleted file mode 100644
index f59a9bca4b30..
--- a/dev-libs/spdlog/files/spdlog-1.8.5-libfmt-8-fix.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-See upstream https://github.com/gabime/spdlog/issues/1975
-
 a/include/spdlog/common-inl.h  2021-06-21 17:15:26.695992698 -0600
-+++ b/include/spdlog/common-inl.h  2021-06-21 17:15:52.205992496 -0600
-@@ -60,7 +60,7 @@
- SPDLOG_INLINE spdlog_ex::spdlog_ex(const std::string , int last_errno)
- {
- memory_buf_t outbuf;
--fmt::format_system_error(outbuf, last_errno, msg);
-+fmt::format_system_error(outbuf, last_errno, msg.c_str());
- msg_ = fmt::to_string(outbuf);
- }
- 

diff --git a/dev-libs/spdlog/spdlog-1.8.2.ebuild 
b/dev-libs/spdlog/spdlog-1.8.2.ebuild
deleted file mode 100644
index f1f85aae2ff3..
--- a/dev-libs/spdlog/spdlog-1.8.2.ebuild
+++ /dev/null
@@ -1,47 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit cmake
-
-DESCRIPTION="Very fast, header only, C++ logging library"
-HOMEPAGE="https://github.com/gabime/spdlog;
-
-if [[ ${PV} == * ]]; then
-   inherit git-r3
-   EGIT_REPO_URI="https://github.com/gabime/${PN};
-else
-   SRC_URI="https://github.com/gabime/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-   KEYWORDS="amd64 arm arm64 ppc ppc64 x86"
-fi
-
-LICENSE="MIT"
-SLOT="0/1"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-BDEPEND="
-   virtual/pkgconfig
-"
-DEPEND="
-   >=dev-libs/libfmt-6.1.2:=
-"
-RDEPEND="${DEPEND}"
-
-src_prepare() {
-   cmake_src_prepare
-   rm -r include/spdlog/fmt/bundled || die "Failed to delete bundled 
libfmt"
-}
-
-src_configure() {
-   local mycmakeargs=(
-   -DSPDLOG_BUILD_BENCH=no
-   -DSPDLOG_BUILD_EXAMPLE=no
-   -DSPDLOG_FMT_EXTERNAL=yes
-   -DSPDLOG_BUILD_SHARED=yes
-   -DSPDLOG_BUILD_TESTS=$(usex test)
-   )
-
-   cmake_src_configure
-}

diff --git a/dev-libs/spdlog/spdlog-1.8.5-r1.ebuild 
b/dev-libs/spdlog/spdlog-1.8.5-r1.ebuild
deleted file mode 100644
index 26e7cb42bce4..
--- a/dev-libs/spdlog/spdlog-1.8.5-r1.ebuild
+++ /dev/null
@@ -1,49 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit cmake
-
-DESCRIPTION="Very fast, header only, C++ logging library"
-HOMEPAGE="https://github.com/gabime/spdlog;
-
-if [[ ${PV} == * ]]; then
-   inherit git-r3
-   

[gentoo-commits] repo/gentoo:master commit in: dev-libs/spdlog/, dev-libs/spdlog/files/

2022-03-10 Thread Sam James
commit: fc822ea2139fce41df9ca35b3e8a02a8f4dba185
Author: David Roman  gmail  com>
AuthorDate: Tue Jan 18 23:37:51 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Mar 10 23:58:16 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc822ea2

dev-libs/spdlog: force use of external fmt lib

Closes: https://bugs.gentoo.org/827889
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: David Roman  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/23863
Signed-off-by: Sam James  gentoo.org>

 .../spdlog/files/spdlog-force_external_fmt.patch   | 15 ++
 dev-libs/spdlog/spdlog-1.9.2-r1.ebuild | 53 ++
 2 files changed, 68 insertions(+)

diff --git a/dev-libs/spdlog/files/spdlog-force_external_fmt.patch 
b/dev-libs/spdlog/files/spdlog-force_external_fmt.patch
new file mode 100644
index ..79bbd94b34cd
--- /dev/null
+++ b/dev-libs/spdlog/files/spdlog-force_external_fmt.patch
@@ -0,0 +1,15 @@
+diff --git a/include/spdlog/tweakme.h b/include/spdlog/tweakme.h
+index 24361f30..6b4fc14c 100644
+--- a/include/spdlog/tweakme.h
 b/include/spdlog/tweakme.h
+@@ -71,7 +71,9 @@
+ // In this case spdlog will try to include  so set your -I flag
+ // accordingly.
+ //
+-// #define SPDLOG_FMT_EXTERNAL
++#ifndef SPDLOG_FMT_EXTERNAL
++#define SPDLOG_FMT_EXTERNAL
++#endif
+ 
///
+ 
+ 
///

diff --git a/dev-libs/spdlog/spdlog-1.9.2-r1.ebuild 
b/dev-libs/spdlog/spdlog-1.9.2-r1.ebuild
new file mode 100644
index ..c8f6d4c67329
--- /dev/null
+++ b/dev-libs/spdlog/spdlog-1.9.2-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+DESCRIPTION="Very fast, header only, C++ logging library"
+HOMEPAGE="https://github.com/gabime/spdlog;
+
+if [[ ${PV} == * ]]; then
+   inherit git-r3
+   EGIT_REPO_URI="https://github.com/gabime/${PN};
+else
+   SRC_URI="https://github.com/gabime/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+   # Temporary for bug #811750
+   SRC_URI+=" test? ( 
https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-update-catch-glibc-2.34.patch.bz2
 )"
+   KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
+fi
+
+LICENSE="MIT"
+SLOT="0/1"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="
+   virtual/pkgconfig
+"
+DEPEND="
+   >=dev-libs/libfmt-8.0.0:=
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/${PN}-force_external_fmt.patch" )
+
+src_prepare() {
+   use test && eapply "${WORKDIR}"/${P}-update-catch-glibc-2.34.patch
+
+   cmake_src_prepare
+   rm -r include/spdlog/fmt/bundled || die "Failed to delete bundled 
libfmt"
+}
+
+src_configure() {
+   local mycmakeargs=(
+   -DSPDLOG_BUILD_BENCH=no
+   -DSPDLOG_BUILD_EXAMPLE=no
+   -DSPDLOG_FMT_EXTERNAL=yes
+   -DSPDLOG_BUILD_SHARED=yes
+   -DSPDLOG_BUILD_TESTS=$(usex test)
+   )
+
+   cmake_src_configure
+}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/spdlog/, dev-libs/spdlog/files/

2020-07-06 Thread Craig Andrews
commit: 07d3f7a5daab2a29c4644675bd608d46189cf023
Author: Craig Andrews  gentoo  org>
AuthorDate: Mon Jul  6 17:06:17 2020 +
Commit: Craig Andrews  gentoo  org>
CommitDate: Mon Jul  6 19:15:40 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07d3f7a5

dev-libs/spdlog: Compatibility with dev-libs/libfmt-7.0.0

Closes: https://bugs.gentoo.org/show_bug.cgi?id=731100
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Craig Andrews  gentoo.org>

 .../spdlog/files/spdlog-1.6.1-libfmt-7.0.0.patch   | 33 ++
 .../{spdlog-.ebuild => spdlog-1.6.1-r1.ebuild} |  6 +++-
 dev-libs/spdlog/spdlog-.ebuild |  2 +-
 3 files changed, 39 insertions(+), 2 deletions(-)

diff --git a/dev-libs/spdlog/files/spdlog-1.6.1-libfmt-7.0.0.patch 
b/dev-libs/spdlog/files/spdlog-1.6.1-libfmt-7.0.0.patch
new file mode 100644
index 000..422a507a6d8
--- /dev/null
+++ b/dev-libs/spdlog/files/spdlog-1.6.1-libfmt-7.0.0.patch
@@ -0,0 +1,33 @@
+https://github.com/gabime/spdlog/pull/1606
+
+From 22bee8128a4150ce37cf761ed9a609ad891848a6 Mon Sep 17 00:00:00 2001
+From: Craig Andrews 
+Date: Mon, 6 Jul 2020 13:01:52 -0400
+Subject: [PATCH] fmt 7.0.0 renamed the internal namespace to detail.
+
+See: https://github.com/fmtlib/fmt/issues/1538
+---
+ include/spdlog/details/fmt_helper.h | 10 +-
+ 1 file changed, 9 insertions(+), 1 deletion(-)
+
+diff --git a/include/spdlog/details/fmt_helper.h 
b/include/spdlog/details/fmt_helper.h
+index cbc0bdf3..4f363858 100644
+--- a/include/spdlog/details/fmt_helper.h
 b/include/spdlog/details/fmt_helper.h
+@@ -34,7 +34,15 @@ template
+ inline unsigned int count_digits(T n)
+ {
+ using count_type = typename std::conditional<(sizeof(T) > 
sizeof(uint32_t)), uint64_t, uint32_t>::type;
+-return static_cast(fmt::internal::count_digits(static_cast(n)));
++return static_cast(fmt::
++// fmt 7.0.0 renamed the internal namespace to detail.
++// See: https://github.com/fmtlib/fmt/issues/1538
++#if FMT_VERSION < 7
++internal
++#else
++detail
++#endif
++::count_digits(static_cast(n)));
+ }
+ 
+ inline void pad2(int n, memory_buf_t )

diff --git a/dev-libs/spdlog/spdlog-.ebuild 
b/dev-libs/spdlog/spdlog-1.6.1-r1.ebuild
similarity index 89%
copy from dev-libs/spdlog/spdlog-.ebuild
copy to dev-libs/spdlog/spdlog-1.6.1-r1.ebuild
index 24491a214dc..04237834f6c 100644
--- a/dev-libs/spdlog/spdlog-.ebuild
+++ b/dev-libs/spdlog/spdlog-1.6.1-r1.ebuild
@@ -13,7 +13,7 @@ if [[ ${PV} == * ]]; then
EGIT_REPO_URI="https://github.com/gabime/${PN};
 else
SRC_URI="https://github.com/gabime/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-   KEYWORDS="~amd64"
+   KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
 fi
 
 LICENSE="MIT"
@@ -29,6 +29,10 @@ DEPEND="
 "
 RDEPEND="${DEPEND}"
 
+PATCHES=(
+   "${FILESDIR}/${P}-libfmt-7.0.0.patch"
+)
+
 src_prepare() {
cmake_src_prepare
rm -r include/spdlog/fmt/bundled || die "Failed to delete bundled 
libfmt"

diff --git a/dev-libs/spdlog/spdlog-.ebuild 
b/dev-libs/spdlog/spdlog-.ebuild
index 24491a214dc..6da33cbbf3c 100644
--- a/dev-libs/spdlog/spdlog-.ebuild
+++ b/dev-libs/spdlog/spdlog-.ebuild
@@ -13,7 +13,7 @@ if [[ ${PV} == * ]]; then
EGIT_REPO_URI="https://github.com/gabime/${PN};
 else
SRC_URI="https://github.com/gabime/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-   KEYWORDS="~amd64"
+   KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
 fi
 
 LICENSE="MIT"



[gentoo-commits] repo/gentoo:master commit in: dev-libs/spdlog/, dev-libs/spdlog/files/

2018-10-31 Thread Andreas Sturmlechner
commit: 2a4707f54d0a199d2623b75fcc17b41d68e67595
Author: David Roman  gmail  com>
AuthorDate: Sun Oct 28 14:12:33 2018 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Wed Oct 31 18:54:25 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a4707f5

dev-libs/spdlog: drop 0.17.0

Signed-off-by: David Roman  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/10264
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 dev-libs/spdlog/Manifest   |  1 -
 .../spdlog/files/spdlog-0.17.0-unbundle-fmt.patch  | 35 ---
 dev-libs/spdlog/spdlog-0.17.0.ebuild   | 39 --
 3 files changed, 75 deletions(-)

diff --git a/dev-libs/spdlog/Manifest b/dev-libs/spdlog/Manifest
index 3c4dd4de507..32fe47d178d 100644
--- a/dev-libs/spdlog/Manifest
+++ b/dev-libs/spdlog/Manifest
@@ -1,4 +1,3 @@
-DIST spdlog-0.17.0.tar.gz 172323 BLAKE2B 
2ca821fb3da0ee82601dd9ef54ca155ffdf19ea1e51c6fbb7269a58bf7a662b5225c9ef7e4d8ccbe7a05c56aeefaad27ddc9cfe21a329f52490078ccd0fb2ce6
 SHA512 
c3d7c7b2d221b33ad4f4685207ff606d271635bd1ad7edab763a823880386f604d264343139f37b36a3e8654d6382dbed0d431556728676523e390b8fb4b2aef
 DIST spdlog-1.0.0.tar.gz 183855 BLAKE2B 
30d54fef03a83f968cfebacf95a484ff397126771a7ea022556aebd07e2f7694af35b278f75ee24372283ff1428e21247fd4329794d64a65bd6220a93f21db3c
 SHA512 
4d3cbc1926be513256b5837a53fce425f6d352bb4ab262074f205450cd4eadc09feea9dc8d8c03b3f1e9792bcfbcff414be79e51d58234f540946428bbd88cd1
 DIST spdlog-1.1.0.tar.gz 183937 BLAKE2B 
51af49f641df69e78835bd6b9545da53c0e111bab60a5f0dbf4a1d0e70101309394ffea195176ea371f08b772c2be1c22c2da16006fc9699f47593cf82a6c0fd
 SHA512 
65fbe6e9dffb25e814f72f2ef7982eed213fc16edfabb1377f865c94fd0488190e160dfea83ac06979a41f2fb2fa47a454989ebee0a2c5012bd404b977648439
 DIST spdlog-1.2.1.tar.gz 188284 BLAKE2B 
c3491a9c44d8a94c51d50c9ef36a2105f77e8fb61bb7b2b81a341609f433abbe3a74e7b4a467dd715a5d906f976740716488d07b4510f366556ab59d160ceefe
 SHA512 
418f91efc207fa227558212d82c41639c0bb59e84ea47447e0b6276c4842e97f1f8aaf5802c071ef15d80ec525e317e70b6a39661a6c96ab39d33d9bd1570da1

diff --git a/dev-libs/spdlog/files/spdlog-0.17.0-unbundle-fmt.patch 
b/dev-libs/spdlog/files/spdlog-0.17.0-unbundle-fmt.patch
deleted file mode 100644
index e3e0df83353..000
--- a/dev-libs/spdlog/files/spdlog-0.17.0-unbundle-fmt.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-diff --git a/include/spdlog/fmt/fmt.h b/include/spdlog/fmt/fmt.h
 a/include/spdlog/fmt/fmt.h
-+++ b/include/spdlog/fmt/fmt.h
-@@ -18,16 +18,11 @@
- #ifndef FMT_USE_WINDOWS_H
- #define FMT_USE_WINDOWS_H 0
- #endif
--#include "bundled/format.h"
--#if defined(SPDLOG_FMT_PRINTF)
--#include "bundled/printf.h"
--#endif
- 
--#else // external fmtlib
-+#endif // external fmtlib
- 
- #include 
- #if defined(SPDLOG_FMT_PRINTF)
- #include 
- #endif
- 
--#endif
-diff --git a/include/spdlog/fmt/ostr.h b/include/spdlog/fmt/ostr.h
 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/dev-libs/spdlog/spdlog-0.17.0.ebuild 
b/dev-libs/spdlog/spdlog-0.17.0.ebuild
deleted file mode 100644
index e42aaade7db..000
--- a/dev-libs/spdlog/spdlog-0.17.0.ebuild
+++ /dev/null
@@ -1,39 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit cmake-utils
-
-DESCRIPTION="Very fast, header only, C++ logging library"
-HOMEPAGE="https://github.com/gabime/spdlog;
-
-if [[ ${PV} == * ]]; then
-   inherit git-r3
-   EGIT_REPO_URI="https://github.com/gabime/spdlog;
-else
-   SRC_URI="https://github.com/gabime/spdlog/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-   KEYWORDS="~amd64"
-fi
-
-LICENSE="MIT"
-SLOT="0"
-IUSE="test"
-
-DEPEND="
-   <=dev-libs/libfmt-4.1.0
-"
-RDEPEND="${DEPEND}"
-
-PATCHES=( "${FILESDIR}/${PN}-0.17.0-unbundle-fmt.patch" )
-
-src_configure() {
-   rm -r include/spdlog/fmt/bundled || die
-
-   local mycmakeargs=(
-   -DSPDLOG_BUILD_EXAMPLES=no
-   -DSPDLOG_BUILD_TESTING=$(usex test)
-   )
-
-   cmake-utils_src_configure
-}



[gentoo-commits] repo/gentoo:master commit in: dev-libs/spdlog/, dev-libs/spdlog/files/

2018-06-12 Thread Michał Górny
commit: 67ad461e083f5c15f4ea4bbf2dae8a57577d8513
Author: David Roman  gmail  com>
AuthorDate: Tue Jun 12 16:06:31 2018 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue Jun 12 17:38:44 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67ad461e

dev-libs/spdlog: verbump to 0.17.0

 dev-libs/spdlog/Manifest   |  1 +
 .../spdlog/files/spdlog-0.17.0-unbundle-fmt.patch  | 35 ++
 .../{spdlog-.ebuild => spdlog-0.17.0.ebuild}   | 15 +-
 dev-libs/spdlog/spdlog-.ebuild | 15 +-
 4 files changed, 52 insertions(+), 14 deletions(-)

diff --git a/dev-libs/spdlog/Manifest b/dev-libs/spdlog/Manifest
index d85ac67f955..68f096c7142 100644
--- a/dev-libs/spdlog/Manifest
+++ b/dev-libs/spdlog/Manifest
@@ -1,2 +1,3 @@
 DIST spdlog-0.16.2.tar.gz 162709 BLAKE2B 
7cd031bd9b1e01aa11186334ada9aad50cdc063942e0eb5b9d36e918e305db4c0e5657a215f24f458dbf792e05c38f74409bc7f5f88049bd1c4a759ccab0167e
 SHA512 
454da17d75fa6dae074fb2ef10d93a1f9ccbf23b625521d32ce463a1362411ffc35ca33b081bee3cfb27bb647472de73899c9a15d24f09c8a3c9222560bcf559
 DIST spdlog-0.16.3.tar.gz 163636 BLAKE2B 
bebed0811976c5000481d9fa70107f79c3fb6180484afec611df9b3621349a91809e0f824583171a1c8bc89dae58a659c990fb4c6761da404f01a70868494f06
 SHA512 
6e08473825cf97dfb10b0e919b77996c1023bbfb583d851e961ec4a95094e4afffd1fc6f6e7e728ce8c2c69c9fb280c59f8d6494b50224bdf8cc68914ffd21e8
+DIST spdlog-0.17.0.tar.gz 172323 BLAKE2B 
2ca821fb3da0ee82601dd9ef54ca155ffdf19ea1e51c6fbb7269a58bf7a662b5225c9ef7e4d8ccbe7a05c56aeefaad27ddc9cfe21a329f52490078ccd0fb2ce6
 SHA512 
c3d7c7b2d221b33ad4f4685207ff606d271635bd1ad7edab763a823880386f604d264343139f37b36a3e8654d6382dbed0d431556728676523e390b8fb4b2aef

diff --git a/dev-libs/spdlog/files/spdlog-0.17.0-unbundle-fmt.patch 
b/dev-libs/spdlog/files/spdlog-0.17.0-unbundle-fmt.patch
new file mode 100644
index 000..e3e0df83353
--- /dev/null
+++ b/dev-libs/spdlog/files/spdlog-0.17.0-unbundle-fmt.patch
@@ -0,0 +1,35 @@
+diff --git a/include/spdlog/fmt/fmt.h b/include/spdlog/fmt/fmt.h
+--- a/include/spdlog/fmt/fmt.h
 b/include/spdlog/fmt/fmt.h
+@@ -18,16 +18,11 @@
+ #ifndef FMT_USE_WINDOWS_H
+ #define FMT_USE_WINDOWS_H 0
+ #endif
+-#include "bundled/format.h"
+-#if defined(SPDLOG_FMT_PRINTF)
+-#include "bundled/printf.h"
+-#endif
+ 
+-#else // external fmtlib
++#endif // external fmtlib
+ 
+ #include 
+ #if defined(SPDLOG_FMT_PRINTF)
+ #include 
+ #endif
+ 
+-#endif
+diff --git a/include/spdlog/fmt/ostr.h b/include/spdlog/fmt/ostr.h
+--- 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/dev-libs/spdlog/spdlog-.ebuild 
b/dev-libs/spdlog/spdlog-0.17.0.ebuild
similarity index 62%
copy from dev-libs/spdlog/spdlog-.ebuild
copy to dev-libs/spdlog/spdlog-0.17.0.ebuild
index b22d880ad03..e42aaade7db 100644
--- a/dev-libs/spdlog/spdlog-.ebuild
+++ b/dev-libs/spdlog/spdlog-0.17.0.ebuild
@@ -1,11 +1,11 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
 
 inherit cmake-utils
 
-DESCRIPTION="Very fast, header only, C++ logging library."
+DESCRIPTION="Very fast, header only, C++ logging library"
 HOMEPAGE="https://github.com/gabime/spdlog;
 
 if [[ ${PV} == * ]]; then
@@ -21,18 +21,19 @@ SLOT="0"
 IUSE="test"
 
 DEPEND="
-   dev-libs/libfmt
+   <=dev-libs/libfmt-4.1.0
 "
 RDEPEND="${DEPEND}"
 
-PATCHES=( "${FILESDIR}/${PN}-unbundle-fmt.patch" )
+PATCHES=( "${FILESDIR}/${PN}-0.17.0-unbundle-fmt.patch" )
 
 src_configure() {
+   rm -r include/spdlog/fmt/bundled || die
+
local mycmakeargs=(
-   -DSPDLOG_BUILD_EXAMPLES=no
-   -DSPDLOG_BUILD_TESTING=$(usex test)
+   -DSPDLOG_BUILD_EXAMPLES=no
+   -DSPDLOG_BUILD_TESTING=$(usex test)
)
 
cmake-utils_src_configure
-
 }

diff --git a/dev-libs/spdlog/spdlog-.ebuild 
b/dev-libs/spdlog/spdlog-.ebuild
index b22d880ad03..e42aaade7db 100644
--- a/dev-libs/spdlog/spdlog-.ebuild
+++ b/dev-libs/spdlog/spdlog-.ebuild
@@ -1,11 +1,11 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
 
 inherit cmake-utils
 
-DESCRIPTION="Very fast, header only, C++ logging library."
+DESCRIPTION="Very fast, header only, C++ logging library"
 HOMEPAGE="https://github.com/gabime/spdlog;
 
 if [[ ${PV} == * ]]; then
@@ -21,18 +21,19 @@ SLOT="0"
 IUSE="test"
 
 DEPEND="
-   dev-libs/libfmt
+   <=dev-libs/libfmt-4.1.0
 "
 RDEPEND="${DEPEND}"
 
-PATCHES=( "${FILESDIR}/${PN}-unbundle-fmt.patch" )
+PATCHES=( "${FILESDIR}/${PN}-0.17.0-unbundle-fmt.patch" )
 
 

[gentoo-commits] repo/gentoo:master commit in: dev-libs/spdlog/, dev-libs/spdlog/files/

2018-01-05 Thread Craig Andrews
commit: 6fa73c3cf9ca1a0ee739797af332cea10e6ae485
Author: David Roman  gmail  com>
AuthorDate: Fri Dec 22 23:46:36 2017 +
Commit: Craig Andrews  gentoo  org>
CommitDate: Fri Jan  5 23:52:46 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6fa73c3c

dev-libs/spdlog: bump to 0.16.2

Unbundled libfmt and instead depend on dev-libs/libfmt

 dev-libs/spdlog/Manifest   |  1 +
 dev-libs/spdlog/files/spdlog-unbundle-fmt.patch| 90 ++
 .../{spdlog-.ebuild => spdlog-0.16.2.ebuild}   |  7 +-
 dev-libs/spdlog/spdlog-.ebuild |  7 +-
 4 files changed, 103 insertions(+), 2 deletions(-)

diff --git a/dev-libs/spdlog/Manifest b/dev-libs/spdlog/Manifest
index fa22ebf74f6..768810aa79e 100644
--- a/dev-libs/spdlog/Manifest
+++ b/dev-libs/spdlog/Manifest
@@ -1,3 +1,4 @@
 DIST spdlog-0.13.0.tar.gz 154551 BLAKE2B 
1b20393a305ac020aa422b174d5b707bbffd8efb38708807e40a3a13d3483fe5c73ea8e47a5ded89e49b9699ab844b25ce7bff7fa07bd6f79212bdc9fc0afb64
 SHA512 
5bb89cbeb17a054832ce70f6013d54e7641c1aa36cbad08388b4a2e63f4851943edfe292551ff01de6de1ed6325617384325a67f3e1024f346c6d22a1148c80c
 DIST spdlog-0.14.0.tar.gz 155590 BLAKE2B 
fb070e1049977ded34fef4953e743b7a3c4c745093e2d1974d0749f065799d6021046f5e913cee3b17e5ace9cdbd8a787532f7426ffc47bd8a7f1ab8d4fd4869
 SHA512 
f49b7f26f4fde57fe16f32ab89082f0c590645c627f5b4646f633a16f3eec2926b3465e742bc4899cb802e7b974978c547638205065e9955ed9696fbcaf0b444
 DIST spdlog-0.16.1.tar.gz 162408 BLAKE2B 
c90b94bac128f8b143d85522d224223b1361f7d552d9caa8b253e494dd72de56a2149cbd8d568eb4305224d7caf80d8067fbce606a1071bd94f74c43b3245782
 SHA512 
0ef741f2abcae7c925808b44bba7d2e55aa8bd3b07a77ab6e785068beb505cdbcd7835d7d103e8e96094235e262954969a176d9f4977e9d373f1bee8e2716ff2
+DIST spdlog-0.16.2.tar.gz 162709 BLAKE2B 
7cd031bd9b1e01aa11186334ada9aad50cdc063942e0eb5b9d36e918e305db4c0e5657a215f24f458dbf792e05c38f74409bc7f5f88049bd1c4a759ccab0167e
 SHA512 
454da17d75fa6dae074fb2ef10d93a1f9ccbf23b625521d32ce463a1362411ffc35ca33b081bee3cfb27bb647472de73899c9a15d24f09c8a3c9222560bcf559

diff --git a/dev-libs/spdlog/files/spdlog-unbundle-fmt.patch 
b/dev-libs/spdlog/files/spdlog-unbundle-fmt.patch
new file mode 100644
index 000..1b2449949bf
--- /dev/null
+++ b/dev-libs/spdlog/files/spdlog-unbundle-fmt.patch
@@ -0,0 +1,90 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 52d2953..d132d26 100644
+--- a/CMakeLists.txt
 b/CMakeLists.txt
+@@ -80,6 +80,7 @@ install(
+ install(
+ DIRECTORY "${HEADER_BASE}/${PROJECT_NAME}"
+ DESTINATION "${include_install_dir}"
++PATTERN "bundled*" EXCLUDE
+ )
+ 
+ # install project version file
+diff --git a/include/spdlog/fmt/fmt.h b/include/spdlog/fmt/fmt.h
+index 92ca4e5..55f1fa8 100644
+--- a/include/spdlog/fmt/fmt.h
 b/include/spdlog/fmt/fmt.h
+@@ -10,25 +10,7 @@
+ // By default spdlog include its own copy.
+ //
+ 
+-#if !defined(SPDLOG_FMT_EXTERNAL)
+-
+-#ifndef FMT_HEADER_ONLY
+-#define FMT_HEADER_ONLY
+-#endif
+-#ifndef FMT_USE_WINDOWS_H
+-#define FMT_USE_WINDOWS_H 0
+-#endif
+-#include "bundled/format.h"
+-#if defined(SPDLOG_FMT_PRINTF)
+-#include "bundled/printf.h"
+-#endif
+-
+-#else //external fmtlib
+-
+ #include 
+ #if defined(SPDLOG_FMT_PRINTF)
+ #include 
+ #endif
+-
+-#endif
+-
+diff --git a/include/spdlog/fmt/ostr.h b/include/spdlog/fmt/ostr.h
+index 5cdd5cd..d70c6b3 100644
+--- a/include/spdlog/fmt/ostr.h
 b/include/spdlog/fmt/ostr.h
+@@ -7,11 +7,6 @@
+ 
+ // include external or bundled copy of fmtlib's ostream support
+ //
+-#if !defined(SPDLOG_FMT_EXTERNAL)
+-#include "fmt.h"
+-#include "bundled/ostream.h"
+-#else
+ #include 
+-#endif
+ 
+ 
+diff --git a/include/spdlog/tweakme.h b/include/spdlog/tweakme.h
+index ad01a09..9a1bec4 100644
+--- a/include/spdlog/tweakme.h
 b/include/spdlog/tweakme.h
+@@ -98,14 +98,6 @@
+ 
///
+ 
+ 
+-///
+-// Uncomment to use your own copy of the fmt library instead of spdlog's copy.
+-// In this case spdlog will try to include  so set your -I flag 
accordingly.
+-//
+-// #define SPDLOG_FMT_EXTERNAL
+-///
+-
+-
+ 
///
+ // Uncomment to use printf-style messages in your logs instead of the usual
+ // format-style used by default.
+diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
+index 22329b4..44dad86 100644
+--- a/tests/CMakeLists.txt
 b/tests/CMakeLists.txt
+@@ -13,7 +13,7 @@ target_include_directories(catch INTERFACE 
${CMAKE_CURRENT_SOURCE_DIR})
+ file(GLOB catch_tests LIST_DIRECTORIES false RELATIVE 
${CMAKE_CURRENT_SOURCE_DIR} *.cpp *.h *.hpp)
+ 
+ add_executable(catch_tests ${catch_tests})
+-target_link_libraries(catch_tests spdlog ${CMAKE_THREAD_LIBS_INIT})

[gentoo-commits] repo/gentoo:master commit in: dev-libs/spdlog/, dev-libs/spdlog/files/

2017-09-17 Thread Andreas Sturmlechner
commit: 0b43271f3bcb2644c7537c4becff6d50524b7462
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Sun Sep 17 14:50:17 2017 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Sun Sep 17 22:40:16 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b43271f

dev-libs/spdlog: Use GNUInstalldirs, fix cmake files location

Fix indentation also.

Package-Manager: Portage-2.3.8, Repoman-2.3.3

 dev-libs/spdlog/files/spdlog-0.14.0-CMakeLists.txt | 116 +
 dev-libs/spdlog/spdlog-0.14.0-r1.ebuild|  40 +++
 2 files changed, 156 insertions(+)

diff --git a/dev-libs/spdlog/files/spdlog-0.14.0-CMakeLists.txt 
b/dev-libs/spdlog/files/spdlog-0.14.0-CMakeLists.txt
new file mode 100644
index 000..ad8062edda9
--- /dev/null
+++ b/dev-libs/spdlog/files/spdlog-0.14.0-CMakeLists.txt
@@ -0,0 +1,116 @@
+#
+# Copyright(c) 2015 Ruslan Baratov.
+# Distributed under the MIT License (http://opensource.org/licenses/MIT)
+#
+
+cmake_minimum_required(VERSION 3.1)
+project(spdlog VERSION 0.14.0)
+include(CTest)
+include(CMakeDependentOption)
+include(GNUInstallDirs)
+
+#---
+# compiler config
+#---
+set(CMAKE_CXX_STANDARD 11)
+set(CMAKE_CXX_STANDARD_REQUIRED ON)
+
+if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" 
MATCHES "Clang")
+set(CMAKE_CXX_FLAGS "-Wall ${CMAKE_CXX_FLAGS}")
+endif()
+
+#---
+# spdlog target
+#---
+add_library(spdlog INTERFACE)
+
+option(SPDLOG_BUILD_EXAMPLES "Build examples" OFF)
+cmake_dependent_option(SPDLOG_BUILD_TESTING
+"Build spdlog tests" ON
+"BUILD_TESTING" OFF
+)
+
+target_include_directories(
+spdlog
+INTERFACE
+"$"
+"$"
+)
+
+set(HEADER_BASE "${CMAKE_CURRENT_SOURCE_DIR}/include")
+
+if(SPDLOG_BUILD_EXAMPLES)
+add_subdirectory(example)
+endif()
+
+if(SPDLOG_BUILD_TESTING)
+add_subdirectory(tests)
+endif()
+
+#---
+# Install/export targets and files
+#---
+# set files and directories
+set(config_install_dir "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}")
+set(include_install_dir "${CMAKE_INSTALL_INCLUDEDIR}")
+set(pkgconfig_install_dir "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
+set(version_config "${CMAKE_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake")
+set(project_config "${PROJECT_NAME}Config.cmake")
+set(pkg_config "${CMAKE_BINARY_DIR}/${PROJECT_NAME}.pc")
+set(targets_export_name "${PROJECT_NAME}Targets")
+set(namespace "${PROJECT_NAME}::")
+
+# generate package version file
+include(CMakePackageConfigHelpers)
+write_basic_package_version_file(
+"${version_config}" COMPATIBILITY SameMajorVersion
+)
+
+# configure pkg config file
+configure_file("cmake/spdlog.pc.in" "${pkg_config}" @ONLY)
+
+# install targets
+install(
+TARGETS spdlog
+EXPORT "${targets_export_name}"
+INCLUDES DESTINATION "${include_install_dir}"
+)
+
+# install headers
+install(
+DIRECTORY "${HEADER_BASE}/${PROJECT_NAME}"
+DESTINATION "${include_install_dir}"
+)
+
+# install project version file
+install(
+FILES "${version_config}"
+DESTINATION "${config_install_dir}"
+)
+
+# install pkg config file
+install(
+FILES "${pkg_config}"
+DESTINATION "${pkgconfig_install_dir}"
+)
+
+# install project config file
+install(
+EXPORT "${targets_export_name}"
+NAMESPACE "${namespace}"
+DESTINATION "${config_install_dir}"
+FILE ${project_config}
+)
+
+# export build directory config file
+export(
+EXPORT ${targets_export_name}
+NAMESPACE "${namespace}"
+FILE ${project_config}
+)
+
+# register project in CMake user registry
+export(PACKAGE ${PROJECT_NAME})
+
+file(GLOB_RECURSE spdlog_include_SRCS "${HEADER_BASE}/*.h")
+add_custom_target(spdlog_headers_for_ide SOURCES ${spdlog_include_SRCS})

diff --git a/dev-libs/spdlog/spdlog-0.14.0-r1.ebuild 
b/dev-libs/spdlog/spdlog-0.14.0-r1.ebuild
new file mode 100644
index 000..0118dd39d23
--- /dev/null
+++ b/dev-libs/spdlog/spdlog-0.14.0-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="Very fast, header only, C++ logging library."
+HOMEPAGE="https://github.com/gabime/spdlog;
+
+if [[ ${PV} == * ]]; then
+   inherit git-r3
+   EGIT_REPO_URI="https://github.com/gabime/spdlog;
+else
+   SRC_URI="https://github.com/gabime/spdlog/archive/v${PV}.tar.gz