From cfcb3c761a39c9eeae3a60c795bfb8289ba6eac0 Mon Sep 17 00:00:00 2001 From: Benjamin Oldenburg Date: Thu, 5 May 2022 15:14:26 -0700 Subject: [PATCH] [libunibreak] Fixed missing definition of variable in config.cmake (#24476) * Updated libunibreak and added config.cmake file * Updated version * Updated the manifest file * updated git-tree * Remove vcpkg-cmake-config dependency * updated version * Fix issue with libunibreak-config.cmake.in * updated git-tree * increased port-version * updated git-tree Co-authored-by: Benjamin Oldenburg --- ports/libunibreak/libunibreak-config.cmake.in | 8 ++++++++ ports/libunibreak/vcpkg.json | 1 + versions/baseline.json | 2 +- versions/l-/libunibreak.json | 5 +++++ 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/ports/libunibreak/libunibreak-config.cmake.in b/ports/libunibreak/libunibreak-config.cmake.in index 3c217318c0f..0a4746360e3 100644 --- a/ports/libunibreak/libunibreak-config.cmake.in +++ b/ports/libunibreak/libunibreak-config.cmake.in @@ -6,6 +6,14 @@ if(TARGET libunibreak) return() endif() +# Compute the installation prefix relative to this file. +get_filename_component(_INSTALL_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) +get_filename_component(_INSTALL_DIR "${_INSTALL_DIR}" PATH) +get_filename_component(_INSTALL_DIR "${_INSTALL_DIR}" PATH) +if(_INSTALL_DIR STREQUAL "/") + set(_INSTALL_DIR "") +endif() + add_library(unibreak INTERFACE IMPORTED GLOBAL) add_library(libunibreak::libunibreak ALIAS unibreak) diff --git a/ports/libunibreak/vcpkg.json b/ports/libunibreak/vcpkg.json index 7e2a8dd328f..3c4a6f438eb 100644 --- a/ports/libunibreak/vcpkg.json +++ b/ports/libunibreak/vcpkg.json @@ -1,6 +1,7 @@ { "name": "libunibreak", "version": "5.0", + "port-version": 1, "description": "an implementation of the line breaking and word breaking algorithms as described in [Unicode Standard Annex 14] 1 and [Unicode Standard Annex 29] 2. Check the project's [home page] 3 for up-to-date information.", "homepage": "https://github.com/adah1972/libunibreak", "license": "zlib-acknowledgement", diff --git a/versions/baseline.json b/versions/baseline.json index 27f14e50ba0..30bc6b0055a 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -4114,7 +4114,7 @@ }, "libunibreak": { "baseline": "5.0", - "port-version": 0 + "port-version": 1 }, "libunifex": { "baseline": "2021-12-07", diff --git a/versions/l-/libunibreak.json b/versions/l-/libunibreak.json index 9250855dc31..364e54e6a65 100644 --- a/versions/l-/libunibreak.json +++ b/versions/l-/libunibreak.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "724f588851a5f81f6ddd8eb1fc01a45bedfa5517", + "version": "5.0", + "port-version": 1 + }, { "git-tree": "ab89a270477d6d97e3d70c4503ee573f1ca8e539", "version": "5.0",