Install this version:
emerge -a =dev-util/vcpkg-tool-2026.7.27
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-util/vcpkg-tool-2026.7.27
Or alternatively:
emerge --autounmask-write -a =dev-util/vcpkg-tool-2026.7.27
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 2026.7.27 | 8 | ~amd64 | 0 |
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="Library manager for C/C++ (tool only)."
HOMEPAGE="https://github.com/microsoft/vcpkg-tool https://vcpkg.io/en/index.html"
# Upstream tags are zero-padded dates. Build the tag with ver_cut rather than a
# here-string: here-strings need a temp file, which the sandbox denies during
# the depend phase, silently yielding an empty version.
MY_PV="$(printf '%04d-%02d-%02d' "$(ver_cut 1)" "$(ver_cut 2)" "$(ver_cut 3)")"
SRC_URI="https://github.com/microsoft/${PN}/archive/refs/tags/${MY_PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${MY_PV}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"
DEPEND="dev-libs/libfmt:=
net-misc/curl"
RDEPEND="${DEPEND}"
BDEPEND="dev-util/cmakerc"
src_configure() {
local mycmakeargs=(
"-DBUILD_TESTING=$(usex test)"
"-DVCPKG_ARTIFACTS_SHA=775c0b327487c04180e43f61813caf097da9a1f223030a486425e2ffbea255c48ba22e4add10401c8aa6e1e9bd53f182d694f363942ce99d7dd5dfafe9cc07fb"
"-DVCPKG_STANDALONE_BUNDLE_SHA=$(grep -E 'VCPKG_STANDALONE_BUNDLE_SHA"' CMakePresets.json | cut '-d"' -f4)"
-DCMAKE_POLICY_VERSION_MINIMUM=3.5
-DBUILD_SHARED_LIBS=OFF
-DVCPKG_BASE_VERSION=2024-01-11
-DVCPKG_BUILD_TLS12_DOWNLOADER=OFF
-DVCPKG_LIBCURL_DLSYM=OFF
-DVCPKG_DEPENDENCY_CMAKERC=ON
-DVCPKG_DEPENDENCY_EXTERNAL_FMT=ON
-DVCPKG_DEVELOPMENT_WARNINGS=OFF
-DVCPKG_EMBED_GIT_SHA=OFF
-DVCPKG_OFFICIAL_BUILD=ON
-DVCPKG_WARNINGS_AS_ERRORS=OFF
-DCMAKE_DISABLE_PRECOMPILE_HEADERS=OFF
)
cmake_src_configure
}
pkg_postinst() {
einfo
einfo 'To use vcpkg you need to have a copy of https://github.com/microsoft/vcpkg'
einfo 'or another root somewhere and point to it with the VCPKG_ROOT environment'
einfo 'variable or by passing --vcpkg-root=<path>.'
einfo
}
Manage flags for this package:
euse -i <flag> -p dev-util/vcpkg-tool |
euse -E <flag> -p dev-util/vcpkg-tool |
euse -D <flag> -p dev-util/vcpkg-tool
dev-libs/libfmt:= net-misc/curl
dev-libs/libfmt:= net-misc/curl
dev-util/cmakerc