From 813d4fb224329565dc90d11c66200832c86f550b Mon Sep 17 00:00:00 2001 From: 4fury-c3440d8 Date: Tue, 14 Dec 2021 06:59:45 +0300 Subject: [PATCH] add spdlog. --- programming/library/spdlog/actions.py | 33 +++++++++++++++ programming/library/spdlog/pspec.xml | 58 +++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) create mode 100644 programming/library/spdlog/actions.py create mode 100644 programming/library/spdlog/pspec.xml diff --git a/programming/library/spdlog/actions.py b/programming/library/spdlog/actions.py new file mode 100644 index 0000000000..6896603802 --- /dev/null +++ b/programming/library/spdlog/actions.py @@ -0,0 +1,33 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file https://www.gnu.org/licenses/gpl-3.0.txt + +from pisi.actionsapi import shelltools, cmaketools, pisitools, get + +i = "%s" % get.installDIR() + +j = ''.join([ + ' -DSPDLOG_BUILD_SHARED=ON', + ' -DSPDLOG_FMT_EXTERNAL=ON', + ' -DCMAKE_BUILD_TYPE=None', + ' -L ' + ]) + +t = "#define SPDLOG_FMT_EXTERNAL" + +def setup(): + shelltools.makedirs("_build") + shelltools.cd("_build") + cmaketools.configure(j, sourceDir = "..") + +def build(): + shelltools.cd("_build") + cmaketools.make() + +def install(): + shelltools.cd("_build") + cmaketools.rawInstall("DESTDIR=%s" % i) + + pisitools.dosed("%s/usr/include/spdlog/tweakme.h" % i, ".*%s" % t, t) diff --git a/programming/library/spdlog/pspec.xml b/programming/library/spdlog/pspec.xml new file mode 100644 index 0000000000..47ddd57a02 --- /dev/null +++ b/programming/library/spdlog/pspec.xml @@ -0,0 +1,58 @@ + + + + + spdlog + https://spdlog.docsforge.com/ + + fury + uglyside@yandex.ru + + MIT + library + programming.library + Fast C++ logging library. + Very fast, header-only/compiled, C++ logging library. + + https://github.com/gabime/spdlog/archive/refs/tags/v1.9.2.tar.gz + + + cmake + fmt-devel + + + + + spdlog + + fmt + libgcc + + + /usr/lib + + + + + spdlog-devel + + fmt-devel + spdlog + + + /usr/lib/cmake + /usr/include/spdlog + /usr/lib/pkgconfig + + + + + + 2021-12-14 + 1.9.2 + First build. + fury + uglyside@yandex.ru + + +