[ini-cpp] Add new port (#52830)

This commit is contained in:
Andy Hsu 2026-07-11 16:14:18 +08:00 committed by GitHub
parent de62e9c047
commit cf1c7380e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,12 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO SSARCandy/ini-cpp
REF "v${VERSION}"
SHA512 14f50416eafa3acb457d64a64c04e4e9b2d666519bf540e879ee0b5df8b078c8c776d87bb353b10fc8852566247d5b46af3da9feba926a27c1526594e77381e4
HEAD_REF master
)
file(INSTALL "${SOURCE_PATH}/ini/ini.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include/ini")
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")

4
ports/ini-cpp/usage Normal file
View File

@ -0,0 +1,4 @@
ini-cpp is header-only and can be used from CMake via:
find_path(INI_CPP_INCLUDE_DIRS "ini/ini.h")
target_include_directories(main PRIVATE ${INI_CPP_INCLUDE_DIRS})

7
ports/ini-cpp/vcpkg.json Normal file
View File

@ -0,0 +1,7 @@
{
"name": "ini-cpp",
"version": "2.0.0",
"description": "Single-header INI file reader and writer for modern C++ (C++17), with type-aware getters and sensible defaults",
"homepage": "https://github.com/SSARCandy/ini-cpp",
"license": "BSD-3-Clause"
}

View File

@ -4044,6 +4044,10 @@
"baseline": "2023-04-12",
"port-version": 0
},
"ini-cpp": {
"baseline": "2.0.0",
"port-version": 0
},
"inih": {
"baseline": "62",
"port-version": 1

9
versions/i-/ini-cpp.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "f8ec2b3ee7ce24b444c05ddf829478396da12dc4",
"version": "2.0.0",
"port-version": 0
}
]
}