diff --git a/ports/ini-cpp/portfile.cmake b/ports/ini-cpp/portfile.cmake new file mode 100644 index 0000000000..55553ffc0e --- /dev/null +++ b/ports/ini-cpp/portfile.cmake @@ -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") diff --git a/ports/ini-cpp/usage b/ports/ini-cpp/usage new file mode 100644 index 0000000000..76a7df4c8b --- /dev/null +++ b/ports/ini-cpp/usage @@ -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}) diff --git a/ports/ini-cpp/vcpkg.json b/ports/ini-cpp/vcpkg.json new file mode 100644 index 0000000000..ae6293c8d5 --- /dev/null +++ b/ports/ini-cpp/vcpkg.json @@ -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" +} diff --git a/versions/baseline.json b/versions/baseline.json index d857e3100e..14460662cf 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -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 diff --git a/versions/i-/ini-cpp.json b/versions/i-/ini-cpp.json new file mode 100644 index 0000000000..9e97463832 --- /dev/null +++ b/versions/i-/ini-cpp.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "f8ec2b3ee7ce24b444c05ddf829478396da12dc4", + "version": "2.0.0", + "port-version": 0 + } + ] +}