diff options
author | David Roman <droman@ifae.es> | 2023-07-14 15:42:07 +0200 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-07-15 07:02:58 +0100 |
commit | c23ed8833f56d582fa625132dcc7f60cebf5a571 (patch) | |
tree | 21027ef95c19e3b0d484264d4a20028d05dec16d /dev-libs/spdlog | |
parent | dev-libs/spdlog: fix fmt-10.x compatibility (diff) | |
download | gentoo-c23ed8833f56d582fa625132dcc7f60cebf5a571.tar.gz gentoo-c23ed8833f56d582fa625132dcc7f60cebf5a571.tar.bz2 gentoo-c23ed8833f56d582fa625132dcc7f60cebf5a571.zip |
dev-libs/spdlog: add 1.12.0
Signed-off-by: David Roman <davidroman96@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/31633
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/spdlog')
-rw-r--r-- | dev-libs/spdlog/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/spdlog/spdlog-1.12.0.ebuild | 53 |
2 files changed, 54 insertions, 0 deletions
diff --git a/dev-libs/spdlog/Manifest b/dev-libs/spdlog/Manifest index 9b7ecd5e52b8..f5f8e34fd5a9 100644 --- a/dev-libs/spdlog/Manifest +++ b/dev-libs/spdlog/Manifest @@ -1 +1,2 @@ DIST spdlog-1.11.0.tar.gz 373033 BLAKE2B a05a535ba55641ecb3bf484eeff902f266bf3967cfbd619234ab0ca2d0c15bddb27b73ce43c33623d02fb046f621933cd52cf39f377f354182d9cdab33340f28 SHA512 210f3135c7af3ec774ef9a5c77254ce172a44e2fa720bf590e1c9214782bf5c8140ff683403a85b585868bc308286fbdeb1c988e4ed1eb3c75975254ffe75412 +DIST spdlog-1.12.0.tar.gz 251037 BLAKE2B 3170f1e680fc4652ed8ddc0f74627aec22149f028def599fc5ed4db3a942d840006963789577f2e3df0e2b8ca1d98a881f3b96be5e1174fdf0acea15b3676d6e SHA512 db9a4f13b6c39ffde759db99bcdfe5e2dbe4231e73b29eb906a3fa78d6b8ec66920b8bd4371df17ae21b7b562472a236bc4435678f3af92b6496be090074181d diff --git a/dev-libs/spdlog/spdlog-1.12.0.ebuild b/dev-libs/spdlog/spdlog-1.12.0.ebuild new file mode 100644 index 000000000000..a349688f3d36 --- /dev/null +++ b/dev-libs/spdlog/spdlog-1.12.0.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Fast C++ logging library" +HOMEPAGE="https://github.com/gabime/spdlog" + +if [[ ${PV} == *9999 ]]; 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 ~loong ~ppc ~ppc64 ~riscv ~x86" +fi + +LICENSE="MIT" +SLOT="0/1" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND=" + virtual/pkgconfig +" + +DEPEND=" + dev-libs/libfmt +" + +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${PN}-force_external_fmt.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 +} |