Install this version:
emerge -a =dev-cpp/stduuid-1.2.3
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-cpp/stduuid-1.2.3
Or alternatively:
emerge --autounmask-write -a =dev-cpp/stduuid-1.2.3
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 1.2.3 | 8 | ~amd64 | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="C++17 cross-platform single-header UUID library"
HOMEPAGE="https://github.com/mariusbancila/stduuid"
SRC_URI="https://github.com/mariusbancila/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+system-uuid test"
RESTRICT="!test? ( test )"
RDEPEND="
dev-cpp/ms-gsl
system-uuid? ( sys-apps/util-linux )
"
DEPEND="${RDEPEND}"
src_prepare() {
# Use Gentoo's GSL implementation instead of installing the bundled copy.
sed -e '/install(DIRECTORY gsl DESTINATION include)/d' \
-i CMakeLists.txt || die
# Correct the upstream package version and honor the selected libdir.
sed -e 's/VERSION "1.0"/VERSION "'"${PV}"'"/' \
-e "s:DESTINATION lib/cmake:DESTINATION $(get_libdir)/cmake:g" \
-i CMakeLists.txt || die
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DUUID_BUILD_TESTS=$(usex test)
-DUUID_ENABLE_INSTALL=ON
-DUUID_SYSTEM_GENERATOR=$(usex system-uuid)
)
cmake_src_configure
}
Manage flags for this package:
euse -i <flag> -p dev-cpp/stduuid |
euse -E <flag> -p dev-cpp/stduuid |
euse -D <flag> -p dev-cpp/stduuid
dev-cpp/ms-gsl system-uuid? ( sys-apps/util-linux )
dev-cpp/ms-gsl system-uuid? ( sys-apps/util-linux )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | stduuid-1.2.3.tar.gz | 184170 bytes | https://github.com/mariusbancila/stduuid/archive/refs/tags/v1.2.3.tar.gz |