[pdqsort] Add new port (#7464)

* [pdqsort] Add new port

* [pdqsort] Add new port
This commit is contained in:
Lily 2019-08-08 23:15:09 +08:00 committed by dan-shaw
parent 945717ce51
commit 0857d713a0
2 changed files with 19 additions and 0 deletions

4
ports/pdqsort/CONTROL Normal file
View File

@ -0,0 +1,4 @@
Source: pdqsort
Version: 2019-07-30
Homepage: https://github.com/orlp/pdqsort
Description: Pattern-defeating quicksort (pdqsort) is a novel sorting algorithm

View File

@ -0,0 +1,15 @@
include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO orlp/pdqsort
REF 08879029ab8dcb80a70142acb709e3df02de5d37
SHA512 38e8b6e35edf1e88e26850a13ce892d8adc0d3e1d7954287d024b3bb858a6b2284e25fbf7c92a694b3ec77cacaf6bbc27fc365187115f7cca6bc88088f67a18f
HEAD_REF master
)
file(COPY ${SOURCE_PATH}/pdqsort.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/pdqsort)
# Handle copyright
file(COPY ${SOURCE_PATH}/license.txt ${SOURCE_PATH}/readme.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/pdqsort)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/pdqsort/license.txt ${CURRENT_PACKAGES_DIR}/share/pdqsort/copyright)