dev-cpp/expected - 9999 (mva)

Search

Install

Install this version:

emerge -a =dev-cpp/expected-9999

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-cpp/expected-9999

Or alternatively:

emerge --autounmask-write -a =dev-cpp/expected-9999

Package Information

Description:
Guideline Support Library implementation by Microsoft
Homepage:
https://github.com/TartanLlama/expected
License:
CC0-1.0

Ebuild Details

Version EAPI Keywords Slot
9999 8 ~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 0
View Raw Ebuild
# Copyright 2026 mva
# Distributed under the terms of the Public Domain or CC0 License

EAPI=8

inherit cmake
if [[ "${PV}" == 9999 ]]; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/TartanLlama/expected"
else
	if [[ "${PV}" = *_pre* ]]; then
		MY_PV="b74fecd4448a1a5549402d17ddc51e39faa5020c"
	else
		MY_PV="v${PV}"
	fi
	SRC_URI="https://github.com/TartanLlama/expected/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
	KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
	S="${WORKDIR}/${PN##tl-}-${MY_PV}"
fi

DESCRIPTION="Guideline Support Library implementation by Microsoft"
HOMEPAGE="https://github.com/TartanLlama/expected"

LICENSE="CC0-1.0"
SLOT="0"
IUSE="test"
RESTRICT="!test? ( test )"

# header only library
BDEPEND="test? ( dev-cpp/catch:1 )"

PATCHES=("${FILESDIR}/1.0.0-use_system_catch.patch")

src_configure() {
	local mycmakeargs=(
		-DEXPECTED_BUILD_TESTS=$(usex test)
	)
	use test && mycmakeargs+=( -DFORCE_SYSTEM_CATCH=ON )
	cmake_src_configure
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-cpp/expected | euse -E <flag> -p dev-cpp/expected | euse -D <flag> -p dev-cpp/expected

Global/Standard Flags

Inherited Eclasses

Dependencies

BDEPEND

test? ( dev-cpp/catch:1 )