media-fonts/source-han-sans: *.otf does not exist
authornamcap <maweiqingorama@gmail.com>
Mon, 27 Jun 2016 15:52:52 +0000 (23:52 +0800)
committerPatrice Clement <monsieurp@gentoo.org>
Tue, 28 Jun 2016 13:30:32 +0000 (13:30 +0000)
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>
media-fonts/source-han-sans/source-han-sans-1.001.ebuild

index 34828dcea144cec8a50c9271108fdc8f5decc596..435227ce34a4b39ee1a9a65eb3caf30ba8d922d5 100644 (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
 }