summaryrefslogtreecommitdiff
path: root/dev-cpp/magic_enum/magic_enum-0.9.7.ebuild
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-06-21 19:01:21 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-06-21 19:01:21 +0000
commit00a6d1ff550f047a4aefe580f6d036c1d8564da7 (patch)
tree1e4207fd130e74bd3248b48ddc2062b46480a105 /dev-cpp/magic_enum/magic_enum-0.9.7.ebuild
parentae723eb1ef4f54cf34cd3235fe0f5e9d39b046cc (diff)
downloadbaldeagleos-repo-00a6d1ff550f047a4aefe580f6d036c1d8564da7.tar.gz
baldeagleos-repo-00a6d1ff550f047a4aefe580f6d036c1d8564da7.tar.xz
baldeagleos-repo-00a6d1ff550f047a4aefe580f6d036c1d8564da7.zip
Adding metadata
Diffstat (limited to 'dev-cpp/magic_enum/magic_enum-0.9.7.ebuild')
-rw-r--r--dev-cpp/magic_enum/magic_enum-0.9.7.ebuild33
1 files changed, 33 insertions, 0 deletions
diff --git a/dev-cpp/magic_enum/magic_enum-0.9.7.ebuild b/dev-cpp/magic_enum/magic_enum-0.9.7.ebuild
new file mode 100644
index 000000000000..a63522454784
--- /dev/null
+++ b/dev-cpp/magic_enum/magic_enum-0.9.7.ebuild
@@ -0,0 +1,33 @@
+# Copyright 2023-2025 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. In 0.9.7, the situation looks better, but
+# need to test with reverse dependencies.
+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="examples test"
+RESTRICT="!test? ( test )"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.9.7-werror.patch
+)
+
+src_configure() {
+ local mycmakeargs=(
+ -DMAGIC_ENUM_OPT_BUILD_EXAMPLES=$(usex examples)
+ -DMAGIC_ENUM_OPT_BUILD_TESTS=$(usex test)
+ -DMAGIC_ENUM_OPT_INSTALL=ON
+ )
+
+ cmake_src_configure
+}