vcpkg/ports/swenson-sort/portfile.cmake
Christopher Swenson bd83734ce9
[swenson-sort] Add new port for sort.h (#32251)
* Add sort port for sort.h

[sort.h](https://github.com/swenson/sort) is a fast C header library
with many different sorting algorithms.

There's not a build process, so the port is just copying the header
file.

Most people usually just copied the header into their project, but I
thought having a vcpkg might make it easier to use sort.h

* Move sort to swenson-sort
2023-06-28 01:01:12 -07:00

13 lines
522 B
CMake

# header-only library, no build
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO swenson/sort
REF 5820a8094e4a2ae1c88ac8f8df7735c332ee62ff # accessed on 2023-06-26
SHA512 fbe89ba5c5531f46250e2b8128ea5f1d7bac642a590a2f6e5f2cc3befa61f175b8f1fc28317377cde50357e8947ddc7ba8e0751437cf2c9fb91b7469511be15a
FILE_DISAMBIGUATOR 2
HEAD_REF master
)
file(INSTALL "${SOURCE_PATH}/sort.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include/${PORT}")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")