Install this version:
emerge -a =dev-cpp/units-3.3.0
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-cpp/units-3.3.0
Or alternatively:
emerge --autounmask-write -a =dev-cpp/units-3.3.0
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 3.3.0 | 8 | ~amd64 | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="A compile-time, header-only, dimensional analysis and unit conversion library"
HOMEPAGE="https://github.com/nholthaus/units"
SRC_URI="https://github.com/nholthaus/units/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"
DEPEND="test? ( >=dev-cpp/gtest-1.17.0 )"
src_configure() {
local mycmakeargs+=(
-DBUILD_TESTING="$(usex test ON OFF)"
-DUNITS_BUILD_TESTS="$(usex test ON OFF)"
)
cmake_src_configure
}
Manage flags for this package:
euse -i <flag> -p dev-cpp/units |
euse -E <flag> -p dev-cpp/units |
euse -D <flag> -p dev-cpp/units
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | units-3.3.0.tar.gz | 1198638 bytes | https://github.com/nholthaus/units/archive/refs/tags/v3.3.0.tar.gz |