media-fonts/source-han-serif - 2.003 (guru)

Search

Install

Install this version:

emerge -a =media-fonts/source-han-serif-2.003

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =media-fonts/source-han-serif-2.003

Or alternatively:

emerge --autounmask-write -a =media-fonts/source-han-serif-2.003

Package Information

Description:
Pan-CJK OpenType/CFF font family
Homepage:
https://github.com/adobe-fonts/source-han-serif/
License:
OFL-1.1

Ebuild Details

Version EAPI Keywords Slot
2.003 8 ~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86 ~x64-macos 0
View Raw Ebuild
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit font

# NOTE: There is a zh_HK version, but to use that zh_HK has to be added to
#       profiles/desc/l10n.desc in ::gentoo, as far as i'm aware.

DESCRIPTION="Pan-CJK OpenType/CFF font family"
HOMEPAGE="https://github.com/adobe-fonts/source-han-serif/"
SRC_URI="
	l10n_ja? ( https://github.com/adobe-fonts/${PN}/releases/download/${PV}R/12_SourceHanSerifJP.zip -> ${PN}-ja-${PV}.zip )
	l10n_ko? ( https://github.com/adobe-fonts/${PN}/releases/download/${PV}R/13_SourceHanSerifKR.zip -> ${PN}-ko-${PV}.zip )
	l10n_zh-CN? ( https://github.com/adobe-fonts/${PN}/releases/download/${PV}R/14_SourceHanSerifCN.zip -> ${PN}-zh_CN-${PV}.zip )
	l10n_zh-TW? ( https://github.com/adobe-fonts/${PN}/releases/download/${PV}R/15_SourceHanSerifTW.zip -> ${PN}-zh_TW-${PV}.zip )
"
S=${WORKDIR}

LICENSE="OFL-1.1"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86 ~x64-macos"
IUSE="l10n_ja l10n_ko +l10n_zh-CN l10n_zh-TW"
REQUIRED_USE="|| ( l10n_ja l10n_ko l10n_zh-CN l10n_zh-TW )"

FONT_SUFFIX="otf"
RESTRICT="binchecks strip"

BDEPEND="app-arch/unzip"

src_install() {
	use l10n_ja && FONT_S="${S}/SubsetOTF/JP" font_src_install
	use l10n_ko && FONT_S="${S}/SubsetOTF/KR" font_src_install
	use l10n_zh-CN && FONT_S="${S}/SubsetOTF/CN" font_src_install
	use l10n_zh-TW && FONT_S="${S}/SubsetOTF/TW" font_src_install
}

USE Flags

Manage flags for this package: euse -i <flag> -p media-fonts/source-han-serif | euse -E <flag> -p media-fonts/source-han-serif | euse -D <flag> -p media-fonts/source-han-serif

Global/Standard Flags

l10n_zh-CN
Default: Enabled (+)

Inherited Eclasses

Dependencies

BDEPEND

app-arch/unzip

Manifest for 2.003

Type File Size Source URLs
DIST source-han-serif-ja-2.003.zip 36831708 bytes https://github.com/adobe-fonts/source-han-serif/releases/download/2.003R/12_SourceHanSerifJP.zip
DIST source-han-serif-ko-2.003.zip 39752343 bytes https://github.com/adobe-fonts/source-han-serif/releases/download/2.003R/13_SourceHanSerifKR.zip
DIST source-han-serif-zh_CN-2.003.zip 68961106 bytes https://github.com/adobe-fonts/source-han-serif/releases/download/2.003R/14_SourceHanSerifCN.zip
DIST source-han-serif-zh_TW-2.003.zip 47264165 bytes https://github.com/adobe-fonts/source-han-serif/releases/download/2.003R/15_SourceHanSerifTW.zip