summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2023-11-24 13:44:32 +0100
committerPacho Ramos <pacho@gentoo.org>2023-11-24 13:55:06 +0100
commit96f714bb2fbcab861256cf52128db4205b81f39f (patch)
tree58470959e1a759ce36652291066b452a4161440c /media-fonts
parentdev-java/ant-eclipse-ecj: drop 4.27 (diff)
downloadgentoo-96f714bb2fbcab861256cf52128db4205b81f39f.tar.gz
gentoo-96f714bb2fbcab861256cf52128db4205b81f39f.tar.bz2
gentoo-96f714bb2fbcab861256cf52128db4205b81f39f.zip
media-fonts/noto-emoji: add 20231117
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
Diffstat (limited to 'media-fonts')
-rw-r--r--media-fonts/noto-emoji/Manifest1
-rw-r--r--media-fonts/noto-emoji/noto-emoji-20231117.ebuild54
2 files changed, 55 insertions, 0 deletions
diff --git a/media-fonts/noto-emoji/Manifest b/media-fonts/noto-emoji/Manifest
index d8cbfd497ba1..b238f4915e81 100644
--- a/media-fonts/noto-emoji/Manifest
+++ b/media-fonts/noto-emoji/Manifest
@@ -1 +1,2 @@
DIST noto-emoji-20220912.tar.gz 178768907 BLAKE2B b998a74903e0a559e6c2d87f6d05649054728d5359659882c89b99fc41ec80f9dbafba6f418500059acef7bb85b9d60b189abea286c9c4cb5491f501095ca425 SHA512 4e9b01be1ac7853d840379f84350f2709212401ccebb221308eb83982a8673af9a8ef166952aba4d6f8d9939efc4989f38a7db69e022eb055f265ccba78884a6
+DIST noto-emoji-20231117.tar.gz 201500964 BLAKE2B 0c40c1e2dbe83166e45b279018e70d6adce379b26de2bd1bc1a067d5b788ac40c9ad33279a589d014fbbb47b9dbf955726ea03326d180a3d4d010b70dc2f5903 SHA512 f9bb2735919c26c646ae0dd9712da071cae109db6e75952d85a4d456aba39809d0cb2619207d55b8ce0d274c6676f72f8a5d2606b1c7b9e52ac497fad5134cae
diff --git a/media-fonts/noto-emoji/noto-emoji-20231117.ebuild b/media-fonts/noto-emoji/noto-emoji-20231117.ebuild
new file mode 100644
index 000000000000..4d2fc830183c
--- /dev/null
+++ b/media-fonts/noto-emoji/noto-emoji-20231117.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="144e84dbc2b49f164279bfce230569116ac98bfd"
+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
+}