mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-03-30 06:37:29 -07:00
Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at> Closes: https://github.com/gentoo/gentoo/pull/37824 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
32 lines
732 B
Bash
32 lines
732 B
Bash
# Copyright 2023-2024 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
# As of 0.8.2, it has meson, but only for subproject use(?)
|
|
# Doesn't install anything.
|
|
inherit cmake
|
|
|
|
DESCRIPTION="Static reflection for enums in header-only C++"
|
|
HOMEPAGE="https://github.com/Neargye/magic_enum"
|
|
SRC_URI="https://github.com/Neargye/magic_enum/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86"
|
|
IUSE="test"
|
|
RESTRICT="!test? ( test )"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/${P}-werror.patch
|
|
)
|
|
|
|
src_configure() {
|
|
local mycmakeargs=(
|
|
-DMAGIC_ENUM_OPT_BUILD_TESTS=$(usex test)
|
|
-DMAGIC_ENUM_OPT_INSTALL=ON
|
|
)
|
|
|
|
cmake_src_configure
|
|
}
|