From f894a2f39a22eed720059055c634be329c86eac2 Mon Sep 17 00:00:00 2001 From: terens <37905314+TerensTare@users.noreply.github.com> Date: Sun, 25 Jul 2021 21:49:48 +0200 Subject: [PATCH] [entt] add `experimental` feature (#18626) * Update `entt/portfile.cmake` to support the new `experimental` feature. * Added the `experimental` feature on `entt/vcpkg.json`. * Small fix on `entt/vcpkg.json`. * Update vcpkg.json * New branch * Fixup * (Hopefully) fixed entt version * Require specifying `--head` for the feature * update version * update version * [entt] add experimental feature * update version * update vcpkg.json * update version Co-authored-by: Jonliu1993 <13720414433@163.com> --- ports/entt/portfile.cmake | 22 +++++++++++++++------- ports/entt/vcpkg.json | 8 +++++++- versions/baseline.json | 2 +- versions/e-/entt.json | 5 +++++ 4 files changed, 28 insertions(+), 9 deletions(-) diff --git a/ports/entt/portfile.cmake b/ports/entt/portfile.cmake index 0e5197e4be..f683c1a096 100644 --- a/ports/entt/portfile.cmake +++ b/ports/entt/portfile.cmake @@ -1,10 +1,18 @@ -vcpkg_from_github( - OUT_SOURCE_PATH SOURCE_PATH - REPO skypjack/entt - REF 2d5a3f24aa6dc38ed0c4eee9d4d625586d8e921e #v3.8.0 - SHA512 36b7be2550be5a919548e5c91db218ed9b062804d4f43073d6fc6b432fa2d358b5d36098490359ca2392370b2bf1b99d20e564504eaac619f5cd7f9612d91e2e - HEAD_REF master -) +if ("experimental" IN_LIST FEATURES) + vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO skypjack/entt + HEAD_REF experimental + ) +else() + vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO skypjack/entt + REF 2d5a3f24aa6dc38ed0c4eee9d4d625586d8e921e #v3.8.0 + SHA512 36b7be2550be5a919548e5c91db218ed9b062804d4f43073d6fc6b432fa2d358b5d36098490359ca2392370b2bf1b99d20e564504eaac619f5cd7f9612d91e2e + HEAD_REF master + ) +endif() vcpkg_configure_cmake( SOURCE_PATH ${SOURCE_PATH} diff --git a/ports/entt/vcpkg.json b/ports/entt/vcpkg.json index eb925df7ce..43beae304f 100644 --- a/ports/entt/vcpkg.json +++ b/ports/entt/vcpkg.json @@ -1,6 +1,12 @@ { "name": "entt", "version": "3.8.0", + "port-version": 1, "description": "Gaming meets modern C++ - a fast and reliable entity-component system and much more", - "homepage": "https://github.com/skypjack/entt" + "homepage": "https://github.com/skypjack/entt", + "features": { + "experimental": { + "description": "Use experimental features right away" + } + } } diff --git a/versions/baseline.json b/versions/baseline.json index 4fd7cb80f3..a6c414174a 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -1890,7 +1890,7 @@ }, "entt": { "baseline": "3.8.0", - "port-version": 0 + "port-version": 1 }, "epsilon": { "baseline": "0.9.2-4", diff --git a/versions/e-/entt.json b/versions/e-/entt.json index 7b7f6ea53c..629e3aef7e 100644 --- a/versions/e-/entt.json +++ b/versions/e-/entt.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "c1b20a18637e66b31dcda3a46341bf10548b78e8", + "version": "3.8.0", + "port-version": 1 + }, { "git-tree": "a35e25160e39304b6ac16c679fa98f2c926c2877", "version": "3.8.0",