diff --git a/ports/neko-log/portfile.cmake b/ports/neko-log/portfile.cmake new file mode 100644 index 0000000000..2314e80bdb --- /dev/null +++ b/ports/neko-log/portfile.cmake @@ -0,0 +1,26 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO moehoshio/NekoLog + REF v1.0.6 + SHA512 acd86782fab0d3be5e1b4a4b54819b73018d9c14d2347a21d96e01fb2f7cf3641dc83b2363320d0564ad8cc77bb71ad6880dacc55aee8af77a04390d5f509d3c + HEAD_REF main +) + +set(VCPKG_BUILD_TYPE release) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DNEKO_LOG_BUILD_TESTS=OFF + -DNEKO_LOG_AUTO_FETCH_DEPS=OFF + -DNEKO_LOG_ENABLE_MODULE=OFF +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/NekoLog PACKAGE_NAME nekolog) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") + +file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") diff --git a/ports/neko-log/usage b/ports/neko-log/usage new file mode 100644 index 0000000000..da94c53716 --- /dev/null +++ b/ports/neko-log/usage @@ -0,0 +1,4 @@ +NekoLog provides CMake targets: + + find_package(NekoLog CONFIG REQUIRED) + target_link_libraries(main PRIVATE Neko::Log) diff --git a/ports/neko-log/vcpkg.json b/ports/neko-log/vcpkg.json new file mode 100644 index 0000000000..2aaba6573b --- /dev/null +++ b/ports/neko-log/vcpkg.json @@ -0,0 +1,19 @@ +{ + "name": "neko-log", + "version": "1.0.6", + "description": "An easy-to-use, modern, lightweight, and efficient C++20 logging library", + "homepage": "https://github.com/moehoshio/NekoLog", + "license": "MIT OR Apache-2.0", + "supports": "!uwp", + "dependencies": [ + "neko-schema", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index fa97383524..1ab51d169c 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -6796,6 +6796,10 @@ "baseline": "1.0.11", "port-version": 0 }, + "neko-log": { + "baseline": "1.0.6", + "port-version": 0 + }, "neko-schema": { "baseline": "1.1.4", "port-version": 0 diff --git a/versions/n-/neko-log.json b/versions/n-/neko-log.json new file mode 100644 index 0000000000..4dc2185cbf --- /dev/null +++ b/versions/n-/neko-log.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "54d5d66ee783ba6aa5ca2d39d3bf55d2f7551597", + "version": "1.0.6", + "port-version": 0 + } + ] +}