hunspell-fr_FR: depends on bdic layout

This commit is contained in:
Đoàn Trần Công Danh 2024-04-18 07:42:41 +07:00
parent 9aaffe3f95
commit bfbde254bb

View file

@ -1,8 +1,7 @@
# Template file for 'hunspell-fr_FR' # Template file for 'hunspell-fr_FR'
pkgname=hunspell-fr_FR pkgname=hunspell-fr_FR
version=7.0 version=7.0
revision=3 revision=4
hostmakedepends="unzip"
short_desc="French dictionary for hunspell" short_desc="French dictionary for hunspell"
maintainer="Leah Neukirchen <leah@vuxu.org>" maintainer="Leah Neukirchen <leah@vuxu.org>"
license="MPL-1.1" license="MPL-1.1"
@ -14,16 +13,17 @@ checksum=eb7ac36dc14b9c3e3c0cabae0f90304a137da8e6ae607bcaf56d65720fbd097f
build_options="bdic" build_options="bdic"
desc_option_bdic="Enable Chromium's bdic format" desc_option_bdic="Enable Chromium's bdic format"
case "$XBPS_MACHINE" in if [ "$XBPS_WORDSIZE" = 64 ]; then
x86_64*) hostmakedepends=" qt6-webengine"
hostmakedepends+=" qt6-webengine" build_options_default="bdic"
build_options_default="bdic" else
;; case "$XBPS_MACHINE" in
i686*) i686*)
hostmakedepends+=" qt5-webengine" hostmakedepends=" qt5-webengine"
build_options_default="bdic" build_options_default="bdic"
;; ;;
esac esac
fi
if [ "$build_option_bdic" ]; then if [ "$build_option_bdic" ]; then
depends="libreoffice-qtwebengine-dict" depends="libreoffice-qtwebengine-dict"
@ -68,6 +68,9 @@ do_install() {
hunspell-fr_FR-reforme1990_package() { hunspell-fr_FR-reforme1990_package() {
short_desc+=" - Reforme 1990 Variant" short_desc+=" - Reforme 1990 Variant"
if [ "$build_option_bdic" ]; then
depends="libreoffice-qtwebengine-dict"
fi
provides="${sourcepkg}-${version}_${revision}" provides="${sourcepkg}-${version}_${revision}"
replaces="${sourcepkg}>=0" replaces="${sourcepkg}>=0"
pkg_install() { pkg_install() {
@ -78,6 +81,9 @@ hunspell-fr_FR-reforme1990_package() {
hunspell-fr_FR-toutesvariantes_package() { hunspell-fr_FR-toutesvariantes_package() {
short_desc+=" - All variant in one file" short_desc+=" - All variant in one file"
if [ "$build_option_bdic" ]; then
depends="libreoffice-qtwebengine-dict"
fi
provides="${sourcepkg}-${version}_${revision}" provides="${sourcepkg}-${version}_${revision}"
replaces="${sourcepkg}>=0" replaces="${sourcepkg}>=0"
pkg_install() { pkg_install() {