diff options
author | Pacho Ramos <pacho@gentoo.org> | 2023-12-16 10:32:56 +0100 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2023-12-16 10:46:47 +0100 |
commit | 5981736a75e342ba0ca93cce1cc9f81e202ae9f8 (patch) | |
tree | f16ea9d6bfbf95115e006e1c3c53ef58f8089ff4 /media-fonts | |
parent | media-fonts/noto-emoji: add 20231130 (diff) | |
download | gentoo-5981736a75e342ba0ca93cce1cc9f81e202ae9f8.tar.gz gentoo-5981736a75e342ba0ca93cce1cc9f81e202ae9f8.tar.bz2 gentoo-5981736a75e342ba0ca93cce1cc9f81e202ae9f8.zip |
media-fonts/noto: add 20231128
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-20231128.ebuild | 44 |
2 files changed, 45 insertions, 0 deletions
diff --git a/media-fonts/noto/Manifest b/media-fonts/noto/Manifest index 38cee283a4fd..7c474b7c9059 100644 --- a/media-fonts/noto/Manifest +++ b/media-fonts/noto/Manifest @@ -1,2 +1,3 @@ DIST noto-20230930.tar.gz 1034822159 BLAKE2B 25af396043c2639d31711357b44bbf588f2d8a156c1bd6c1fcbd130d42c80664f74a40c7f30be41c1fe82611d5e2b8587bae84497bef6381fea07374435eea02 SHA512 ce2e73e8cb179e6968d76241add907878d5f53de2923fa809957eef43fa030200a25f1aedf137f7c8c4daa6406e88fe9637c0d13e31bb41a8b3be6f2605c73ab DIST noto-20231031.tar.gz 1062488324 BLAKE2B a2494936557b9af06da87ed2287122933f0953aca800a0cf02bccef55ae12ba3135dd83cbed7361b59d8dc84d5a170f9b536a8a7bfbf0820832480e8a59ad1df SHA512 60f5c0fd4bda81c93c21137ac3ba64da1efadad106e081434be7d01b344518104451222915f585a06be6bde43893ed0e248b58600b029f8d89e51325f204b324 +DIST noto-20231128.tar.gz 1062692273 BLAKE2B adab3e85f0f744b1d37ea0877db14d399baff3dab3496a01181ac977a6e5b1fd04c6ab5a7ee3dfcb190583d18f585eae70cf244bfb993107b6a8e84b62f45bde SHA512 ccc54993bc9651a2e6e654270c0c67f9eeb9659b60246cae407a11fe7d87d438a91250d2d96fd3f970b11d17386133375a1c66fbedf551344998ded89acb4835 diff --git a/media-fonts/noto/noto-20231128.ebuild b/media-fonts/noto/noto-20231128.ebuild new file mode 100644 index 000000000000..79a113992ebe --- /dev/null +++ b/media-fonts/noto/noto-20231128.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="15866b860084edd7163ec170d3c462ceada3de5b" +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] +} |