From 740ddbf0c278f8557294be928efe11ac360258c8 Mon Sep 17 00:00:00 2001 From: Nathan Owens Date: Sun, 5 Jan 2020 19:40:02 -0600 Subject: [PATCH] hunspell: change openoffice search path to libreoffice Signed-off-by: Nathan Owens --- srcpkgs/hunspell/patches/search_path.patch | 34 ++++++++++++++++++++++ srcpkgs/hunspell/template | 4 +-- 2 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/hunspell/patches/search_path.patch diff --git a/srcpkgs/hunspell/patches/search_path.patch b/srcpkgs/hunspell/patches/search_path.patch new file mode 100644 index 00000000000..24608654b32 --- /dev/null +++ b/srcpkgs/hunspell/patches/search_path.patch @@ -0,0 +1,34 @@ +diff --git src/tools/hunspell.cxx src/tools/hunspell.cxx +index 690e34a..d9b094d 100644 +--- src/tools/hunspell.cxx ++++ src/tools/hunspell.cxx +@@ -119,25 +119,11 @@ + "/usr/share/hunspell:" \ + "/usr/share/myspell:" \ + "/usr/share/myspell/dicts:" \ +- "/Library/Spelling" +-#define USEROOODIR { \ +- ".openoffice.org/3/user/wordbook", \ +- ".openoffice.org2/user/wordbook", \ +- ".openoffice.org2.0/user/wordbook",\ +- "Library/Spelling" } ++ "/usr/share/mozilla-dicts" ++#define USEROOODIR { \ ++ ".config/libreoffice/4/user/wordbook" } + #define OOODIR \ +- "/opt/openoffice.org/basis3.0/share/dict/ooo:" \ +- "/usr/lib/openoffice.org/basis3.0/share/dict/ooo:" \ +- "/opt/openoffice.org2.4/share/dict/ooo:" \ +- "/usr/lib/openoffice.org2.4/share/dict/ooo:" \ +- "/opt/openoffice.org2.3/share/dict/ooo:" \ +- "/usr/lib/openoffice.org2.3/share/dict/ooo:" \ +- "/opt/openoffice.org2.2/share/dict/ooo:" \ +- "/usr/lib/openoffice.org2.2/share/dict/ooo:" \ +- "/opt/openoffice.org2.1/share/dict/ooo:" \ +- "/usr/lib/openoffice.org2.1/share/dict/ooo:" \ +- "/opt/openoffice.org2.0/share/dict/ooo:" \ +- "/usr/lib/openoffice.org2.0/share/dict/ooo" ++ "/usr/lib/libreoffice/share/wordbook" + #define HOME getenv("HOME") + #define DICBASENAME ".hunspell_" + #define LOGFILE "/tmp/hunspell.log" diff --git a/srcpkgs/hunspell/template b/srcpkgs/hunspell/template index 93287db1615..46da84a580e 100644 --- a/srcpkgs/hunspell/template +++ b/srcpkgs/hunspell/template @@ -1,15 +1,15 @@ # Template file for 'hunspell' pkgname=hunspell version=1.7.0 -revision=1 +revision=2 build_style=gnu-configure configure_args="--with-ui" hostmakedepends="automake bison libtool pkg-config" makedepends="ncurses-devel" short_desc="Spell checker and morphological analyzer" maintainer="Orphaned " -homepage="https://hunspell.github.io/" license="GPL-2.0-or-later, LGPL-2.1-or-later, MPL-1.1" +homepage="https://hunspell.github.io/" distfiles="https://github.com/hunspell/hunspell/archive/v${version}.tar.gz" checksum=bb27b86eb910a8285407cf3ca33b62643a02798cf2eef468c0a74f6c3ee6bc8a