summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-fonts/noto-emoji')
-rw-r--r--media-fonts/noto-emoji/Manifest3
-rw-r--r--media-fonts/noto-emoji/files/75-noto-emoji-fallback.conf31
-rw-r--r--media-fonts/noto-emoji/files/noto-emoji-20180823-build-path.patch11
-rw-r--r--media-fonts/noto-emoji/files/noto-emoji-20190328-use-gm.patch27
-rw-r--r--media-fonts/noto-emoji/files/noto-emoji-build-all-flags.patch11
-rw-r--r--media-fonts/noto-emoji/files/noto-emoji-pngquant-verbose.patch11
-rw-r--r--media-fonts/noto-emoji/metadata.xml9
-rw-r--r--media-fonts/noto-emoji/noto-emoji-20201214.ebuild109
-rw-r--r--media-fonts/noto-emoji/noto-emoji-20210715.ebuild111
-rw-r--r--media-fonts/noto-emoji/noto-emoji-20231130-r1.ebuild53
-rw-r--r--media-fonts/noto-emoji/noto-emoji-20231130.ebuild54
11 files changed, 145 insertions, 285 deletions
diff --git a/media-fonts/noto-emoji/Manifest b/media-fonts/noto-emoji/Manifest
index 82b5b1d989c9..bb4c4e6c01ca 100644
--- a/media-fonts/noto-emoji/Manifest
+++ b/media-fonts/noto-emoji/Manifest
@@ -1,2 +1 @@
-DIST noto-emoji-20201214.tar.gz 69885567 BLAKE2B 21d251a25740bf474e4c7e138c33d90f35cfea93ff2c72904e38a8bead0124408c67a731ed142fe96da07bbf8afb7d929293518a366157fd1393dacc560bf12b SHA512 b3ad1f31bbb48bd5de2fbddcac5c3f27891a805ae4ac8d0b69b07c1d7259c6a5317eca9ac7e3b068d24ed5d3acd3523cfb2036f2e9f08179b85fd81dd5c9b570
-DIST noto-emoji-20210715.tar.gz 166643705 BLAKE2B 355e993aee720e634d174fceb4d0d6b16ebce91cf948657428861fa63283120eef7fb706a5e6139f0ff7c13f0d72dc1c906ab30bc9b7509644ae6a56f4156e16 SHA512 2b1071c39d85f834baf4c9b6c59f9b06f1622bf972bac6087e0f44bd034025933b9a85a9a63a307f2e4b6337f8fbf7b11ba14838cd4bc13c8075b7ffae65ae78
+DIST noto-emoji-20231130.tar.gz 201447944 BLAKE2B da80f3b7b3a99cefa18cf34c6f55a3bb0e407d7f8df9927ae747ddc74625f9d08a5ba3118a908ffd7fe90edd90c45b4f9d23d44e6d0cd92779b2f5322346ae20 SHA512 310fac7eb9aa35065cbc030276ead6d1f9111059b0142143cfab2c9c48dd1106b1cce135a745681f57df95c0510cb04249532ed765edf881ed7ab31a38bd538a
diff --git a/media-fonts/noto-emoji/files/75-noto-emoji-fallback.conf b/media-fonts/noto-emoji/files/75-noto-emoji-fallback.conf
new file mode 100644
index 000000000000..deb9c965b8b5
--- /dev/null
+++ b/media-fonts/noto-emoji/files/75-noto-emoji-fallback.conf
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+:
+ <!-- This adds Noto Color Emoji as a fallback font for all of the default font families;
+ When enabled any **missing** glyphs from the system font will be rendered using Noto Color Emoji in (e.g.)
+ Konsole, Firefox, etc. It _might_ impact web rendering if other fonts would usually be preferred
+ but as it's only doing replacements for missing glyphs we're really just supplementing
+ the existing fallback logic -->
+
+ <match target="pattern">
+ <test name="family"><string>sans</string></test>
+ <edit name="family" mode="append"><string>Noto Color Emoji</string></edit>
+ </match>
+
+ <match target="pattern">
+ <test name="family"><string>serif</string></test>
+ <edit name="family" mode="append"><string>Noto Color Emoji</string></edit>
+ </match>
+
+ <match target="pattern">
+ <test name="family"><string>sans-serif</string></test>
+ <edit name="family" mode="append"><string>Noto Color Emoji</string></edit>
+ </match>
+
+ <match target="pattern">
+ <test name="family"><string>monospace</string></test>
+ <edit name="family" mode="append"><string>Noto Color Emoji</string></edit>
+ </match>
+
+ </fontconfig>
diff --git a/media-fonts/noto-emoji/files/noto-emoji-20180823-build-path.patch b/media-fonts/noto-emoji/files/noto-emoji-20180823-build-path.patch
deleted file mode 100644
index 151f88251524..000000000000
--- a/media-fonts/noto-emoji/files/noto-emoji-20180823-build-path.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/add_glyphs.py.old 2018-11-18 11:11:56.387323302 +0100
-+++ b/add_glyphs.py 2018-11-18 11:12:18.203529159 +0100
-@@ -22,7 +22,7 @@
- import add_emoji_gsub
- import add_aliases
-
--sys.path.append(
-+sys.path.insert(0,
- path.join(os.path.dirname(__file__), 'third_party', 'color_emoji'))
- from png import PNG
-
diff --git a/media-fonts/noto-emoji/files/noto-emoji-20190328-use-gm.patch b/media-fonts/noto-emoji/files/noto-emoji-20190328-use-gm.patch
deleted file mode 100644
index 6b51d0f52168..000000000000
--- a/media-fonts/noto-emoji/files/noto-emoji-20190328-use-gm.patch
+++ /dev/null
@@ -1,27 +0,0 @@
---- a/Makefile~ 2019-03-28 17:45:53.000000000 +0100
-+++ b/Makefile 2019-06-02 10:36:55.587055453 +0200
-@@ -21,7 +21,7 @@
- PNGQUANT = pngquant
- PNGQUANTFLAGS = --speed 1 --skip-if-larger --quality 85-95 --force
- BODY_DIMENSIONS = 136x128
--IMOPS := -size $(BODY_DIMENSIONS) canvas:none -compose copy -gravity center
-+IMOPS = -size 136x128 -background none -gravity center -extent 136x128 -compose copy
-
- # zopflipng is better (about 5-10%) but much slower. it will be used if
- # present. pass ZOPFLIPNG= as an arg to make to use optipng instead.
-@@ -165,13 +165,13 @@
- # imagemagick packaged with ubuntu trusty (6.7.7-10) by using -composite.
-
- $(EMOJI_DIR)/%.png: $(EMOJI_SRC_DIR)/%.png | $(EMOJI_DIR)
-- @convert $(IMOPS) "$<" -composite "PNG32:$@"
-+ @gm convert $(IMOPS) "$<" "PNG32:$@"
-
- $(FLAGS_DIR)/%.png: $(FLAGS_SRC_DIR)/%.png ./waveflag | $(FLAGS_DIR)
- @./waveflag $(FLAGS_DIR)/ "$<"
-
- $(RESIZED_FLAGS_DIR)/%.png: $(FLAGS_DIR)/%.png | $(RESIZED_FLAGS_DIR)
-- @convert $(IMOPS) "$<" -composite "PNG32:$@"
-+ @gm convert $(IMOPS) "$<" "PNG32:$@"
-
- flag-symlinks: $(RESIZED_FLAG_FILES) | $(RENAMED_FLAGS_DIR)
- @$(subst ^, , \
diff --git a/media-fonts/noto-emoji/files/noto-emoji-build-all-flags.patch b/media-fonts/noto-emoji/files/noto-emoji-build-all-flags.patch
deleted file mode 100644
index 564b08a59078..000000000000
--- a/media-fonts/noto-emoji/files/noto-emoji-build-all-flags.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- old/Makefile 2018-05-03 20:32:14.000000000 +0200
-+++ new/Makefile 2018-05-08 11:48:20.811073447 +0200
-@@ -78,7 +78,7 @@
-
- ALL_FLAGS = $(basename $(notdir $(wildcard $(FLAGS_SRC_DIR)/*.png)))
-
--FLAGS = $(SELECTED_FLAGS)
-+FLAGS = $(ALL_FLAGS)
-
- FLAG_NAMES = $(FLAGS:%=%.png)
- FLAG_FILES = $(addprefix $(FLAGS_DIR)/, $(FLAG_NAMES))
diff --git a/media-fonts/noto-emoji/files/noto-emoji-pngquant-verbose.patch b/media-fonts/noto-emoji/files/noto-emoji-pngquant-verbose.patch
deleted file mode 100644
index 8a152bea23d9..000000000000
--- a/media-fonts/noto-emoji/files/noto-emoji-pngquant-verbose.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/Makefile~ 2020-04-22 23:04:44.000000000 +0200
-+++ b/Makefile 2020-04-22 23:06:42.069275340 +0200
-@@ -20,7 +20,7 @@
-
- PNGQUANT = pngquant
- PYTHON = python3
--PNGQUANTFLAGS = --speed 1 --skip-if-larger --quality 85-95 --force
-+PNGQUANTFLAGS = --speed 1 --skip-if-larger --quality 85-95 --force -v
- BODY_DIMENSIONS = 136x128
- IMOPS := -size $(BODY_DIMENSIONS) canvas:none -compose copy -gravity center
-
diff --git a/media-fonts/noto-emoji/metadata.xml b/media-fonts/noto-emoji/metadata.xml
index 764112401caf..3b1890ccc39f 100644
--- a/media-fonts/noto-emoji/metadata.xml
+++ b/media-fonts/noto-emoji/metadata.xml
@@ -5,7 +5,10 @@
<email>pacho@gentoo.org</email>
<name>Pacho Ramos</name>
</maintainer>
-<use>
- <flag name="buildfont">Build Noto Emoji font with supplied images.</flag>
-</use>
+ <use>
+ <flag name="icons">Install Noto Emoji icon theme</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">googlefonts/noto-emoji</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/media-fonts/noto-emoji/noto-emoji-20201214.ebuild b/media-fonts/noto-emoji/noto-emoji-20201214.ebuild
deleted file mode 100644
index 52d7496927fc..000000000000
--- a/media-fonts/noto-emoji/noto-emoji-20201214.ebuild
+++ /dev/null
@@ -1,109 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-PYTHON_COMPAT=( python3_{7..9} )
-
-inherit font python-any-r1
-
-DESCRIPTION="Google Noto Emoji fonts"
-HOMEPAGE="https://www.google.com/get/noto/ https://github.com/googlefonts/noto-emoji"
-
-COMMIT="e7ac893b3315181f51710de3ba16704ec95e3f51"
-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 ~ppc64 x86"
-IUSE="buildfont"
-
-BDEPEND="
- buildfont? (
- ${PYTHON_DEPS}
- app-arch/zopfli
- $(python_gen_any_dep '
- >=dev-python/fonttools-4.7.0[${PYTHON_USEDEP}]
- >=dev-python/nototools-0.2.13[${PYTHON_USEDEP}]
- ')
- media-gfx/pngquant
- x11-libs/cairo
- || ( media-gfx/imagemagick[png] media-gfx/graphicsmagick[png] )
- )
-"
-
-RESTRICT="binchecks strip"
-
-S="${WORKDIR}/${PN}-${COMMIT}"
-
-python_check_deps() {
- has_version -b "dev-python/fonttools[${PYTHON_USEDEP}]" &&
- has_version -b "dev-python/nototools[${PYTHON_USEDEP}]"
-}
-
-pkg_setup() {
- font_pkg_setup
-}
-
-src_prepare() {
- default
-
- # Drop font for Windows 10
- rm fonts/NotoColorEmoji_WindowsCompatible.ttf || die
-
- if use buildfont; then
- # From Fedora
- eapply "${FILESDIR}/${PN}-build-all-flags.patch"
-
- # https://github.com/googlei18n/noto-emoji/issues/240
- eapply "${FILESDIR}/${PN}-20180823-build-path.patch"
-
- # Be more verbose, bug #717654
- eapply "${FILESDIR}"/${PN}-pngquant-verbose.patch
- sed -i -e 's:@$(ZOPFLIPNG) -y "$<" "$@" 1> /dev/null 2>&1:@$(ZOPFLIPNG) -y "$<" "$@":g' Makefile || die
-
- # Based on Fedora patch to allow graphicsmagick usage
- if has_version -b media-gfx/graphicsmagick; then
- eapply "${FILESDIR}/${PN}-20190328-use-gm.patch"
- fi
- fi
-}
-
-src_compile() {
- if ! use buildfont; then
- einfo "Installing pre-built fonts provided by upstream."
- einfo "They could be not fully updated or miss some items."
- einfo "To build fonts based on latest images enable 'buildfont'"
- einfo "USE (that will require more time and resources too)."
- else
- python_setup
- einfo "Building fonts..."
-
- # From Debian:
- # The build requires a VIRTUAL_ENV variable and sequence check isn't working
- VIRTUAL_ENV=true \
- BYPASS_SEQUENCE_CHECK=true \
- default
- fi
-}
-
-src_install() {
- if ! use buildfont; then
- FONT_S="${S}/fonts"
- else
- mv -i fonts/NotoEmoji-Regular.ttf "${S}" || die
- # Built font and Regular font
- FONT_S="${S}"
-
- # Don't lose fancy emoji icons
- insinto /usr/share/icons/"${PN}"/128x128/emotes/
- doins png/128/*.png
-
- insinto /usr/share/icons/"${PN}"/scalable/emotes/
- doins svg/*.svg
- fi
-
- FONT_SUFFIX="ttf"
- font_src_install
-
- dodoc README.md
-}
diff --git a/media-fonts/noto-emoji/noto-emoji-20210715.ebuild b/media-fonts/noto-emoji/noto-emoji-20210715.ebuild
deleted file mode 100644
index 46b120c9443d..000000000000
--- a/media-fonts/noto-emoji/noto-emoji-20210715.ebuild
+++ /dev/null
@@ -1,111 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-PYTHON_COMPAT=( python3_{8..9} )
-
-inherit font python-any-r1
-
-DESCRIPTION="Google Noto Emoji fonts"
-HOMEPAGE="https://www.google.com/get/noto/ https://github.com/googlefonts/noto-emoji"
-
-COMMIT="c05b4b47c8250ccd232780cae46d66a8179e77ab"
-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 ~ppc64 ~riscv x86"
-IUSE="buildfont"
-
-BDEPEND="
- buildfont? (
- ${PYTHON_DEPS}
- app-arch/zopfli
- $(python_gen_any_dep '
- >=dev-python/fonttools-4.7.0[${PYTHON_USEDEP}]
- >=dev-python/nototools-0.2.13[${PYTHON_USEDEP}]
- ')
- media-gfx/pngquant
- x11-libs/cairo
- || ( media-gfx/imagemagick[png] media-gfx/graphicsmagick[png] )
- )
-"
-
-RESTRICT="binchecks strip"
-
-S="${WORKDIR}/${PN}-${COMMIT}"
-
-python_check_deps() {
- has_version -b "dev-python/fonttools[${PYTHON_USEDEP}]" &&
- has_version -b "dev-python/nototools[${PYTHON_USEDEP}]"
-}
-
-pkg_setup() {
- font_pkg_setup
-}
-
-src_prepare() {
- default
-
- # Drop font for Windows 10
- rm fonts/NotoColorEmoji_WindowsCompatible.ttf || die
-
- if use buildfont; then
- # From Fedora
- eapply "${FILESDIR}/${PN}-build-all-flags.patch"
-
- # https://github.com/googlei18n/noto-emoji/issues/240
- eapply "${FILESDIR}/${PN}-20180823-build-path.patch"
-
- # Be more verbose, bug #717654
- eapply "${FILESDIR}"/${PN}-pngquant-verbose.patch
- sed -i -e 's:@$(ZOPFLIPNG) -y "$<" "$@" 1> /dev/null 2>&1:@$(ZOPFLIPNG) -y "$<" "$@":g' Makefile || die
-
- # Based on Fedora patch to allow graphicsmagick usage
- if has_version -b media-gfx/graphicsmagick; then
- eapply "${FILESDIR}/${PN}-20190328-use-gm.patch"
- fi
- fi
-}
-
-src_compile() {
- if ! use buildfont; then
- einfo "Installing pre-built fonts provided by upstream."
- einfo "They could be not fully updated or miss some items."
- einfo "To build fonts based on latest images enable 'buildfont'"
- einfo "USE (that will require more time and resources too)."
- else
- python_setup
- einfo "Building fonts..."
-
- # From Debian:
- # The build requires a VIRTUAL_ENV variable and sequence check isn't working
- VIRTUAL_ENV=true \
- BYPASS_SEQUENCE_CHECK=true \
- default
- fi
-}
-
-src_install() {
- if ! use buildfont; then
- FONT_S="${S}/fonts"
- else
- mv -i fonts/NotoEmoji-Regular.ttf "${S}" || die
- # Built font and Regular font
- FONT_S="${S}"
-
- # Don't lose fancy emoji icons
- 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
-}
diff --git a/media-fonts/noto-emoji/noto-emoji-20231130-r1.ebuild b/media-fonts/noto-emoji/noto-emoji-20231130-r1.ebuild
new file mode 100644
index 000000000000..919035470d9f
--- /dev/null
+++ b/media-fonts/noto-emoji/noto-emoji-20231130-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2024 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_compile() { :; }
+
+src_install() {
+ # Ensure we install only the desired font (the same other distros
+ # supply), https://bugs.gentoo.org/927294
+ FONT_S="${S}/fonts-install"
+
+ # 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
+
+ # Ensure we install only the desired font (the same other distros
+ # supply), https://bugs.gentoo.org/927294
+ mkdir fonts-install || die
+ FONT_S="${S}/fonts-install"
+ cp -p fonts/NotoColorEmoji.ttf fonts-install/. || die
+
+ FONT_SUFFIX="ttf"
+ font_src_install
+
+ dodoc README.md
+}
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..38f288fd653e
--- /dev/null
+++ b/media-fonts/noto-emoji/noto-emoji-20231130.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2024 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
+}