summaryrefslogtreecommitdiff
path: root/dev-cpp/magic_enum/magic_enum-0.9.6.ebuild
diff options
context:
space:
mode:
authorMichael Mair-Keimberger <mmk@levelnine.at>2024-07-30 18:28:09 +0200
committerJames Le Cuirot <chewi@gentoo.org>2024-08-02 22:57:07 +0100
commitf38838bb97d6bc421ad0fdf5dd52bde3147a0bc7 (patch)
treed1cf19b25a487aaf96ae54773c1ae6e6e5a0c6fa /dev-cpp/magic_enum/magic_enum-0.9.6.ebuild
parent6fb1511c666b7c8bff33d0d78f9af31e550116a2 (diff)
downloadgentoo-f38838bb97d6bc421ad0fdf5dd52bde3147a0bc7.tar.gz
gentoo-f38838bb97d6bc421ad0fdf5dd52bde3147a0bc7.tar.bz2
gentoo-f38838bb97d6bc421ad0fdf5dd52bde3147a0bc7.zip
dev-cpp/magic_enum: add 0.9.6
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>
Diffstat (limited to 'dev-cpp/magic_enum/magic_enum-0.9.6.ebuild')
-rw-r--r--dev-cpp/magic_enum/magic_enum-0.9.6.ebuild31
1 files changed, 31 insertions, 0 deletions
diff --git a/dev-cpp/magic_enum/magic_enum-0.9.6.ebuild b/dev-cpp/magic_enum/magic_enum-0.9.6.ebuild
new file mode 100644
index 000000000000..5a4a0dda0b76
--- /dev/null
+++ b/dev-cpp/magic_enum/magic_enum-0.9.6.ebuild
@@ -0,0 +1,31 @@
+# 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
+}