mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 07:28:01 -05:00
* Add unbuilt vcpkg to updater-vcpkg-2025.07.25 * Adjust build to add CMAKE_POLICY_VERSION_MINIMUM env variable. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * updater-vcpkg-2025.07.25: Build Run on linux/arm/v7. * updater-vcpkg-2025.07.25: Package File Update Run on linux/386 container. * Add cmake build dep. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Suggested changes. --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: satmandu <satmandu@users.noreply.github.com> Co-authored-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com>
37 lines
1.2 KiB
Ruby
37 lines
1.2 KiB
Ruby
require 'package'
|
|
|
|
class Vcpkg < Package
|
|
description 'C++ Library Manager for Windows, Linux, and MacOS'
|
|
homepage 'https://github.com/microsoft/vcpkg'
|
|
version '2025.07.25'
|
|
license 'MIT'
|
|
compatibility 'all'
|
|
source_url 'https://github.com/microsoft/vcpkg.git'
|
|
git_hashtag version
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
aarch64: 'c852e279f00d95fabdc5963e0f9754c8eef2d8f863fb0a7e47044c008b5595ca',
|
|
armv7l: 'c852e279f00d95fabdc5963e0f9754c8eef2d8f863fb0a7e47044c008b5595ca',
|
|
i686: '383ed77df1d24ea49ef90b53ac4ac2c85a7fb91e88a25bc785c251d3e9eddb39',
|
|
x86_64: '84d872bb42216cac7024ba8e446fe86704de8aa99134fd21deaabf9a8d6fa430'
|
|
})
|
|
|
|
depends_on 'cmake' => :build
|
|
depends_on 'gcc_lib' # R
|
|
depends_on 'glibc' # R
|
|
|
|
def self.build
|
|
env = {
|
|
'VCPKG_FORCE_SYSTEM_BINARIES' => 'ON',
|
|
'CMAKE_POLICY_VERSION_MINIMUM' => '3.5' # See https://github.com/microsoft/vcpkg/issues/44783
|
|
}
|
|
system env, './bootstrap-vcpkg.sh'
|
|
end
|
|
|
|
def self.install
|
|
FileUtils.install 'vcpkg', "#{CREW_DEST_PREFIX}/bin/vcpkg", mode: 0o755
|
|
FileUtils.install 'scripts/vcpkg_completion.bash', "#{CREW_DEST_PREFIX}/etc/env.d/vcpkg_completion.bash", mode: 0o644
|
|
end
|
|
end
|