summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2023-12-16 10:28:23 +0100
committerPacho Ramos <pacho@gentoo.org>2023-12-16 10:46:47 +0100
commitaf1fdcf04e5c529c731f8fa0a32822c0cbd4f63e (patch)
treecc969e8cce351f0344f48d8480a0210440ca4fc8
parentkde-plasma/wacomtablet: Add missing include (diff)
downloadgentoo-af1fdcf04e5c529c731f8fa0a32822c0cbd4f63e.tar.gz
gentoo-af1fdcf04e5c529c731f8fa0a32822c0cbd4f63e.tar.bz2
gentoo-af1fdcf04e5c529c731f8fa0a32822c0cbd4f63e.zip
media-fonts/noto-emoji: add 20231130
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
-rw-r--r--media-fonts/noto-emoji/Manifest1
-rw-r--r--media-fonts/noto-emoji/noto-emoji-20231130.ebuild54
2 files changed, 55 insertions, 0 deletions
diff --git a/media-fonts/noto-emoji/Manifest b/media-fonts/noto-emoji/Manifest
index b238f4915e81..6c21e5ecc477 100644
--- a/media-fonts/noto-emoji/Manifest
+++ b/media-fonts/noto-emoji/Manifest
@@ -1,2 +1,3 @@
DIST noto-emoji-20220912.tar.gz 178768907 BLAKE2B b998a74903e0a559e6c2d87f6d05649054728d5359659882c89b99fc41ec80f9dbafba6f418500059acef7bb85b9d60b189abea286c9c4cb5491f501095ca425 SHA512 4e9b01be1ac7853d840379f84350f2709212401ccebb221308eb83982a8673af9a8ef166952aba4d6f8d9939efc4989f38a7db69e022eb055f265ccba78884a6
DIST noto-emoji-20231117.tar.gz 201500964 BLAKE2B 0c40c1e2dbe83166e45b279018e70d6adce379b26de2bd1bc1a067d5b788ac40c9ad33279a589d014fbbb47b9dbf955726ea03326d180a3d4d010b70dc2f5903 SHA512 f9bb2735919c26c646ae0dd9712da071cae109db6e75952d85a4d456aba39809d0cb2619207d55b8ce0d274c6676f72f8a5d2606b1c7b9e52ac497fad5134cae
+DIST noto-emoji-20231130.tar.gz 201447944 BLAKE2B da80f3b7b3a99cefa18cf34c6f55a3bb0e407d7f8df9927ae747ddc74625f9d08a5ba3118a908ffd7fe90edd90c45b4f9d23d44e6d0cd92779b2f5322346ae20 SHA512 310fac7eb9aa35065cbc030276ead6d1f9111059b0142143cfab2c9c48dd1106b1cce135a745681f57df95c0510cb04249532ed765edf881ed7ab31a38bd538a
diff --git a/media-fonts/noto-emoji/noto-emoji-20231130.ebuild b/media-fonts/noto-emoji/noto-emoji-20231130.ebuild
new file mode 100644
index 000000000000..37e4ba1e5be5
--- /dev/null
+++ b/media-fonts/noto-emoji/noto-emoji-20231130.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit font
+
+DESCRIPTION="Google Noto Emoji fonts"
+HOMEPAGE="https://fonts.google.com/noto/specimen/Noto+Color+Emoji https://github.com/googlefonts/noto-emoji"
+
+COMMIT="d79d23e6822e0f6e5731b114cbfb26b2a4e380da"
+SRC_URI="https://github.com/googlefonts/noto-emoji/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0 OFL-1.1"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
+IUSE="icons"
+
+RESTRICT="binchecks strip"
+
+S="${WORKDIR}/${PN}-${COMMIT}"
+
+# https://github.com/gentoo/gentoo/pull/32203
+FONT_CONF=( "${FILESDIR}"/75-noto-emoji-fallback.conf )
+
+src_prepare() {
+ default
+
+ # Drop font for Windows 10
+ rm fonts/NotoColorEmoji_WindowsCompatible.ttf || die
+}
+
+src_compile() { :; }
+
+src_install() {
+ FONT_S="${S}/fonts"
+ # Drop non used fonts
+ rm -f fonts/*COLR*.ttf || die
+
+ # Don't lose fancy emoji icons
+ if use icons; then
+ for i in 32 72 128 512; do
+ insinto "/usr/share/icons/${PN}/${i}/emotes/"
+ doins png/"${i}"/*.png
+ done
+
+ insinto /usr/share/icons/"${PN}"/scalable/emotes/
+ doins svg/*.svg
+ fi
+
+ FONT_SUFFIX="ttf"
+ font_src_install
+
+ dodoc README.md
+}