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
Jack·Boos·Yu
21b56d9929
[vcpkg_from_sourceforge] Add retry mirror function (2/2) ( #12018 )
2020-07-03 09:36:40 -07:00
Jack·Boos·Yu
a0e0c57f86
[vcpkg] Add vcpkg_from_sourceforge (1/2) ( #11899 )
2020-06-26 15:06:30 -07:00
Stefano Sinigardi
726c111481
[vcpkg] fatal_error when patch fails to apply ( #8087 )
...
vcpkg will now fail on failure to apply patches except when using `--head`.
2019-10-07 10:35:13 -07:00
pravic
18b029a5e3
[WIP] Add a Homepage URL entry for vcpkg ports ( #2933 )
...
* [vcpkg] Add "Homepage" field to the CONTROL files.
2019-06-15 16:54:47 -07:00
Connor Fitzgerald
02511898db
[rapidxml-ns] Add new port. ( #5703 )
...
* [rapidxml-ns] Add new port
* [rapidxml] Move headers out of include to prevent conflicts and clutter.
* [rapidxml-ns] Update SHA512
* [rapidxml-ns] Fix header installation
* [3fd] Fix header issue with rapidxml
2019-03-18 21:18:02 -07:00
Alexander Karatarakis
c02d8cebbf
[rapidxml] Mark as header-only library
2016-10-26 19:33:50 -07:00
Alexander Karatarakis
3679955544
Introduce SOURCE_PATH to almost all portfiles
2016-09-28 17:05:56 -07:00
Ninetainedo
930d0a7ded
URL and MIRRORS are now URLS
...
Updated all portfiles accordingly.
2016-09-25 00:23:04 +02:00
Ninetainedo
fc26083995
Second part of updated portfiles
2016-09-22 22:13:09 +02:00
Ninetainedo
663f915807
Added RapidXml
2016-09-21 01:46:35 +02:00