diff --git a/ports/hanjingo-high-jump/portfile.cmake b/ports/hanjingo-high-jump/portfile.cmake new file mode 100644 index 0000000000..65a3159dd1 --- /dev/null +++ b/ports/hanjingo-high-jump/portfile.cmake @@ -0,0 +1,23 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO hanjingo/high-jump + REF v${VERSION} + SHA512 de21d3e9f8005164362257d3ff6503e3aa7b9fb96959a3e95d6e7593604b60435d11d1c7e2b4035709bbd0ec5aa9056789f3f934d14f60fbc76bfb4fcb9da379 +) + +vcpkg_cmake_configure( + SOURCE_PATH ${SOURCE_PATH} + OPTIONS + -DBUILD_LIB=OFF + -DBUILD_EXAMPLE=OFF + -DBUILD_TEST=OFF + -DBUILD_BENCH=OFF +) + +vcpkg_cmake_install() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug") + +file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/ports/hanjingo-high-jump/usage b/ports/hanjingo-high-jump/usage new file mode 100644 index 0000000000..2fe593051d --- /dev/null +++ b/ports/hanjingo-high-jump/usage @@ -0,0 +1,4 @@ +hanjingo-high-jump provides CMake targets: + + find_package(hj CONFIG REQUIRED) + target_link_libraries(myapp PRIVATE hj::hj) diff --git a/ports/hanjingo-high-jump/vcpkg.json b/ports/hanjingo-high-jump/vcpkg.json new file mode 100644 index 0000000000..9ea5bd0311 --- /dev/null +++ b/ports/hanjingo-high-jump/vcpkg.json @@ -0,0 +1,22 @@ +{ + "name": "hanjingo-high-jump", + "version": "1.0.3", + "maintainers": [ + "hanjingo", + "hehehunanchina@live.com" + ], + "description": "Modern C++ library framework implemented by C++17. High-jump(hj) is a comprehensive C++ library providing utilities for algorithms, compression, cryptography, databases, encoding, hardware, I/O, logging, math, networking, OS operations, synchronization, testing, time handling, types, and more.", + "homepage": "https://github.com/hanjingo/high-jump", + "license": "GPL-3.0-only", + "supports": "!uwp", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index bdb7fb3e41..d10b005e29 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -3672,6 +3672,10 @@ "baseline": "18.0.0", "port-version": 1 }, + "hanjingo-high-jump": { + "baseline": "1.0.3", + "port-version": 0 + }, "happly": { "baseline": "2021-03-19", "port-version": 0 diff --git a/versions/h-/hanjingo-high-jump.json b/versions/h-/hanjingo-high-jump.json new file mode 100644 index 0000000000..5c5519cbdd --- /dev/null +++ b/versions/h-/hanjingo-high-jump.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "bc484ecb38977ea695b354aad878144050ffdb8a", + "version": "1.0.3", + "port-version": 0 + } + ] +}