1 # Copyright 2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION
="A Noto-based font for traditional Chinese characters"
9 HOMEPAGE
="https://github.com/GuiWonder/Shanggu"
14 mono? ( https://github.com/GuiWonder/${MY_PN}/releases/download/${PV}/${MY_PN}MonoTTFs.7z -> ${MY_PN}Mono-${PV}.7z )
15 round? ( https://github.com/GuiWonder/${MY_PN}/releases/download/${PV}/${MY_PN}RoundTTFs.7z -> ${MY_PN}Round-${PV}.7z )
16 sans? ( https://github.com/GuiWonder/${MY_PN}/releases/download/${PV}/${MY_PN}SansTTFs.7z -> ${MY_PN}Sans-${PV}.7z )
17 serif? ( https://github.com/GuiWonder/${MY_PN}/releases/download/${PV}/${MY_PN}SerifTTFs.7z -> ${MY_PN}Serif-${PV}.7z )
24 IUSE
="round sans +serif mono"
25 REQUIRED_USE
="|| ( round sans serif mono )"
29 FONT_CONF
=( "${FILESDIR}/70-shanggu.conf" )
34 use mono
&& unpack_7z
"${MY_PN}Mono-${PV}.7z"
35 use round
&& unpack_7z
"${MY_PN}Round-${PV}.7z"
36 use sans
&& unpack_7z
"${MY_PN}Sans-${PV}.7z"
37 use serif
&& unpack_7z
"${MY_PN}Serif-${PV}.7z"
46 "${S}/${MY_PN}SerifFANTI"
47 "${S}/${MY_PN}SerifJP"
48 "${S}/${MY_PN}SerifSC"
49 "${S}/${MY_PN}SerifTC"
56 "${S}/${MY_PN}SansFANTI"
75 "${S}/${MY_PN}RoundFANTI"
76 "${S}/${MY_PN}RoundJP"
77 "${S}/${MY_PN}RoundSC"
78 "${S}/${MY_PN}RoundTC"