dev-libs/spdlog: add 1.15.3

Signed-off-by: David Roman <droman@ifae.es>
Part-of: https://github.com/gentoo/gentoo/pull/42324
Closes: https://github.com/gentoo/gentoo/pull/42324
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
David Roman
2025-05-29 13:00:23 +02:00
committed by Sam James
parent cd2c800b98
commit 67526b8dbc
2 changed files with 55 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
DIST spdlog-1.15.0.tar.gz 276012 BLAKE2B a9d15725f63d5426a13b6f13ba4281ab70b7f6166344d8d12900fe8ba63898280ffd852b16e48b81352c4632598438fbd02f1a78d6f17e06d66c4bdc309f4b37 SHA512 3dd98409f4625ae4d46ef5f59a2fc22a6e151a13dba9d37433363e5d84eab7cca73b379eeb637d8f9b1f0f5a42221c0cc9a2a70414dc2b6af6a162e19fba0647
DIST spdlog-1.15.1.tar.gz 275521 BLAKE2B 1c5c6330c7abd2f204ec345c0173fe997f0063b8da301494fda5c1424bdc7a7066cf8a3a75b217638211bb795550cf7ae87afa71c478f1568db10c5e1f58020e SHA512 d6575b5cd53638345078a1c6a886293892359a07ee6de45e23d0c805bb33f59350f33060bce38824e09ce84525b575acdae7b94fc6e82191f5fd576f6c9252b2
DIST spdlog-1.15.2.tar.gz 275744 BLAKE2B 4e78dfcd364f792d6ed829bd17a472ea469eede10075b58531f04dbc3926ded02dd6316bf0e9b8f15f7fd9fbc5c3e5c5bcf749f73e82361efd4914aaece84099 SHA512 4e86d79dea4f08b9e4755ada7c9395e03246d00cdc11df8951d32b5f5e823fec103091d11154f32b261a29574784b761efb32477ec6385ffdb2069413e2c91a0
DIST spdlog-1.15.3.tar.gz 277691 BLAKE2B fd49c90fa086c6472b0658b26547727af1142b1bb5210b2fbaa4854737592cb75c823de1d066b52189da7c95fe9c29981919c1a2927f15e45e1acb70171b4b7d SHA512 21c35f4091850ea3a0cd6a24867e06e943df70d76cd5a7ec0b15a33e0e9e0cc3584ed7930e1ac6f347e7e06f0e002d0e759884eaf05310014e24ea0e0419fcc4

View File

@@ -0,0 +1,54 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake-multilib
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="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
fi
LICENSE="MIT"
SLOT="0/$(ver_cut 1-2)"
IUSE="test"
RESTRICT="!test? ( test )"
BDEPEND="
virtual/pkgconfig
test? (
>=dev-cpp/catch-3.4.0
)
"
DEPEND="
dev-libs/libfmt:=[${MULTILIB_USEDEP}]
"
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}/${PN}-force_external_fmt.patch"
)
multilib_src_prepare() {
cmake_src_prepare
rm -r include/spdlog/fmt/bundled || die "Failed to delete bundled libfmt"
}
multilib_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
}