Skip to content

Commit 94eecab

Browse files
committed
BLD: Update text shaping libraries to latest versions
1 parent 4a2be84 commit 94eecab

File tree

7 files changed

+61
-39
lines changed

7 files changed

+61
-39
lines changed

extern/meson.build

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,25 +31,31 @@ else
3131
endif
3232

3333
if get_option('system-libraqm')
34-
libraqm_dep = dependency('raqm', version: '>=0.10.2')
34+
libraqm_dep = dependency('raqm', version: '>=0.10.3')
3535
else
36-
LOCAL_LIBRAQM_VERSION = '0.10.2'
37-
3836
subproject('harfbuzz',
3937
default_options: [
4038
'default_library=static',
39+
'cairo=disabled',
40+
'coretext=disabled',
41+
'directwrite=disabled',
42+
'fontations=disabled',
4143
'freetype=enabled',
44+
'gdi=disabled',
4245
'glib=disabled',
4346
'gobject=disabled',
44-
'cairo=disabled',
47+
'harfruzz=disabled',
4548
'icu=disabled',
4649
'tests=disabled',
4750
]
4851
)
4952
subproject('sheenbidi', default_options: ['default_library=static'])
50-
libraqm_proj = subproject(
51-
f'libraqm-@LOCAL_LIBRAQM_VERSION@',
52-
default_options: ['default_library=static', 'sheenbidi=true'])
53+
libraqm_proj = subproject('libraqm-0.10.3',
54+
default_options: [
55+
'default_library=static',
56+
'sheenbidi=true',
57+
]
58+
)
5359
libraqm_dep = libraqm_proj.get_variable('libraqm_dep')
5460
endif
5561

subprojects/harfbuzz.wrap

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
[wrap-file]
2-
directory = harfbuzz-11.2.0
3-
source_url = https://github.com/harfbuzz/harfbuzz/releases/download/11.2.0/harfbuzz-11.2.0.tar.xz
4-
source_filename = harfbuzz-11.2.0.tar.xz
5-
source_hash = 50f7d0a208367e606dbf6eecc5cfbecc01a47be6ee837ae7aff2787e24b09b45
2+
directory = harfbuzz-11.2.1
3+
source_url = https://github.com/harfbuzz/harfbuzz/releases/download/11.2.1/harfbuzz-11.2.1.tar.xz
4+
source_filename = harfbuzz-11.2.1.tar.xz
5+
source_hash = 093714c8548a285094685f0bdc999e202d666b59eeb3df2ff921ab68b8336a49
6+
source_fallback_url = https://github.com/mesonbuild/wrapdb/releases/download/harfbuzz_11.2.1-1/harfbuzz-11.2.1.tar.xz
7+
wrapdb_version = 11.2.1-1
68

79
# This patch allows using our bundled FreeType.
810
diff_files = harfbuzz-11.2.0-bundle-freetype.patch
11+
12+
[provide]
13+
dependency_names = harfbuzz, harfbuzz-cairo, harfbuzz-gobject, harfbuzz-icu, harfbuzz-subset

subprojects/libraqm-0.10.2.wrap

Lines changed: 0 additions & 10 deletions
This file was deleted.

subprojects/libraqm-0.10.3.wrap

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[wrap-file]
2+
source_url = https://github.com/HOST-Oman/libraqm/archive/v0.10.3/libraqm-0.10.3.tar.gz
3+
source_filename = libraqm-0.10.3.tar.gz
4+
source_hash = fe1fe28b32f97ef97b325ca5d2defb0704da1ef048372ec20e85e1f587e20965
5+
6+
# First patch allows using our bundled FreeType.
7+
# Second patch is for use as a subproject https://github.com/HOST-Oman/libraqm/pull/203
8+
diff_files = libraqm-0.10.2-bundle-freetype.patch, libraqm-203.patch

subprojects/packagefiles/libraqm-0.10.2-bundle-freetype.patch

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,3 @@
99
fallback: ['freetype2', 'freetype_dep'],
1010
default_options: [
1111
'png=disabled',
12-
--- a/src/meson.build 2025-03-26 03:59:08.651929905 -0400
13-
+++ b/src/meson.build 2025-03-26 04:00:09.537615893 -0400
14-
@@ -42,6 +42,11 @@
15-
install: true,
16-
)
17-
18-
+libraqm_dep = declare_dependency(
19-
+ include_directories: include_directories('.'),
20-
+ link_with: libraqm,
21-
+)
22-
+
23-
libraqm_test = static_library(
24-
'raqm-test',
25-
'raqm.c',
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
From 8cedfc989998bb2cf23c2c1b40802effad72b0ed Mon Sep 17 00:00:00 2001
2+
From: Elliott Sales de Andrade <[email protected]>
3+
Date: Thu, 7 Aug 2025 18:07:15 -0400
4+
Subject: [PATCH] Add dependency override for use as a subproject
5+
6+
---
7+
src/meson.build | 7 +++++++
8+
1 file changed, 7 insertions(+)
9+
10+
diff --git a/src/meson.build b/src/meson.build
11+
index 0a32f832..ca7c13d1 100644
12+
--- a/src/meson.build
13+
+++ b/src/meson.build
14+
@@ -42,6 +42,13 @@ libraqm = library(
15+
install: true,
16+
)
17+
18+
+libraqm_dep = declare_dependency(
19+
+ include_directories: include_directories('.'),
20+
+ link_with: libraqm,
21+
+)
22+
+
23+
+meson.override_dependency(meson.project_name(), libraqm_dep)
24+
+
25+
libraqm_test = static_library(
26+
'raqm-test',
27+
'raqm.c',

subprojects/sheenbidi.wrap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[wrap-file]
2-
directory = SheenBidi-2.8
3-
source_url = https://github.com/Tehreer/SheenBidi/archive/refs/tags/v2.8/sheenbidi-2.8.tar.gz
4-
source_filename = sheenbidi-2.8.tar.gz
5-
source_hash = 6f27d5f347447f593bde573e4cb477925f7ed96afa4f936e7852803e1ddf3fea
2+
directory = SheenBidi-2.9.0
3+
source_url = https://github.com/Tehreer/SheenBidi/archive/refs/tags/v2.9.0/sheenbidi-2.9.0.tar.gz
4+
source_filename = sheenbidi-2.9.0.tar.gz
5+
source_hash = e90ae142c6fc8b94366f3526f84b349a2c10137f87093db402fe51f6eace6d13

0 commit comments

Comments
 (0)