Commit Graph

6 Commits

Author SHA1 Message Date
JonLiu1993
8f542fd07a
[libexif] Fix usage (#37212)
Fixes #37184
When use libexif provide usage, you will get three error:
````
1> [CMake] CMake Error at F:/test/vcpkg/installed/x64-windows/share/unofficial-libexif/unofficial-libexif-config.cmake:10 (find_library):
1> [CMake]   Syntax error in cmake code at
1> [CMake] 
1> [CMake]     F:/test/vcpkg/installed/x64-windows/share/unofficial-libexif/unofficial-libexif-config.cmake:10
1> [CMake] 
1> [CMake]   when parsing string
1> [CMake] 
1> [CMake]     ${z_vcpkg_LIBEXIF_root }/lib
1> [CMake] 
1> [CMake]   Invalid character (' ') in a variable name: 'z_vcpkg_LIBEXIF_root'
````
````
1> [CMake] CMake Error at F:/test/vcpkg/installed/x64-windows/share/unofficial-libexif/unofficial-libexif-config.cmake:10 (find_library):
1> [CMake]   Could not find Z_VCPKG_LIBEXIF_LIBRARY_RELEASE using the following names:
1> [CMake]   libexif
````
````
1> [CMake] CMake Error in CMakeProject1/CMakeLists.txt:
1> [CMake]   Imported target "unofficial::libexif::libexif" includes non-existent path
1> [CMake] 
1> [CMake]     "/include"
````
Change the `unofficial-libexif-config.cmake` file to fix usage error.

Usage tested successfully by `libexif:x64-windows`:
````
libexif provides CMake targets:

  # this is heuristically generated, and may not be correct
  find_package(unofficial-libexif CONFIG REQUIRED)
  target_link_libraries(main PRIVATE unofficial::libexif::libexif)
````

- [x] Changes comply with the [maintainer
guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md).
- [ ] ~~SHA512s are updated for each updated download.~~
- [ ] ~~The "supports" clause reflects platforms that may be fixed by
this new version.~~
- [ ] ~~Any fixed [CI
baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt)
entries are removed from that file.~~
- [ ] ~~Any patches that are no longer applied are deleted from the
port's directory.~~
- [x] The version database is fixed by rerunning `./vcpkg x-add-version
--all` and committing the result.
- [x] Only one version is added to each modified port's versions file.

---------

Co-authored-by: Jon <v-zhli17@microsoft.com>
2024-03-07 12:27:35 -08:00
Kai Pastor
ceca66bec0
[libexif] Fix feature nls (#35864)
This package has own gettext autoconf hacks, so providing gettext[core]
m4 files and autopoint for autoreconf cannot be avoided.
2023-12-29 00:03:07 -08:00
Frank
24ae27eb23
[libexif] Change to the official build system (#32114)
* [vtk] Fix the dependency curl of proj

* version

* [libexif] Change to the official build system

* add port-version

* version

* revert

* libexif

* version

* default feature nls

* version

* update

* format

* version

* revert

* vdb

* version
2023-12-01 01:57:19 -08:00
chausner
857ebca7ea
[libexif] Update to 0.6.24 (#29178)
* Update libexif to 0.6.24

* Update CI baseline

* Update SPDX license id

* Update CI baseline

Co-authored-by: chausner <chausner@users.noreply.github.com>
2023-01-26 19:14:51 -08:00
Billy O'Neal
c9e786d81a
[many ports] remove remaining vcpkg_fail_port_install calls. (#22770)
* Bulk remove vcpkg_fail_port_install calls.

Interesting ones have been split out into separate reviews, where "interesting" means "anything more than just deleting the call to vcpkg_fail_port_install",

In support of https://github.com/microsoft/vcpkg/pull/21502

* Update version database.

* Revert google benchmark changes already submitted as https://github.com/microsoft/vcpkg/pull/22728

* Repair version database.
2022-01-25 10:31:15 -08: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