app-i18n/rime-data: fix rime-cantonese missing author files.

We should need to check if the documentation file exists before installing it

Closes: https://bugs.gentoo.org/946467
Signed-off-by: Yongxiang Liang <tanekliang@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/39712
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Yongxiang Liang
2024-12-14 23:52:13 +08:00
committed by Sam James
parent 047fe21fd7
commit 737aea9fba

View File

@@ -72,7 +72,9 @@ src_install() {
for pkg in "${!LIST[@]}"; do
doins "${pkg}-${LIST[$pkg]}"/*[!AUTHORS\|LICENSE\|README.md\|check.py]
for f in AUTHORS LICENSE README.md; do
newdoc "${pkg}-${LIST[$pkg]}/${f}" "${pkg}_${f}"
if [ -f "${pkg}-${LIST[$pkg]}/${f}" ]; then
newdoc "${pkg}-${LIST[$pkg]}/${f}" "${pkg}_${f}"
fi
done
done
}