Diff source-han-sans-1.004 with a source-han-sans-2.004

/usr/portage/media-fonts/source-han-sans/source-han-sans-2.004.ebuild 2023-10-09 14:52:31.612368404 +0300
1 1
# Copyright 1999-2022 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6
inherit font
6
inherit font optfeature
7 7

  
8 8
# Note to maintainers:
9 9
# The upstream tarball is huge (over 780 MB), so we use the
......
12 12
DESCRIPTION="Pan-CJK OpenType/CFF font family"
13 13
HOMEPAGE="https://github.com/adobe-fonts/source-han-sans/"
14 14
SRC_URI="
15
	l10n_ja? ( https://github.com/adobe-fonts/${PN}/raw/${PV}R/SubsetOTF/SourceHanSansJP.zip -> ${PN}-ja-${PV}.zip )
16
	l10n_ko? ( https://github.com/adobe-fonts/${PN}/raw/${PV}R/SubsetOTF/SourceHanSansKR.zip -> ${PN}-ko-${PV}.zip )
17
	l10n_zh-CN? ( https://github.com/adobe-fonts/${PN}/raw/${PV}R/SubsetOTF/SourceHanSansCN.zip -> ${PN}-zh_CN-${PV}.zip )
18
	l10n_zh-TW? ( https://github.com/adobe-fonts/${PN}/raw/${PV}R/SubsetOTF/SourceHanSansTW.zip -> ${PN}-zh_TW-${PV}.zip )"
15
	l10n_ja? ( https://github.com/adobe-fonts/${PN}/releases/download/${PV}R/SourceHanSansJP.zip -> ${PN}-ja-${PV}.zip )
16
	l10n_ko? ( https://github.com/adobe-fonts/${PN}/releases/download/${PV}R/SourceHanSansKR.zip -> ${PN}-ko-${PV}.zip )
17
	l10n_zh-CN? ( https://github.com/adobe-fonts/${PN}/releases/download/${PV}R/SourceHanSansCN.zip -> ${PN}-zh_CN-${PV}.zip )
18
	l10n_zh-HK? ( https://github.com/adobe-fonts/${PN}/releases/download/${PV}R/SourceHanSansHK.zip -> ${PN}-zh_HK-${PV}.zip )
19
	l10n_zh-TW? ( https://github.com/adobe-fonts/${PN}/releases/download/${PV}R/SourceHanSansTW.zip -> ${PN}-zh_TW-${PV}.zip )"
19 20
S="${WORKDIR}"
20 21

  
21
LICENSE="Apache-2.0"
22
LICENSE="OFL-1.1"
22 23
SLOT="0"
23
KEYWORDS="~alpha amd64 arm ~arm64 ~ia64 ~loong ppc ppc64 ~riscv sparc x86 ~x64-macos"
24
IUSE="l10n_ja l10n_ko +l10n_zh-CN l10n_zh-TW"
25
REQUIRED_USE="|| ( l10n_ja l10n_ko l10n_zh-CN l10n_zh-TW )"
24
KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~loong ppc ppc64 ~riscv sparc x86 ~x64-macos"
25
IUSE="l10n_ja l10n_ko +l10n_zh-CN l10n_zh-HK l10n_zh-TW"
26
REQUIRED_USE="|| ( l10n_ja l10n_ko l10n_zh-CN l10n_zh-HK l10n_zh-TW )"
26 27
RESTRICT="binchecks strip"
27 28

  
28 29
FONT_SUFFIX="otf"
......
30 31
BDEPEND="app-arch/unzip"
31 32

  
32 33
src_install() {
33
	use l10n_ja && FONT_S="${S}/SourceHanSansJP" font_src_install
34
	use l10n_ko && FONT_S="${S}/SourceHanSansKR" font_src_install
35
	use l10n_zh-CN && FONT_S="${S}/SourceHanSansCN" font_src_install
36
	use l10n_zh-TW && FONT_S="${S}/SourceHanSansTW" font_src_install
34
	use l10n_ja && FONT_S="${S}/SubsetOTF/JP" font_src_install
35
	use l10n_ko && FONT_S="${S}/SubsetOTF/KR" font_src_install
36
	use l10n_zh-CN && FONT_S="${S}/SubsetOTF/CN" font_src_install
37
	use l10n_zh-HK && FONT_S="${S}/SubsetOTF/HK" font_src_install
38
	use l10n_zh-TW && FONT_S="${S}/SubsetOTF/TW" font_src_install
39
}
40

  
41
pkg_postinst() {
42
	optfeature_header "Other variants of this font are:"
43
	optfeature "the monospace variant" media-fonts/source-code-pro
44
	optfeature "the sans-serif variant" media-fonts/source-sans
45
	optfeature "the serif variant" media-fonts/source-serif
37 46
}
Thank you!