forked from tastytea/overlay
media-fonts/source-han-sans: add 2.004
Signed-off-by: Ronny (tastytea) Gutbrod <gentoo@tastytea.de>
This commit is contained in:
parent
32fe74c483
commit
083d553051
5
media-fonts/source-han-sans/Manifest
Normal file
5
media-fonts/source-han-sans/Manifest
Normal file
|
@ -0,0 +1,5 @@
|
|||
DIST source-han-sans-ja-2.004.zip 27141614 BLAKE2B f8bff9e69a50d4fd0fb62a7a37f155b6bc7276968d22afd0970d26cc723873d44a21a506a91cee1e3fd51d03da1f5b1053e57743fc12d9c458adf8214d0e6bf2 SHA512 37028a147b53e7da7cc9cca1ced6bf056bba79a290550c2ab4edf8fac1ebebba3fd227402f9517302a2402a643fcbc9c27d7d9e7af4f704cee3164c67f40c2ef
|
||||
DIST source-han-sans-ko-2.004.zip 26037379 BLAKE2B 3c0d086b1679866efccd500d90fc3a843d7c0a541bc0dabeb103fc2e91a45f0083fc326fdd3e2c4a7036873a0429f0ca739225fe6de0c717cb4eb376a8a7a3cc SHA512 232e2c805d05c604e3d23c0ec52567eb4c40f095a01267e9f2a51959e445f9d1d551ddd41834215d4eea004e577d25a71e80cc99f57101acd8a8291b7fe90dde
|
||||
DIST source-han-sans-zh_CN-2.004.zip 50079275 BLAKE2B 141e213d461398259436626ff82bf02236d53459c2231f8294c5d1f18d407b3a4a6534732af8c7040548a8a4cab01697b6cebbd7e182b485015ca636f7f42f49 SHA512 eb846122e02c4b93c1b44606a9e51c6d4d4275ee64832e8b3d53c624c7d6d24c49269986049c8b672cd9e8afbdb7bcafc8327d95145ed061f00f3129287798b5
|
||||
DIST source-han-sans-zh_HK-2.004.zip 34196478 BLAKE2B d1fd7b1be90a30420764084d9e4f256a328220ab86a828174133e81fa9e941093950ccc566116b1263105d990b13141062e031078002f02e4509f2358d958185 SHA512 82bb31117454b1bcbe17f4a1aa8a9cfacba5483df9da2ee08717f32d3dbf3188992e5ef34a51567e6b154769ef9962aa00d9794bbf7733f30355342805c3dd8d
|
||||
DIST source-han-sans-zh_TW-2.004.zip 34140813 BLAKE2B cd14b9f71e7986873211d2aa93eba4cfc24c63152111c8944fc2bf3ab0ad89aa72dab445bda71cabfd4cc42f6f17d9c207a9dbaa7b30a82d6c079da2cf1cb8bc SHA512 ffc091f55a6ccb745772ba6af314a6c0a8c533d396803852bbffa17b42bdaa05cf4eabac6afece5d03c36c6eaded2ee30a7d5fed42668374cb648d249279f395
|
39
media-fonts/source-han-sans/source-han-sans-2.004.ebuild
Normal file
39
media-fonts/source-han-sans/source-han-sans-2.004.ebuild
Normal file
|
@ -0,0 +1,39 @@
|
|||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit font
|
||||
|
||||
# Note to maintainers:
|
||||
# The upstream tarball is huge (over 780 MB), so we use the
|
||||
# regional subset OTF fonts per region, for the user's convenience.
|
||||
|
||||
DESCRIPTION="Pan-CJK OpenType/CFF font family"
|
||||
HOMEPAGE="https://github.com/adobe-fonts/source-han-sans/"
|
||||
SRC_URI="
|
||||
l10n_ja? ( https://github.com/adobe-fonts/${PN}/releases/download/${PV}R/SourceHanSansJP.zip -> ${PN}-ja-${PV}.zip )
|
||||
l10n_ko? ( https://github.com/adobe-fonts/${PN}/releases/download/${PV}R/SourceHanSansKR.zip -> ${PN}-ko-${PV}.zip )
|
||||
l10n_zh-CN? ( https://github.com/adobe-fonts/${PN}/releases/download/${PV}R/SourceHanSansCN.zip -> ${PN}-zh_CN-${PV}.zip )
|
||||
l10n_zh-HK? ( https://github.com/adobe-fonts/${PN}/releases/download/${PV}R/SourceHanSansHK.zip -> ${PN}-zh_HK-${PV}.zip )
|
||||
l10n_zh-TW? ( https://github.com/adobe-fonts/${PN}/releases/download/${PV}R/SourceHanSansTW.zip -> ${PN}-zh_TW-${PV}.zip )"
|
||||
S="${WORKDIR}"
|
||||
|
||||
LICENSE="OFL-1.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-macos"
|
||||
IUSE="l10n_ja l10n_ko +l10n_zh-CN l10n_zh-HK l10n_zh-TW"
|
||||
REQUIRED_USE="|| ( l10n_ja l10n_ko l10n_zh-CN l10n_zh-HK l10n_zh-TW )"
|
||||
RESTRICT="binchecks strip"
|
||||
|
||||
FONT_SUFFIX="otf"
|
||||
|
||||
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-HK && FONT_S="${S}/SubsetOTF/HK" font_src_install
|
||||
use l10n_zh-TW && FONT_S="${S}/SubsetOTF/TW" font_src_install
|
||||
}
|
Loading…
Reference in New Issue
Block a user