forked from pool/libunicode
Compare commits
8 Commits
Author | SHA256 | Date | |
---|---|---|---|
4b2376f0a5 | |||
|
517b7a7be9 | ||
36036d1784 | |||
afb2f6b00e | |||
|
7be86e1b36 | ||
dfde4b9c28 | |||
|
397e97a396 | ||
73969726fb |
@@ -1,32 +0,0 @@
|
|||||||
From eb40101359cb283be0b736f6bda383243522fa91 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Christian Parpart <christian@parpart.family>
|
|
||||||
Date: Sat, 4 Mar 2023 21:58:41 +0100
|
|
||||||
Subject: [PATCH] Allow passing custom LIBUNICODE_UCD_DIR to cmake (e.g. to
|
|
||||||
`/usr/share/unicode/ucd`)
|
|
||||||
|
|
||||||
Signed-off-by: Christian Parpart <christian@parpart.family>
|
|
||||||
---
|
|
||||||
CMakeLists.txt | 3 +--
|
|
||||||
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
||||||
index e40103d..254b75f 100644
|
|
||||||
--- a/CMakeLists.txt
|
|
||||||
+++ b/CMakeLists.txt
|
|
||||||
@@ -55,7 +55,7 @@ set(LIBUNICODE_UCD_BASE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/_ucd" CACHE PATH "Path
|
|
||||||
|
|
||||||
set(LIBUNICODE_UCD_ZIP_DOWNLOAD_URL "https://www.unicode.org/Public/${LIBUNICODE_UCD_VERSION}/ucd/UCD.zip")
|
|
||||||
set(LIBUNICODE_UCD_ZIP_FILE "${LIBUNICODE_UCD_BASE_DIR}/ucd-${LIBUNICODE_UCD_VERSION}.zip")
|
|
||||||
-set(LIBUNICODE_UCD_DIR "${LIBUNICODE_UCD_BASE_DIR}/ucd-${LIBUNICODE_UCD_VERSION}")
|
|
||||||
+set(LIBUNICODE_UCD_DIR "${LIBUNICODE_UCD_BASE_DIR}/ucd-${LIBUNICODE_UCD_VERSION}" CACHE PATH "Path to UCD directory.")
|
|
||||||
|
|
||||||
# ----------------------------------------------------------------------------
|
|
||||||
# code coverage
|
|
||||||
@@ -96,7 +96,6 @@ message(STATUS "Build mode: ${LIBUNICODE_BUILD_MODE}")
|
|
||||||
message(STATUS "Build unit tests: ${LIBUNICODE_TESTING}")
|
|
||||||
message(STATUS "Build tools: ${LIBUNICODE_TOOLS}")
|
|
||||||
message(STATUS "Using ccache: ${USING_CCACHE_STRING}")
|
|
||||||
-message(STATUS "Using UCD version: ${LIBUNICODE_UCD_VERSION}")
|
|
||||||
message(STATUS "Using UCD directory: ${LIBUNICODE_UCD_DIR}")
|
|
||||||
message(STATUS "Enable clang-tidy: ${ENABLE_TIDY} (${CMAKE_CXX_CLANG_TIDY})")
|
|
||||||
message(STATUS "------------------------------------------------------------------------------")
|
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:ddc44bc29c9f3e0001ab84facec250f57f5219dd9f9eca3811aa04293087b1ef
|
|
||||||
size 88746
|
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:a5c8ba2cd3df539985bfafe43f812de143a56f01e4074e95831a37a13606beda
|
|
||||||
size 89723
|
|
3
libunicode-0.5.0.tar.gz
Normal file
3
libunicode-0.5.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:ae9919aaa83d7d16b799bbe2b6d8300bb10275d05e6ab5590daa643dd7b46851
|
||||||
|
size 92443
|
@@ -1,18 +0,0 @@
|
|||||||
diff -ruN libunicode-0.4.0.orig/src/libunicode/CMakeLists.txt libunicode-0.4.0/src/libunicode/CMakeLists.txt
|
|
||||||
--- libunicode-0.4.0.orig/src/libunicode/CMakeLists.txt 2023-11-28 03:40:54.000000000 +0700
|
|
||||||
+++ libunicode-0.4.0/src/libunicode/CMakeLists.txt 2023-12-21 12:29:29.934925268 +0700
|
|
||||||
@@ -223,10 +223,10 @@
|
|
||||||
# supress conversion warnings for Catch2
|
|
||||||
# https://github.com/catchorg/Catch2/issues/2583
|
|
||||||
# https://github.com/SFML/SFML/blob/e45628e2ebc5843baa3739781276fa85a54d4653/test/CMakeLists.txt#L18-L22
|
|
||||||
- set_target_properties(Catch2 PROPERTIES COMPILE_OPTIONS "" EXPORT_COMPILE_COMMANDS OFF)
|
|
||||||
- set_target_properties(Catch2WithMain PROPERTIES EXPORT_COMPILE_COMMANDS OFF)
|
|
||||||
- get_target_property(CATCH2_INCLUDE_DIRS Catch2 INTERFACE_INCLUDE_DIRECTORIES)
|
|
||||||
- target_include_directories(Catch2 SYSTEM INTERFACE ${CATCH2_INCLUDE_DIRS})
|
|
||||||
+ # (Catch2 PROPERTIES COMPILE_OPTIONS "" EXPORT_COMPILE_COMMANDS OFF)
|
|
||||||
+ # set_target_properties(Catch2WithMain PROPERTIES EXPORT_COMPILE_COMMANDS OFF)
|
|
||||||
+ # get_target_property(CATCH2_INCLUDE_DIRS Catch2 INTERFACE_INCLUDE_DIRECTORIES)
|
|
||||||
+ # target_include_directories(Catch2 SYSTEM INTERFACE ${CATCH2_INCLUDE_DIRS})
|
|
||||||
|
|
||||||
target_link_libraries(unicode_test unicode Catch2::Catch2WithMain fmt::fmt-header-only)
|
|
||||||
add_test(unicode_test unicode_test)
|
|
@@ -1,3 +1,22 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Sep 16 20:42:29 UTC 2024 - Muhammad Akbar Yanuar Mantari <mantarimay@pm.me>
|
||||||
|
|
||||||
|
- Update to version 0.5.0
|
||||||
|
* Fetch dependencies if OS is not supported
|
||||||
|
* Make usage of SIMD (SSE2) extension optional
|
||||||
|
* fix catch2 error when using system catch2
|
||||||
|
* Add benchmark and std::simd
|
||||||
|
* Add CMakePresets to conveniently build and work with the
|
||||||
|
sources
|
||||||
|
* tablegen: Improve performance for names
|
||||||
|
* minor build and .clang-format improvements
|
||||||
|
* add gc and runs sub command to introspect grapheme clusters and
|
||||||
|
* runs
|
||||||
|
* Change width()'s return type from int to unsigned
|
||||||
|
* Tiny fix to benchmark plus minor naming changes
|
||||||
|
* Adds missing include to convert.h
|
||||||
|
- remove libunicode-fix-catch-in-cmake.patch: fix upstream
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Aug 9 09:42:03 UTC 2024 - Muhammad Akbar Yanuar Mantari <mantarimay@pm.me>
|
Fri Aug 9 09:42:03 UTC 2024 - Muhammad Akbar Yanuar Mantari <mantarimay@pm.me>
|
||||||
|
|
||||||
|
@@ -22,13 +22,12 @@
|
|||||||
%define sover %{ver}.%{mayor}
|
%define sover %{ver}.%{mayor}
|
||||||
%define force_gcc_version 13
|
%define force_gcc_version 13
|
||||||
Name: libunicode
|
Name: libunicode
|
||||||
Version: 0.4.0
|
Version: 0.5.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Modern C++17 Unicode library
|
Summary: Modern C++17 Unicode library
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
URL: https://github.com/contour-terminal/libunicode
|
URL: https://github.com/contour-terminal/libunicode
|
||||||
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||||
Patch0: libunicode-fix-catch-in-cmake.patch
|
|
||||||
BuildRequires: ccache
|
BuildRequires: ccache
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: fmt-devel
|
BuildRequires: fmt-devel
|
||||||
|
Reference in New Issue
Block a user