mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-cpp/magic_enum: new package, add 0.8.2
Needed for games-strategy/ja2-stracciatella in future, possibly. I packaged this given I thought it was required but ended up finding it was toggled on unnecessarily. It's cheap to build and it's likely it'll be needed in future, so.. Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
1
dev-cpp/magic_enum/Manifest
Normal file
1
dev-cpp/magic_enum/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST magic_enum-0.8.2.tar.gz 171915 BLAKE2B e8915aa7cafa9407d5d4ab3b6837fafde6b1cb75877c8b56f82568e6291ca317720950947b2dfc7e12ca459279ba4e809a8c5782fc04adc2d7636eddcb80122d SHA512 849c426484156faf91dde3f32f6c755c7698879b16dd83e13fb86b299b53ec9bbe4d55267581386302c8acb93d80ec044cc248371fdc8608cdd8f4ab12099f0a
|
||||
28
dev-cpp/magic_enum/magic_enum-0.8.2.ebuild
Normal file
28
dev-cpp/magic_enum/magic_enum-0.8.2.ebuild
Normal file
@@ -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
|
||||
}
|
||||
11
dev-cpp/magic_enum/metadata.xml
Normal file
11
dev-cpp/magic_enum/metadata.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>games@gentoo.org</email>
|
||||
<name>Gentoo Games Project</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">Neargye/magic_enum</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user