[boost-gil] remove dependency boost-filesystem (#20575)

* [boost-gil] remove dependency boost-filesystem
This dependency is optional and only used to build and run tests and examples.
See https://github.com/boostorg/gil#requirements
However, there is also BOOST_GIL_IO_ADD_FS_PATH_SUPPORT which enables
boost::filesystem::path support for IO functions, but since users have to define
it manually, they must install the dependency manually, too.

* fix spacing

* fix generate-ports.ps1

Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
This commit is contained in:
Osyotr 2021-10-12 06:28:23 +03:00 committed by GitHub
parent ea4b8b17cd
commit 9240fd0d8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 5 deletions

View File

@ -1,6 +1,7 @@
{ {
"name": "boost-gil", "name": "boost-gil",
"version": "1.77.0", "version": "1.77.0",
"port-version": 1,
"description": "Boost gil module", "description": "Boost gil module",
"homepage": "https://github.com/boostorg/gil", "homepage": "https://github.com/boostorg/gil",
"dependencies": [ "dependencies": [
@ -8,10 +9,6 @@
"boost-concept-check", "boost-concept-check",
"boost-config", "boost-config",
"boost-core", "boost-core",
{
"name": "boost-filesystem",
"platform": "!uwp"
},
"boost-integer", "boost-integer",
"boost-iterator", "boost-iterator",
"boost-mp11", "boost-mp11",

View File

@ -26,6 +26,7 @@ $portVersions = @{
#e.g. "boost-asio" = 1; #e.g. "boost-asio" = 1;
"boost" = 1; "boost" = 1;
"boost-config" = 2; "boost-config" = 2;
"boost-gil" = 1;
"boost-iostreams" = 1; "boost-iostreams" = 1;
"boost-modular-build-helper" = 1; "boost-modular-build-helper" = 1;
"boost-odeint" = 1; "boost-odeint" = 1;
@ -508,6 +509,12 @@ foreach ($library in $libraries) {
" [unknown] " + $($usedLibraries | Where-Object { $foundLibraries -notcontains $_ }) " [unknown] " + $($usedLibraries | Where-Object { $foundLibraries -notcontains $_ })
$deps = @($usedLibraries | Where-Object { $foundLibraries -contains $_ }) $deps = @($usedLibraries | Where-Object { $foundLibraries -contains $_ })
# break unnecessary dependencies
$deps = @($deps | ? {
-not (
($library -eq 'gil' -and $_ -eq 'filesystem') # PR #20575
)
})
$deps = @($deps | ForEach-Object { GeneratePortDependency $_ }) $deps = @($deps | ForEach-Object { GeneratePortDependency $_ })
$deps += @("boost-vcpkg-helpers") $deps += @("boost-vcpkg-helpers")

View File

@ -1,5 +1,10 @@
{ {
"versions": [ "versions": [
{
"git-tree": "d6607eb56e9f61771dbd6915d2e5d4b3b2976a7e",
"version": "1.77.0",
"port-version": 1
},
{ {
"git-tree": "2f4d4429e10ce2721dc48a01588fbf200c683bc5", "git-tree": "2f4d4429e10ce2721dc48a01588fbf200c683bc5",
"version": "1.77.0", "version": "1.77.0",

View File

@ -698,7 +698,7 @@
}, },
"boost-gil": { "boost-gil": {
"baseline": "1.77.0", "baseline": "1.77.0",
"port-version": 0 "port-version": 1
}, },
"boost-graph": { "boost-graph": {
"baseline": "1.77.0", "baseline": "1.77.0",