media-fonts/noto: add 20250401

Signed-off-by: Pacho Ramos <pacho@gentoo.org>
This commit is contained in:
Pacho Ramos
2025-04-12 19:16:36 +02:00
parent cd49d053d8
commit 364b137f85
2 changed files with 43 additions and 0 deletions

View File

@@ -1,2 +1,3 @@
DIST noto-20250201.tar.gz 1086811566 BLAKE2B bd1c3ad5e9add2957026eb6b124d4ce522bec75ac36265de836c369623e6d027d635e5a5282f7cf407af1bf4928fc3fdce28307e8da80f14f9a47dde78b34e69 SHA512 87a555cb89905b85180382313317beea6c0d47b90133fec22321fbc6735f6ddc744daa046ac6d39c782ab439cf0d276a393046f45789aef9ce1ffad81406ebb6
DIST noto-20250301.tar.gz 1086903090 BLAKE2B 3d7b3c792d88b3c0c690bdce08ab4522479aa74aa679e31014bd105e8ae738a721c9cd24799ad079a93369136eff8b39aeec302e5dbf155f6b4646e49b542fc0 SHA512 a399ba5d11a477f629d7f69a3706d48826710679f6c5a0235e115d1fb1214ab72a45695e5ba89faf887f20b14baa6e8c28d1b18ff5a26a0293f049327d474924
DIST noto-20250401.tar.gz 1087019502 BLAKE2B aa5b38883be46e325583f20a23743c9bb3edb8acdf678914f6667b45e8bc4c90fbd87c692a264622ab1d5f4c5bb125d7d74b09a2546ab41d2d02c7b63b23d3b8 SHA512 fcb20acc49f90d509a01bc81c2e14392d2aff02a7dc8c695eeceddb64a3dbe30f6aa7b01c89579327fc54585b3448aae774cc7a78df0cc34f108b86675d7b70a

View File

@@ -0,0 +1,42 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit font
DESCRIPTION="Google's font family that aims to support all the world's languages"
HOMEPAGE="https://fonts.google.com/noto https://github.com/notofonts/notofonts.github.io"
COMMIT="ef3af51eeccb93bd41d098ec310661dfee87c92d"
SRC_URI="https://github.com/notofonts/notofonts.github.io/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/notofonts.github.io-${COMMIT}"
LICENSE="OFL-1.1"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
# Extra allows to optionally reduce disk usage even returning to tofu
# issue as described in https://fonts.google.com/noto
IUSE="cjk +extra"
RDEPEND="cjk? ( media-fonts/noto-cjk )"
RESTRICT="binchecks strip"
FONT_SUFFIX="ttf"
FONT_CONF=(
# From ArchLinux
"${FILESDIR}/66-noto-serif.conf"
"${FILESDIR}/66-noto-mono.conf"
"${FILESDIR}/66-noto-sans.conf"
)
src_install() {
mkdir install-hinted || die
mv fonts/*/hinted/ttf/*.tt[fc] install-hinted/. || die
FONT_S="${S}/install-hinted/" font_src_install
# Allow to drop some fonts optionally for people that want to save
# disk space. Following ArchLinux options.
use extra || rm -rf "${ED}"/usr/share/fonts/noto/Noto*{Condensed,SemiBold,Extra}*.tt[f,c]
}