Kai Pastor
845a5fda11
[libarchive,lz4] Fix pc file, modernize portfile ( #20146 )
...
* Fix pc file
* Modernize portfile
* OpenSSL unused on 'Darwin'
* x-add-version
* More port cleanup (CR requests)
* Revise wrapper, using find_package
* Don't use pkgconfig modules for windows openssl
* Update versions
* Use namespaced variables for custom lzo lookup
* Wrapper needs CMP0012
* Skip dependencies if not LibArchive_FOUND
* Update versions
* Fix liblz4.pc debug lib fixup
* Update versions
Co-authored-by: NancyLi1013 <lirui09@beyondsoft.com>
2021-09-24 12:06:17 -07:00
Kai Pastor
35c086d050
[lz4] Install pc file, cleanup ( #20108 )
...
* Drop unused xxhash dependency
* Modernize portfile
* Install pc file
* x-add-version
* Switch to 'version' field
* Update versions
* Fix liblz4 pc file name
* Update versions
2021-09-13 13:25:29 -07:00
Billy O'Neal
b295670e4b
Bulk convert control files. ( #19986 )
...
```
function Convert-Control {
Param($full)
.\vcpkg.exe format-manifest $full
$root = $full.Substring(0, $full.Length - 7) # CONTROL
$new = $root + 'vcpkg.json'
$content = Get-Content -Raw $new
$asJson = ConvertFrom-Json $content -AsHashtable -Depth 100
$oldVersion = $asJson['port-version']
if ($null -eq $oldVersion) {
$oldVersionFull = $asJson['version-string']
Write-Host "Got version $oldVersionFull"
$match = [System.Text.RegularExpressions.Regex]::Match($oldVersionFull, '^(.+)-(\d+)$')
if ($match.Success -and -not [System.Text.RegularExpressions.Regex]::IsMatch($oldVersionFull, '^\d\d\d\d-\d\d-\d\d$')) {
$newFullVersion = [string]$match.Groups[1].Value
$oldVersion = [int]$match.Groups[2].Value
Write-Host "newFullVersion $newFullVersion oldVersion $oldVersion"
$newVersion = $oldVersion + 1
$asJson['version-string'] = $newFullVersion
Write-Host "Previous version for $full extracted from version field -- setting version-string $newFullVersion and port-version $newVersion"
} else {
Write-Host "No previous version for $full -- setting 1"
$newVersion = 1
}
} else {
$newVersion = [int]$oldVersion + 1
Write-Host "New version for $full : $newVersion"
}
$asJson['port-version'] = $newVersion
$content = ConvertTo-Json $asJson -Depth 100
Set-Content -Path $new -Value $content
.\vcpkg.exe format-manifest $new
}
Get-ChildItem ports\CONTROL -Recurse | Foreach-Object {
Convert-Control $_.FullName
}
git commit -am "this message"
.\vcpkg.exe x-add-version -all
git commit -a --amend
```
2021-09-09 01:24:04 -07:00
Matthieu Penant
9ab06a4def
[lz4] update to 1.9.3 ( #16860 )
...
* [lz4] update to 1.9.3
- Update lz4 to 1.9.3 https://github.com/lz4/lz4/releases/tag/v1.9.3
- tested as an install dependency for libarchive on x86-windows and x64-windows.
* forgot baseline / version
2021-04-09 10:25:45 -07:00
nicole mazzuca
68a74950d0
[vcpkg] Rename port_versions
to versions
( #15784 )
2021-01-21 09:53:22 -08:00