1 # Copyright 1999-2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 DESCRIPTION="Fcitx 5 Pinyin Dictionary from zh.moegirl.org.cn"
7 HOMEPAGE="https://github.com/outloudvi/mw2fcitx"
9 fcitx? ( https://github.com/outloudvi/mw2fcitx/releases/download/${PV}/moegirl.dict -> ${P}.dict )
10 rime? ( https://github.com/outloudvi/mw2fcitx/releases/download/${PV}/moegirl.dict.yaml -> ${P}.dict.yaml )
15 LICENSE="Unlicense CC-BY-NC-SA-3.0"
17 KEYWORDS="~amd64 ~mips ~x86"
19 REQUIRED_USE="|| ( fcitx rime )"
22 fcitx? ( app-i18n/fcitx:5 )
23 rime? ( || ( app-i18n/ibus-rime app-i18n/fcitx-rime ) )
24 !app-dicts/fcitx-pinyin-moegirl
29 DICT_PATH="/usr/share/fcitx5/pinyin/dictionaries"
30 insinto "${DICT_PATH}"
31 newins "${P}.dict" moegirl.dict
32 fperms 0644 "${DICT_PATH}/moegirl.dict"
36 DICT_PATH="/usr/share/rime-data"
37 insinto "${DICT_PATH}"
38 newins "${P}.dict.yaml" moegirl.dict.yaml
39 fperms 0644 "${DICT_PATH}/moegirl.dict.yaml"