gspell: 1.13.1 → 1.14.0
https://gitlab.gnome.org/GNOME/gspell/-/compare/1.13.1...1.14.0 Changelog-reviewed-by: Bobby Rong <rjl931189261@126.com>
This commit is contained in:
@@ -1,49 +0,0 @@
|
||||
From 339866ba796d6646f28a826b8c5f335b7b07182a Mon Sep 17 00:00:00 2001
|
||||
From: Bobby Rong <rjl931189261@126.com>
|
||||
Date: Thu, 5 Sep 2024 23:13:37 +0800
|
||||
Subject: [PATCH] build: Fix darwin build
|
||||
|
||||
Fixes "unknown type name 'NSString'" and "undefined symbols for architecture
|
||||
arm64 __gspell_osx_get_preferred_spell_language" on darwin by restoring
|
||||
https://gitlab.gnome.org/GNOME/gspell/-/blob/1.12.2/gspell/Makefile.am#L148-L161.
|
||||
---
|
||||
gspell/meson.build | 16 +++++++++++++---
|
||||
1 file changed, 13 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/gspell/meson.build b/gspell/meson.build
|
||||
index c5156a0..60a1271 100644
|
||||
--- a/gspell/meson.build
|
||||
+++ b/gspell/meson.build
|
||||
@@ -57,6 +57,17 @@ gspell_private_c_files = [
|
||||
'gspell-utils.c',
|
||||
]
|
||||
|
||||
+gspell_static_lib_c_args = ['-DGSPELL_COMPILATION']
|
||||
+gspell_static_lib_link_args = []
|
||||
+
|
||||
+if host_machine.system() == 'darwin'
|
||||
+ GSPELL_PRIVATE_HEADERS += ['gspell-osx.h']
|
||||
+ gspell_private_c_files += ['gspell-osx.c']
|
||||
+
|
||||
+ gspell_static_lib_c_args += ['-xobjective-c']
|
||||
+ gspell_static_lib_link_args += ['-framework', 'Cocoa']
|
||||
+endif
|
||||
+
|
||||
headers_install_dir = get_option('includedir') / '@0@-@1@/gspell/'.format(meson.project_name(), GSPELL_API_VERSION)
|
||||
install_headers(
|
||||
gspell_public_headers,
|
||||
@@ -81,9 +92,8 @@ gspell_static_lib = static_library(
|
||||
pic: true, # gspell_static_lib is linked in a shared library.
|
||||
include_directories: ROOT_INCLUDE_DIR,
|
||||
dependencies: GSPELL_DEPS,
|
||||
- c_args: [
|
||||
- '-DGSPELL_COMPILATION',
|
||||
- ],
|
||||
+ c_args: gspell_static_lib_c_args,
|
||||
+ link_args: gspell_static_lib_link_args,
|
||||
)
|
||||
|
||||
# For unit tests, to be able to test private functions.
|
||||
--
|
||||
GitLab
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gspell";
|
||||
version = "1.13.1";
|
||||
version = "1.14.0";
|
||||
|
||||
outputs = [
|
||||
"out"
|
||||
@@ -31,14 +31,9 @@ stdenv.mkDerivation rec {
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||
sha256 = "zO1F6Ykro1wxuaEdYqnhVC5d/Wj3+zfDNbp0SfIM1hU=";
|
||||
sha256 = "ZOodjp7cHCW0WpIOgNr2dVnRhm/81/hDL+z+ptD+iJc=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# https://gitlab.gnome.org/GNOME/gspell/-/merge_requests/10
|
||||
./0001-Darwin-build-fix.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
docbook-xsl-nons
|
||||
glib # glib-mkenums
|
||||
|
||||
Reference in New Issue
Block a user