blob: 47a5bd38e26ede212b02e6ae40aa4ee1a7bd535c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Copyright 1999-2022 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="Header-only library for parsing TOML"
HOMEPAGE="https://github.com/skystrife/cpptoml"
SRC_URI="https://github.com/skystrife/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
IUSE="libcxx examples"
RDEPEND="libcxx? ( sys-libs/libcxx )"
src_prepare() {
# https://github.com/9ary/gebaar-libinput-fork/commit/25cac08a5f1aed1951b03de12fa0010a0964967d
sed -i '1 i #include <limits>' include/cpptoml.h || die
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DENABLE_LIBCXX=$(usex libcxx)
-DCPPTOML_BUILD_EXAMPLES=$(usex examples)
)
cmake_src_configure
}
|