media-fonts/source-han-sans: *.otf does not exist

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>
This commit is contained in:
namcap
2016-06-27 23:52:52 +08:00
committed by Patrice Clement
parent 3432419f4f
commit 70d4537182

View File

@@ -28,7 +28,7 @@ RESTRICT="binchecks strip"
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
}