libreoffice: fix hunspell-en_GB virtual dependencies declaration

This commit is contained in:
Đoàn Trần Công Danh 2024-07-09 21:25:08 +07:00
parent 2d018d597d
commit 19d2ff9cd3
2 changed files with 5 additions and 4 deletions

View File

@ -27,7 +27,7 @@ depends="hunspell-af hyphen-af
hunspell-da_DK hyphen-da mythes-da
hunspell-de hyphen-de mythes-de
hunspell-el_GR hyphen-el
hunspell-en hunspell-en_GB hyphen-en mythes-en
hunspell-en virtual?hunspell-en_GB hyphen-en mythes-en
hunspell-eo hyphen-eo mythes-eo
hunspell-es hyphen-es mythes-es
hunspell-et hyphen-et
@ -515,7 +515,7 @@ hyphen-el_package() {
hunspell-en_package() {
short_desc="English dictionary for hunspell"
depends="hunspell-en_GB hunspell-qtwebengine-dict"
depends="virtual?hunspell-en_GB hunspell-qtwebengine-dict"
license="custom:SCOWL, LGPL-2.1-or-later"
provides="hunspell-en_AU-2024_1
hunspell-en_CA-2024_1

View File

@ -222,6 +222,7 @@ _add_lang() {
-H*) tmp=${1#-H}; deps="$deps hyphen-${tmp:-$pkg}" ;;
-m*) tmp=${1#-m}; deps="$deps mythes-${tmp:-$pkg}" ;;
-l*) pkglang=${1#-l} ;;
-vh=*) deps="$deps virtual?hunspell-${1#-vh=}" ;;
*) false ;;
esac; do shift; done
_languages="$_languages ${pkglang//_/-}"
@ -261,9 +262,9 @@ _add_lang dgo "Dogri proper"
_add_lang dsb "Lower Sorbian"
_add_lang dz "Dzongkha"
_add_lang el "Greek" -hel_GR -H
_add_lang en-GB "English (UK)" -len_GB -hen -hen_GB -Hen -men
_add_lang en-GB "English (UK)" -len_GB -hen -vh=en_GB -Hen -men
_add_lang en-US "English (US)" -len_US -hen -Hen -men
_add_lang en-ZA "English (South Africa)" -len_ZA -hen -hen_GB -Hen -men
_add_lang en-ZA "English (South Africa)" -len_ZA -hen -vhen_GB -Hen -men
_add_lang eo "Esperanto" -h -H -m
_add_lang es "Spanish" -h -H -m
_add_lang et "Estonian" -h -H