diff options
Diffstat (limited to 'media-fonts/noto')
-rw-r--r-- | media-fonts/noto/Manifest | 1 | ||||
-rw-r--r-- | media-fonts/noto/noto-20230930.ebuild | 44 |
2 files changed, 45 insertions, 0 deletions
diff --git a/media-fonts/noto/Manifest b/media-fonts/noto/Manifest index 597c1371055c..5296f1555a3f 100644 --- a/media-fonts/noto/Manifest +++ b/media-fonts/noto/Manifest @@ -1,3 +1,4 @@ DIST noto-20230531.tar.gz 1022922148 BLAKE2B 3e4c628206589ca6caa2e0d843591838e9eef6e2c1d2ebf7b6477c32d0ddb7e7452b60d2d1c6974aa3a68d71ed1005d1bbdafaafda36456056047be1b330f8fd SHA512 ec0911da969669610cd0fad7785e1155ff14dc1456e8cf5f833077718733afbe59348dec6441d44150cbe82e919d4679110c670ef1eae4dbb820d6d0b38061ae DIST noto-20230731.tar.gz 1027194986 BLAKE2B cf0d4942b961ffba7d479a31e0c22c3d24ed1f563e1f8022d027b02773897cf2ec46b6b4576fe497c593f4b24bbac879caa746330993eebd576920dc9c4c16e5 SHA512 4ec85c0f3fcbab2ed5039b6ab3600de35279dfdd14caeea3aa25bfc98d9c5642920d855b81e472a1f7fe03691d218ecdcd1950fb2f6ae0e1b4e3aab342ffe516 DIST noto-20230831.tar.gz 1027210631 BLAKE2B e0afe6cf519a8a7a9bf68231297b9232803f819b8ae215dc45d6eca9e678b5f86e24b9c483f3127a938df537bbfc9ef934c5d4e0080d81e239b195ed00af02e9 SHA512 78352196a668dc4ce3b62adde6501fe863c7fa8545591b25c0721a5fc010df70e937eca0012aaeb3a77c8dcfa60be4211a6572d1b71e7092eb78eed465469414 +DIST noto-20230930.tar.gz 1034822159 BLAKE2B 25af396043c2639d31711357b44bbf588f2d8a156c1bd6c1fcbd130d42c80664f74a40c7f30be41c1fe82611d5e2b8587bae84497bef6381fea07374435eea02 SHA512 ce2e73e8cb179e6968d76241add907878d5f53de2923fa809957eef43fa030200a25f1aedf137f7c8c4daa6406e88fe9637c0d13e31bb41a8b3be6f2605c73ab 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] +} |