From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1614685-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 9D711158041
	for <garchives@archives.gentoo.org>; Mon, 25 Mar 2024 18:13:16 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id C7E55E2A67;
	Mon, 25 Mar 2024 18:13:15 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id A50A9E2A67
	for <gentoo-commits@lists.gentoo.org>; Mon, 25 Mar 2024 18:13:15 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id A1329335C34
	for <gentoo-commits@lists.gentoo.org>; Mon, 25 Mar 2024 18:13:14 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id EE874B29
	for <gentoo-commits@lists.gentoo.org>; Mon, 25 Mar 2024 18:13:12 +0000 (UTC)
From: "Pacho Ramos" <pacho@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Pacho Ramos" <pacho@gentoo.org>
Message-ID: <1711390000.65cdc4b5c59e37e8c555821d05743ca243155759.pacho@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: media-fonts/noto-emoji/
X-VCS-Repository: repo/gentoo
X-VCS-Files: media-fonts/noto-emoji/noto-emoji-20231130-r1.ebuild
X-VCS-Directories: media-fonts/noto-emoji/
X-VCS-Committer: pacho
X-VCS-Committer-Name: Pacho Ramos
X-VCS-Revision: 65cdc4b5c59e37e8c555821d05743ca243155759
X-VCS-Branch: master
Date: Mon, 25 Mar 2024 18:13:12 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 0dfe07a1-3fcd-4735-b48c-9c7f73e52606
X-Archives-Hash: bf270071ec6a0536de6e4a83b08d89db

commit:     65cdc4b5c59e37e8c555821d05743ca243155759
Author:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 25 18:06:40 2024 +0000
Commit:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Mon Mar 25 18:06:40 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65cdc4b5

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 <AT> gentoo.org>

 .../noto-emoji/noto-emoji-20231130-r1.ebuild       | 53 ++++++++++++++++++++++
 1 file changed, 53 insertions(+)

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
+}