diff options
author | 2024-03-25 19:06:40 +0100 | |
---|---|---|
committer | 2024-03-25 19:06:40 +0100 | |
commit | 65cdc4b5c59e37e8c555821d05743ca243155759 (patch) | |
tree | f7137cda0b8351879ed942f9db73cff591974105 /media-fonts | |
parent | */*: reassign Alessandro's packages (diff) | |
download | gentoo-65cdc4b5c59e37e8c555821d05743ca243155759.tar.gz gentoo-65cdc4b5c59e37e8c555821d05743ca243155759.tar.bz2 gentoo-65cdc4b5c59e37e8c555821d05743ca243155759.zip |
media-fonts/noto-emoji: Install only the desired font file
The same used in other distributions as Arch
Closes: https://bugs.gentoo.org/927294
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
Diffstat (limited to 'media-fonts')
-rw-r--r-- | media-fonts/noto-emoji/noto-emoji-20231130-r1.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
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..1fa09419c4e6 --- /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 +} |