Apocrypha

intervalset-1.2.0batsim

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit meson

MY_P="${PN}-v${PV}"
DESCRIPTION="C++ port of docopt"
HOMEPAGE="https://framagit.org/batsim/intervalset"
SRC_URI="https://framagit.org/batsim/${PN}/-/archive/v${PV}/${MY_P}.tar.gz"
S="${WORKDIR}/${MY_P}"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~amd64"

BUILD_DIR="${WORKDIR}/build"
EMESON_BUILDTYPE="debugoptimized"

BDEPEND="
	|| (
		sys-libs/libunwind
			(
				llvm-runtimes/compiler-rt-sanitizers
				llvm-runtimes/libunwind
			)
		)
"
RDEPEND="dev-libs/boost"

src_configure() {
	local emesonargs=(
		-Db_coverage=true
		--wipe
	)

	meson_src_configure
}

src_install() {
	meson_src_install
}