SHA256
1
0
forked from pool/libunicode

8 Commits

Author SHA256 Message Date
4b2376f0a5 Accepting request 1201880 from X11:terminals
OBS-URL: https://build.opensuse.org/request/show/1201880
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libunicode?expand=0&rev=4
2024-09-19 19:17:24 +00:00
Muhammad Akbar Yanuar Mantari
517b7a7be9 - 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

OBS-URL: https://build.opensuse.org/package/show/X11:terminals/libunicode?expand=0&rev=8
2024-09-18 22:22:23 +00:00
36036d1784 Accepting request 1194266 from X11:terminals
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1194266
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libunicode?expand=0&rev=3
2024-08-16 10:26:08 +00:00
afb2f6b00e Accepting request 1189405 from X11:terminals
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1189405
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libunicode?expand=0&rev=2
2024-07-25 13:39:09 +00:00
Muhammad Akbar Yanuar Mantari
7be86e1b36 Accepting request 1188187 from home:mantarimay:branches:X11:terminals
- Update to version 0.4.0
  * Allow passing custom LIBUNICODE_UCD_DIR to cmake
  * Fix error handling of UTF-8 decoding for incomplete UTF-8
    sequences
  * Improve naming convention to be more streamlined.
  * Move scan_result.next to scan_state.next
  * Problem: Catch2 is always required
  * Update catch2 to v3
  * Allow building with older CMake < 3.18
- change Catch2-2-devel BuildRequires to cmake(Catch2)
- disable build test: failed unicode_test
- remove eb40101359cb283be0b736f6bda383243522fa91.patch: unneeded
  patch
- add libunicode-fix-catch-in-cmake.patch: to fix catch issue

OBS-URL: https://build.opensuse.org/request/show/1188187
OBS-URL: https://build.opensuse.org/package/show/X11:terminals/libunicode?expand=0&rev=4
2024-07-17 13:00:45 +00:00
dfde4b9c28 Accepting request 1124824 from X11:terminals
BuildRequires for contour-terminal

OBS-URL: https://build.opensuse.org/request/show/1124824
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libunicode?expand=0&rev=1
2023-11-13 21:17:53 +00:00
Muhammad Akbar Yanuar Mantari
397e97a396 Accepting request 1124818 from home:mantarimay:branches:X11:terminals
fix naming patching

OBS-URL: https://build.opensuse.org/request/show/1124818
OBS-URL: https://build.opensuse.org/package/show/X11:terminals/libunicode?expand=0&rev=2
2023-11-10 09:09:31 +00:00
73969726fb Accepting request 1117919 from home:mantarimay:apps
BuildRequires for contour-terminal

OBS-URL: https://build.opensuse.org/request/show/1117919
OBS-URL: https://build.opensuse.org/package/show/X11:terminals/libunicode?expand=0&rev=1
2023-11-09 13:43:12 +00:00
7 changed files with 23 additions and 58 deletions

View File

@@ -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 "------------------------------------------------------------------------------")

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ddc44bc29c9f3e0001ab84facec250f57f5219dd9f9eca3811aa04293087b1ef
size 88746

View File

@@ -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
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ae9919aaa83d7d16b799bbe2b6d8300bb10275d05e6ab5590daa643dd7b46851
size 92443

View File

@@ -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)

View File

@@ -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>

View File

@@ -22,13 +22,12 @@
%define sover %{ver}.%{mayor}
%define force_gcc_version 13
Name: libunicode
Version: 0.4.0
Version: 0.5.0
Release: 0
Summary: Modern C++17 Unicode library
License: Apache-2.0
URL: https://github.com/contour-terminal/libunicode
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0: libunicode-fix-catch-in-cmake.patch
BuildRequires: ccache
BuildRequires: cmake
BuildRequires: fmt-devel