repo/proj/guru:dev commit in: dev-util/vcpkg/files/, dev-util/vcpkg/
MichaŠGórny <[email protected]>
| Newsgroups | gmane.linux.gentoo.cvs |
|---|---|
| Message-ID | <1786948630.2daaeff42e7945b9ae0af0aac621a04e5e72ec72.mgorny@gentoo> |
commit: 2daaeff42e7945b9ae0af0aac621a04e5e72ec72
Author: sat0sh1c <sat0sh1c <AT> noreply <DOT> gitea <DOT> com>
AuthorDate: Mon Aug 17 05:49:14 2026 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Aug 17 06:37:10 2026 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2daaeff4
dev-util/vcpkg new pacakge, add 2026.05.27
Signed-off-by: sat0sh1c <sat0sh1c <AT> noreply.gitea.com>
Part-of: https://github.com/gentoo/guru/pull/539
Closes: https://github.com/gentoo/guru/pull/539
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-util/vcpkg/Manifest | 2 +
.../files/vcpkg-tool-2026-05-27-fix-includes.patch | 29 +++++++
dev-util/vcpkg/vcpkg-2026.05.27.ebuild | 93 ++++++++++++++++++++++
3 files changed, 124 insertions(+)
diff --git a/dev-util/vcpkg/Manifest b/dev-util/vcpkg/Manifest
new file mode 100644
index 0000000000..e578ae8495
--- /dev/null
+++ b/dev-util/vcpkg/Manifest
@@ -0,0 +1,2 @@
+DIST vcpkg-data-2026.05.25.tar.gz 5247014 BLAKE2B 56790d4e09105a0520fcf9fe636e618686fc6195510b2f90201c4ae364241a2901ace79c5cfe6123b77f93192caa1c5e2ea1f17a5927b4804dce8a46d075e55a SHA512 dd28e03a27c713133120d6923fe908f6bf2ab3500fbc000eb4e9eaf74cc44c577a970b984b1ff576cb8966a30ddf2c66f08156c9a31d2042d3292edfa59331ff
+DIST vcpkg-tool-2026-05-27.tar.gz 2973804 BLAKE2B 82fab72ce3e7b356c051fa730127346b97a773cb26b46325c5c6994f9fe2889a48f06a94a6232afc9523c7e63723dc3da174be6f8cf4166c6fc0b64fe7bd3190 SHA512 006a00237ef608c0856c539be2da219702f1c4f0ff42f07ffab3f47360dd03f601323ae96f1b256531312af9af49a21dd86c427e7523c93f882a4f503367386b
diff --git a/dev-util/vcpkg/files/vcpkg-tool-2026-05-27-fix-includes.patch b/dev-util/vcpkg/files/vcpkg-tool-2026-05-27-fix-includes.patch
new file mode 100644
index 0000000000..b36376966b
--- /dev/null
+++ b/dev-util/vcpkg/files/vcpkg-tool-2026-05-27-fix-includes.patch
@@ -0,0 +1,29 @@
+--- a/include/vcpkg/binarycaching.h
++++ b/include/vcpkg/binarycaching.h
+@@ -18,6 +18,7 @@
+ #include <vcpkg/packagespec.h>
+ #include <vcpkg/versions.h>
+
++#include <atomic>
+ #include <chrono>
+ #include <iterator>
+ #include <set>
+--- a/src/vcpkg/base/downloads.cpp
++++ b/src/vcpkg/base/downloads.cpp
+@@ -1,3 +1,5 @@
++#include <vcpkg/base/system-headers.h>
++
+ #include <vcpkg/base/api-stable-format.h>
+ #include <vcpkg/base/contractual-constants.h>
+ #include <vcpkg/base/curl.h>
+--- a/src/vcpkg/base/system.cpp
++++ b/src/vcpkg/base/system.cpp
+@@ -11,6 +11,8 @@
+ #include <vcpkg/base/system.h>
+ #include <vcpkg/base/uuid.h>
+
++#include <thread>
++
+ #if defined(__APPLE__)
+ #include <sys/sysctl.h>
+ #endif
diff --git a/dev-util/vcpkg/vcpkg-2026.05.27.ebuild b/dev-util/vcpkg/vcpkg-2026.05.27.ebuild
new file mode 100644
index 0000000000..df00c638a4
--- /dev/null
+++ b/dev-util/vcpkg/vcpkg-2026.05.27.ebuild
@@ -0,0 +1,93 @@
+# Copyright 2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+TOOL_TAG="2026-05-27"
+DATA_TAG="2026.05.25"
+
+inherit cmake
+
+DESCRIPTION="C/C++ library manager from Microsoft"
+HOMEPAGE="https://github.com/microsoft/vcpkg https://vcpkg.io"
+
+SRC_URI="
+ https://github.com/microsoft/vcpkg-tool/archive/refs/tags/${TOOL_TAG}.tar.gz -> ${PN}-tool-${TOOL_TAG}.tar.gz
+ https://github.com/microsoft/vcpkg/archive/refs/tags/${DATA_TAG}.tar.gz -> ${PN}-data-${DATA_TAG}.tar.gz
+"
+S="${WORKDIR}/vcpkg-tool-${TOOL_TAG}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+IUSE="telemetry"
+
+RDEPEND="
+ dev-libs/libfmt:=
+ net-misc/curl[ssl]
+"
+DEPEND="${RDEPEND}"
+BDEPEND="dev-cpp/cmrc"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-tool-${TOOL_TAG}-fix-includes.patch"
+)
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_TESTING=OFF
+ -DVCPKG_DEVELOPMENT_WARNINGS=OFF
+ -DVCPKG_WARNINGS_AS_ERRORS=OFF
+ -DVCPKG_BUILD_TLS12_DOWNLOADER=OFF
+ -DVCPKG_BUILD_FUZZING=OFF
+ -DVCPKG_EMBED_GIT_SHA=OFF
+ -DVCPKG_ARTIFACTS_DEVELOPMENT=OFF
+ -DVCPKG_OFFICIAL_BUILD=OFF
+ # vcpkg-tool's custom cmake/Find*.cmake modules download their own
+ # copies of fmt/cmrc/curl from GitHub/curl.se by default, which happens in src_configure, however
+ # in src configure there is no network access outside of SRC_URIs, resulting in failed to resolve hostname issues
+ -DVCPKG_DEPENDENCY_EXTERNAL_FMT=ON
+ -DVCPKG_DEPENDENCY_CMAKERC=ON
+ -DVCPKG_LIBCURL_DLSYM=OFF
+ # cmrc's hasn't been bumped in 3 years, so it
+ # fails against CMake >=4.0 unless CMAKE_POLICY_VERSION_MINIMUM is explicitly set
+ -DCMAKE_POLICY_VERSION_MINIMUM=3.5
+ )
+ cmake_src_configure
+}
+
+src_install() {
+ local vcpkg_data_dir="${WORKDIR}/vcpkg-${DATA_TAG}"
+
+ local vcpkg_home="/usr/share/vcpkg"
+ local vcpkg_libexec="/usr/libexec/vcpkg"
+
+ exeinto "${vcpkg_libexec}"
+ doexe "${BUILD_DIR}/vcpkg"
+
+ insinto "${vcpkg_home}"
+ doins "${vcpkg_data_dir}/.vcpkg-root"
+ doins -r "${vcpkg_data_dir}"/{scripts,triplets}
+
+ insinto /usr/bin
+ newins - vcpkg <<-EOF
+ #!/bin/sh
+ exec "${EPREFIX}${vcpkg_libexec}/vcpkg" --vcpkg-root "${EPREFIX}${vcpkg_home}" "\$@"
+ EOF
+ fperms +x /usr/bin/vcpkg
+
+ # Equivalent to --disable-metrics
+ if ! use telemetry; then
+ newins - vcpkg.disable_metrics <<<""
+ fi
+
+ dodoc "${vcpkg_data_dir}/README.md"
+}
+
+pkg_postinst() {
+ elog "Ports registry is not bundled; vcpkg fetches it on demand."
+ if use telemetry; then
+ elog "Telemetry is ENABLED. Rebuild with USE=-telemetry to disable."
+ else
+ elog "Telemetry is DISABLED (vcpkg.disable_metrics installed)."
+ fi
+}