Commit Graph

21 Commits

Author SHA1 Message Date
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
Alexander Neumann
0de461216d
[vcpkg.cmake] Cleanup every special case in the find_package override (#18047)
* move boost out of the toolchain

* move icu out of the toolchain

* remove CURL from the toolchain (was already unreachable?)

* remove gsl from toolchain

* remove grpc from toolchain

* version stuff

* fix indent and missing endif()

* version stuff

* Revert changes to vcpkg.cmake

* push port version

* version stuff
2021-05-28 10:00:20 -07:00
Alexander Neumann
f99b18d573 handle multiline arguments in makefile correctly 2020-04-09 12:41:16 +02:00
Alexander Neumann
661f329e03 [gsl] update to 2.6 2020-04-09 11:00:18 +02:00
NancyLi1013
2c7ff757a1 [many ports] Add mirror (#9123) 2020-01-06 14:33:00 -08: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
Robert Schumacher
a759caf15e [gsl] Fix finding release libs in debug configurations. Fixes #2982. 2018-03-07 11:56:21 -08:00
Alexander Karatarakis
26516fe485 vcpkg_configure_cmake (and _meson) now embed debug symbols within static libs (/Z7) 2017-09-09 00:12:54 -07:00
Mikhail Paulyshka
8a6322e7f3 [gsl] update to 2.4 2017-07-25 03:44:01 +03:00
Silvio Traversaro
e47238f98c [gsl] Bump version number 2017-07-21 10:50:34 +02:00
Silvio Traversaro
0c117ea3db [gsl] Add a "d" debug postfix
See https://github.com/Microsoft/vcpkg/issues/1196#issuecomment-305751793 for details
2017-07-21 10:48:20 +02:00
Martin Müller
f53871c169 Bump GSL version and don't define DLL_EXPORT for gslcblas 2017-05-31 12:13:48 +02:00
Martin Müller
ed826d8412 Fix GSL port so that CMake can find it
- Remove lib prefix from library
- Generate separate library for the cblas part
2017-05-31 10:50:33 +02:00
Robert Schumacher
d6599a56e9 [ms-gsl][gnusl][gsl] Rename gnusl->gsl, gsl->ms-gsl. 2017-05-03 11:25:35 -07:00
Robert Schumacher
bf483dde89 [gsl] Update to 8b320e4f5 2017-05-03 05:06:12 -07:00
Alexander Karatarakis
42f180e560 [gsl] Mark as header-only library 2016-10-26 15:28:27 -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
8cee9c6e07 Replaced everything concerning MD5 with SHA512 2016-09-22 21:30:58 +02:00
Neil MacIntosh
7441443811 [gsl] Initial addition 2016-09-20 15:21:14 -07:00