From 04b35f566703f8bb84d52e8d2ff2f0f54c21900b Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 10 Nov 2023 22:34:27 +0000 Subject: gentoo auto-resync : 10:11:2023 - 22:34:26 --- media-fonts/noto/noto-20231031.ebuild | 44 +++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 media-fonts/noto/noto-20231031.ebuild (limited to 'media-fonts/noto/noto-20231031.ebuild') diff --git a/media-fonts/noto/noto-20231031.ebuild b/media-fonts/noto/noto-20231031.ebuild new file mode 100644 index 000000000000..bf3d96184e73 --- /dev/null +++ b/media-fonts/noto/noto-20231031.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2023 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="f83d3a3623a3c6fc7049674ea7902f924d677087" +SRC_URI="https://github.com/notofonts/notofonts.github.io/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" + +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 )" +DEPEND="" + +RESTRICT="binchecks strip" + +S="${WORKDIR}/notofonts.github.io-${COMMIT}" + +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] +} -- cgit v1.2.3