The directory containing the .otf files should be "${S}/source-han-sans-zh_TW-1.001", for example, instead of "${S}/source-han-sans-zh-TW-1.001" (zh_TW instead of zh-TW).
Closes: https://github.com/gentoo/gentoo/pull/1771
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
src_install() {
for l in ja ko zh-CN zh-TW; do
- use l10n_${l} && FONT_S="${S}/source-han-sans-${l}-${PV}" font_src_install
+ use l10n_${l} && FONT_S="${S}/source-han-sans-${l//-/_}-${PV}" font_src_install
done
dodoc source-han-sans-*-${PV}/*md source-han-sans-*-${PV}/*pdf
}