aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/cpp-sort
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/cpp-sort
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/cpp-sort')
-rw-r--r--vcpkg/ports/cpp-sort/portfile.cmake24
-rw-r--r--vcpkg/ports/cpp-sort/vcpkg.json17
2 files changed, 41 insertions, 0 deletions
diff --git a/vcpkg/ports/cpp-sort/portfile.cmake b/vcpkg/ports/cpp-sort/portfile.cmake
new file mode 100644
index 0000000..f17a834
--- /dev/null
+++ b/vcpkg/ports/cpp-sort/portfile.cmake
@@ -0,0 +1,24 @@
+set(VCPKG_BUILD_TYPE release) # header-only
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO Morwenn/cpp-sort
+ REF "v${VERSION}"
+ SHA512 4a81dc92f8b386a6c6303fa9f4787e9b214a79c342dad3dff1b876d0daf251e74b0ab94a068dcca0eeec838d19bc6b7ee1e777b9ee748cfd4a81aa7159e4fe14
+ HEAD_REF 1.x.y-develop
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DCPPSORT_BUILD_TESTING=OFF
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/cpp-sort")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
diff --git a/vcpkg/ports/cpp-sort/vcpkg.json b/vcpkg/ports/cpp-sort/vcpkg.json
new file mode 100644
index 0000000..c306c7c
--- /dev/null
+++ b/vcpkg/ports/cpp-sort/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "cpp-sort",
+ "version": "2.0.0",
+ "description": "Sorting algorithms & related tools for C++14",
+ "homepage": "https://github.com/Morwenn/cpp-sort/",
+ "license": "MIT",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}