From 0b5adbed94570827c00536553e7731f4dbe65013 Mon Sep 17 00:00:00 2001 From: "Alex Xu (Hello71)" Date: Wed, 24 Jan 2024 20:52:46 -0500 Subject: media-fonts/noto*: update, optimize --- media-fonts/noto-cjk/noto-cjk-20230817.ebuild | 30 +++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 media-fonts/noto-cjk/noto-cjk-20230817.ebuild (limited to 'media-fonts/noto-cjk/noto-cjk-20230817.ebuild') diff --git a/media-fonts/noto-cjk/noto-cjk-20230817.ebuild b/media-fonts/noto-cjk/noto-cjk-20230817.ebuild new file mode 100644 index 0000000..23c49ec --- /dev/null +++ b/media-fonts/noto-cjk/noto-cjk-20230817.ebuild @@ -0,0 +1,30 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Google's CJK font family" +HOMEPAGE="https://www.google.com/get/noto/ https://github.com/googlefonts/noto-cjk" + +COMMIT="4efc595762d1f4b4fa504bccfe8e59de91fda063" +SRC_URI=" + https://github.com/googlefonts/noto-cjk/raw/${COMMIT}/Sans/Variable/OTC/NotoSansCJK-VF.otf.ttc -> NotoSansCJK-VF-${COMMIT}.otf.ttc + https://github.com/googlefonts/noto-cjk/raw/${COMMIT}/Sans/Variable/OTC/NotoSansMonoCJK-VF.otf.ttc -> NotoSansMonoCJK-VF-${COMMIT}.otf.ttc + https://github.com/googlefonts/noto-cjk/raw/${COMMIT}/Serif/Variable/OTC/NotoSerifCJK-VF.otf.ttc -> NotoSerifCJK-VF-${COMMIT}.otf.ttc +" + +LICENSE="OFL-1.1" +SLOT="0" +KEYWORDS="~*" +IUSE="" + +S="${DISTDIR}" + +src_install() { + insinto /usr/share/fonts/${PN} + newins NotoSansCJK-VF-${COMMIT}.otf.ttc NotoSansCJK-VF.otf.ttc + newins NotoSansMonoCJK-VF-${COMMIT}.otf.ttc NotoSansMonoCJK-VF.otf.ttc + newins NotoSerifCJK-VF-${COMMIT}.otf.ttc NotoSerifCJK-VF.otf.ttc + insinto /etc/fonts/conf.avail + doins "${FILESDIR}/70-noto-cjk.conf" # From ArchLinux +} -- cgit v1.2.3-70-g09d2