summaryrefslogtreecommitdiff
path: root/dev-cpp/magic_enum/magic_enum-0.9.5.ebuild
diff options
context:
space:
mode:
authorMatoro Mahri <matoro_gentoo@matoro.tk>2023-12-17 21:20:10 -0500
committerSam James <sam@gentoo.org>2023-12-19 05:25:51 +0000
commitfefcf5c5a78d937f45381819b2b8a3446a3f77eb (patch)
treec45f659f51dd316a79882e8afefd8fffadcbc390 /dev-cpp/magic_enum/magic_enum-0.9.5.ebuild
parent9dd6023fc3f61a20ec7245db28f9976dd2b3db0a (diff)
downloadgentoo-fefcf5c5a78d937f45381819b2b8a3446a3f77eb.tar.gz
gentoo-fefcf5c5a78d937f45381819b2b8a3446a3f77eb.tar.bz2
gentoo-fefcf5c5a78d937f45381819b2b8a3446a3f77eb.zip
dev-cpp/magic_enum: add 0.9.5
Bug: https://bugs.gentoo.org/917096 Reviewed-by: Nick Sarnie <sarnex@gentoo.org> Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-cpp/magic_enum/magic_enum-0.9.5.ebuild')
-rw-r--r--dev-cpp/magic_enum/magic_enum-0.9.5.ebuild27
1 files changed, 27 insertions, 0 deletions
diff --git a/dev-cpp/magic_enum/magic_enum-0.9.5.ebuild b/dev-cpp/magic_enum/magic_enum-0.9.5.ebuild
new file mode 100644
index 000000000000..ee9103fd4e03
--- /dev/null
+++ b/dev-cpp/magic_enum/magic_enum-0.9.5.ebuild
@@ -0,0 +1,27 @@
+# Copyright 2023 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 ~arm64 ~ppc64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+src_configure() {
+ local mycmakeargs=(
+ -DMAGIC_ENUM_OPT_BUILD_TESTS=$(usex test)
+ -DMAGIC_ENUM_OPT_INSTALL=ON
+ )
+
+ cmake_src_configure
+}