From db5c711f27e3a8a768de48447362fa6378d5ac8a Mon Sep 17 00:00:00 2001 From: autoantwort <41973254+autoantwort@users.noreply.github.com> Date: Mon, 9 Jan 2023 10:15:12 +0100 Subject: [PATCH] [ctpg] no absolute paths (#28791) --- ports/ctpg/portfile.cmake | 5 ++++- ports/ctpg/vcpkg.json | 1 + versions/baseline.json | 2 +- versions/c-/ctpg.json | 5 +++++ 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ports/ctpg/portfile.cmake b/ports/ctpg/portfile.cmake index d638104c371f75..688cd578657fd0 100644 --- a/ports/ctpg/portfile.cmake +++ b/ports/ctpg/portfile.cmake @@ -13,12 +13,15 @@ vcpkg_cmake_configure( OPTIONS -DCTPG_ENABLE_INSTALL=ON -DCTPG_ENABLE_TESTS=OFF - -DCTPG_INSTALL_CMAKEDIR="${CURRENT_PACKAGES_DIR}/share/${PORT}" -DCTPG_WARNING_FLAGS=OFF ) vcpkg_cmake_install() +file(GLOB files "${CURRENT_PACKAGES_DIR}/share/${PORT}/cmake/*") +file(COPY ${files} DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/${PORT}/cmake/") + vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug") diff --git a/ports/ctpg/vcpkg.json b/ports/ctpg/vcpkg.json index e0e10ef019d1d0..dd61fad9b0ebeb 100644 --- a/ports/ctpg/vcpkg.json +++ b/ports/ctpg/vcpkg.json @@ -1,6 +1,7 @@ { "name": "ctpg", "version": "1.3.7", + "port-version": 1, "description": "Compile Time Parser Generator is a C++ single header library which takes a language description as a C++ code and turns it into a LR1 table parser with a deterministic finite automaton lexical analyzer, all in compile time.", "homepage": "https://github.com/peter-winter/ctpg", "license": "MIT", diff --git a/versions/baseline.json b/versions/baseline.json index 5900360cf31edf..f1fe6967e63f38 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -1798,7 +1798,7 @@ }, "ctpg": { "baseline": "1.3.7", - "port-version": 0 + "port-version": 1 }, "ctre": { "baseline": "3.7.1", diff --git a/versions/c-/ctpg.json b/versions/c-/ctpg.json index fe68275b5f2c1f..25c8f90ef3cea5 100644 --- a/versions/c-/ctpg.json +++ b/versions/c-/ctpg.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "3cbcbbd2011b26de3ddec2aca13ee915c838021a", + "version": "1.3.7", + "port-version": 1 + }, { "git-tree": "3a1f2a1050353e56b539e4bd98b40853ca6b59ed", "version": "1.3.7",