summaryrefslogtreecommitdiff
path: root/dev-cpp/magic_enum/magic_enum-0.8.2.ebuild
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2023-01-08 15:27:21 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2023-01-08 15:27:21 +0000
commitc9d7536109ab2e5a10e025d90c93c2fe5e86dca9 (patch)
tree097b625c6b3c7f83f05796575cfb100fab99f7a9 /dev-cpp/magic_enum/magic_enum-0.8.2.ebuild
parent4de55f55553219be34f4cee4a32c02197c938e62 (diff)
downloadsrcux-c9d7536109ab2e5a10e025d90c93c2fe5e86dca9.tar.gz
srcux-c9d7536109ab2e5a10e025d90c93c2fe5e86dca9.tar.xz
srcux-c9d7536109ab2e5a10e025d90c93c2fe5e86dca9.zip
Adding metadata
Diffstat (limited to 'dev-cpp/magic_enum/magic_enum-0.8.2.ebuild')
-rw-r--r--dev-cpp/magic_enum/magic_enum-0.8.2.ebuild28
1 files changed, 28 insertions, 0 deletions
diff --git a/dev-cpp/magic_enum/magic_enum-0.8.2.ebuild b/dev-cpp/magic_enum/magic_enum-0.8.2.ebuild
new file mode 100644
index 000000000000..df1937ee496b
--- /dev/null
+++ b/dev-cpp/magic_enum/magic_enum-0.8.2.ebuild
@@ -0,0 +1,28 @@
+# 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"
+IUSE="test"
+# Tests fail to compile
+RESTRICT="!test? ( test ) test"
+
+src_configure() {
+ local mycmakeargs=(
+ -DMAGIC_ENUM_OPT_BUILD_TESTS=$(usex test)
+ -DMAGIC_ENUM_OPT_INSTALL=ON
+ )
+
+ cmake_src_configure
+}