diff options
author | Pacho Ramos <pacho@gentoo.org> | 2023-08-01 14:22:49 +0200 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2023-08-01 14:22:49 +0200 |
commit | 9c261e414df0eca1905414fc6092c2c2edd06668 (patch) | |
tree | 3aa41602747af8d73b3a99bf7476b669465809f6 /media-fonts | |
parent | sys-devel/gnuconfig: add 20230731 (diff) | |
download | gentoo-9c261e414df0eca1905414fc6092c2c2edd06668.tar.gz gentoo-9c261e414df0eca1905414fc6092c2c2edd06668.tar.bz2 gentoo-9c261e414df0eca1905414fc6092c2c2edd06668.zip |
media-fonts/noto: add 20230731
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
Diffstat (limited to 'media-fonts')
-rw-r--r-- | media-fonts/noto/Manifest | 1 | ||||
-rw-r--r-- | media-fonts/noto/noto-20230731.ebuild | 44 |
2 files changed, 45 insertions, 0 deletions
diff --git a/media-fonts/noto/Manifest b/media-fonts/noto/Manifest index 4d094bb87e3f..7ea1d0b7c4e0 100644 --- a/media-fonts/noto/Manifest +++ b/media-fonts/noto/Manifest @@ -1,3 +1,4 @@ DIST noto-20230331.tar.gz 1020818875 BLAKE2B 82df27ba94a15ba16fb7c47168ffd9684e030f478c91b98c7c99b97f9d0179f2124ffd68e662dab3edd1643ce032c35e4197d6f8c4f206a621a53b894b0c19a3 SHA512 e839a942e358b37acc47f57f9046a74b2370938b02de686d3dc89532d7ec0a664945f5010bada332466478b7b0d3b4866ce17ac568300ccee2bc27ee9da9e838 DIST noto-20230430.tar.gz 1020909284 BLAKE2B 552d52204409fe143436160c2378b7ff0bfc0bf9f3e6ccbf22cf712b73d3a598c08f02399005b46f6d8701cec3537a2dd7a254a5ec036fa9f68dfe33326de1d8 SHA512 04af7b86089194b7428bda530d0a92fda2a62858eccf23a694dc0ec4c0506ca5afe944c0fb4ae9efe6f57aa6983f3f6dd681efa829abbffd82ec1ecd901f09fa DIST noto-20230531.tar.gz 1022922148 BLAKE2B 3e4c628206589ca6caa2e0d843591838e9eef6e2c1d2ebf7b6477c32d0ddb7e7452b60d2d1c6974aa3a68d71ed1005d1bbdafaafda36456056047be1b330f8fd SHA512 ec0911da969669610cd0fad7785e1155ff14dc1456e8cf5f833077718733afbe59348dec6441d44150cbe82e919d4679110c670ef1eae4dbb820d6d0b38061ae +DIST noto-20230731.tar.gz 1027194986 BLAKE2B cf0d4942b961ffba7d479a31e0c22c3d24ed1f563e1f8022d027b02773897cf2ec46b6b4576fe497c593f4b24bbac879caa746330993eebd576920dc9c4c16e5 SHA512 4ec85c0f3fcbab2ed5039b6ab3600de35279dfdd14caeea3aa25bfc98d9c5642920d855b81e472a1f7fe03691d218ecdcd1950fb2f6ae0e1b4e3aab342ffe516 diff --git a/media-fonts/noto/noto-20230731.ebuild b/media-fonts/noto/noto-20230731.ebuild new file mode 100644 index 000000000000..e5e435e496c7 --- /dev/null +++ b/media-fonts/noto/noto-20230731.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="3a875ec70d484364888bbbbfa06cc56fb2320098" +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] +} |