diff options
author | Pacho Ramos <pacho@gentoo.org> | 2023-10-01 19:33:52 +0200 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2023-10-01 19:42:24 +0200 |
commit | ac9f64ab060ffc44966455e7af439bda74655120 (patch) | |
tree | 60d3dca437f3c0e5b5607cd469b6efb570104d71 /media-fonts/noto/noto-20230930.ebuild | |
parent | net-misc/r8168: add 8.052.01 (diff) | |
download | gentoo-ac9f64ab060ffc44966455e7af439bda74655120.tar.gz gentoo-ac9f64ab060ffc44966455e7af439bda74655120.tar.bz2 gentoo-ac9f64ab060ffc44966455e7af439bda74655120.zip |
media-fonts/noto: add 20230930
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
Diffstat (limited to 'media-fonts/noto/noto-20230930.ebuild')
-rw-r--r-- | media-fonts/noto/noto-20230930.ebuild | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/media-fonts/noto/noto-20230930.ebuild b/media-fonts/noto/noto-20230930.ebuild new file mode 100644 index 000000000000..0220fc48452c --- /dev/null +++ b/media-fonts/noto/noto-20230930.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="229a3227db2dd56dce55b0e0d507153c50021e5d" +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] +} |