diff options
| author | chausner <15180557+chausner@users.noreply.github.com> | 2021-09-24 02:48:42 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-23 17:48:42 -0700 |
| commit | 3b383400db647671377944a83a296f4a651b79ab (patch) | |
| tree | dec207b7a73c4bd1149df734fe6dc62deeb4b0d9 | |
| parent | d60da45f548d5e55537d7e546ffd0d7274a89795 (diff) | |
| download | vcpkg-3b383400db647671377944a83a296f4a651b79ab.tar.gz vcpkg-3b383400db647671377944a83a296f4a651b79ab.zip | |
[New port] Add cpp-TimSort 2.1.0 (#20275)
* Add new port cpp-timesort 2.1.0
* Update CI baseline
* Resolve conversation
* update version
* add dquotes
Co-authored-by: chausner <chausner@users.noreply.github.com>
Co-authored-by: Jonliu1993 <13720414433@163.com>
Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
| -rw-r--r-- | ports/cpp-timsort/portfile.cmake | 22 | ||||
| -rw-r--r-- | ports/cpp-timsort/vcpkg.json | 16 | ||||
| -rw-r--r-- | versions/baseline.json | 4 | ||||
| -rw-r--r-- | versions/c-/cpp-timsort.json | 9 |
4 files changed, 51 insertions, 0 deletions
diff --git a/ports/cpp-timsort/portfile.cmake b/ports/cpp-timsort/portfile.cmake new file mode 100644 index 000000000..b5a5e47be --- /dev/null +++ b/ports/cpp-timsort/portfile.cmake @@ -0,0 +1,22 @@ +vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO timsort/cpp-TimSort
+ REF v2.1.0
+ SHA512 57fe79d3174d9939a3212282cf64f4fdd90586eba806f57df65eb42c2b4783a68f39bd2b6709830b1688ae15f1a83f554468059b2ddf52b31805bfd23efc7db1
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DBUILD_TESTING=OFF
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/gfx PACKAGE_NAME gfx-timsort)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
+
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/ports/cpp-timsort/vcpkg.json b/ports/cpp-timsort/vcpkg.json new file mode 100644 index 000000000..334f1d78b --- /dev/null +++ b/ports/cpp-timsort/vcpkg.json @@ -0,0 +1,16 @@ +{ + "name": "cpp-timsort", + "version": "2.1.0", + "description": "A C++ implementation of timsort", + "homepage": "https://github.com/timsort/cpp-TimSort", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 20a439be8..e944bcd35 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -1500,6 +1500,10 @@ "baseline": "2.6.0", "port-version": 1 }, + "cpp-timsort": { + "baseline": "2.1.0", + "port-version": 0 + }, "cppad": { "baseline": "20210000.7", "port-version": 0 diff --git a/versions/c-/cpp-timsort.json b/versions/c-/cpp-timsort.json new file mode 100644 index 000000000..9dc9431e1 --- /dev/null +++ b/versions/c-/cpp-timsort.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "f04e9f0c24e916697a6451b43cf16a2423019635", + "version": "2.1.0", + "port-version": 0 + } + ] +} |
