dev-cpp/variant - 1.2.0 (mva)

Search

Install

Install this version:

emerge -a =dev-cpp/variant-1.2.0

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

autounmask =dev-cpp/variant-1.2.0

Or alternatively:

emerge --autounmask-write -a =dev-cpp/variant-1.2.0

Package Information

Description:
An header-only alternative to boost::variant for C++11 and C++14
Homepage:
https://github.com/mapbox/variant
License:
BSD

Ebuild Details

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

EAPI=8

inherit patches

DESCRIPTION="An header-only alternative to boost::variant for C++11 and C++14"
HOMEPAGE="https://github.com/mapbox/variant"

if [[ "${PV}" == 9999 ]]; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/mapbox/variant"
else
	SRC_URI="https://github.com/mapbox/variant/archive/v${PV}.tar.gz -> ${P}.tar.gz"
	KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc64 ~riscv ~x86"
fi

LICENSE="BSD"
SLOT="0"

src_compile() { :; }
# ^ header-only. Makefile only builds tests

src_install() {
	insinto /usr/include/mapbox
	doins "${S}"/include/mapbox/*.hpp
}

Inherited Eclasses

Manifest for 1.2.0

Type File Size Source URLs
DIST variant-1.2.0.tar.gz 128899 bytes https://github.com/mapbox/variant/archive/v1.2.0.tar.gz