From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 792BB158094 for ; Sun, 18 Sep 2022 11:09:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A8BEEE0845; Sun, 18 Sep 2022 11:09:29 +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 88F87E0845 for ; Sun, 18 Sep 2022 11:09:29 +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 9B6AE340E41 for ; Sun, 18 Sep 2022 11:09:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D21AA580 for ; Sun, 18 Sep 2022 11:09:26 +0000 (UTC) From: "Pacho Ramos" 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" Message-ID: <1663499355.b276702ef90ab5a2cb777a0d46b5062c5f501890.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/Manifest media-fonts/noto-emoji/noto-emoji-20220912.ebuild X-VCS-Directories: media-fonts/noto-emoji/ X-VCS-Committer: pacho X-VCS-Committer-Name: Pacho Ramos X-VCS-Revision: b276702ef90ab5a2cb777a0d46b5062c5f501890 X-VCS-Branch: master Date: Sun, 18 Sep 2022 11:09:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9691564c-f532-4cc5-96b9-9179b88fd56e X-Archives-Hash: 04c1307fca7617ffd89aea0fef0acc2a commit: b276702ef90ab5a2cb777a0d46b5062c5f501890 Author: Pacho Ramos gentoo org> AuthorDate: Sun Sep 18 11:04:40 2022 +0000 Commit: Pacho Ramos gentoo org> CommitDate: Sun Sep 18 11:09:15 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b276702e media-fonts/noto-emoji: add 20220912 Signed-off-by: Pacho Ramos gentoo.org> media-fonts/noto-emoji/Manifest | 1 + media-fonts/noto-emoji/noto-emoji-20220912.ebuild | 115 ++++++++++++++++++++++ 2 files changed, 116 insertions(+) diff --git a/media-fonts/noto-emoji/Manifest b/media-fonts/noto-emoji/Manifest index d0af93d87420..64dfda14efd4 100644 --- a/media-fonts/noto-emoji/Manifest +++ b/media-fonts/noto-emoji/Manifest @@ -1,2 +1,3 @@ DIST noto-emoji-20210715.tar.gz 166643705 BLAKE2B 355e993aee720e634d174fceb4d0d6b16ebce91cf948657428861fa63283120eef7fb706a5e6139f0ff7c13f0d72dc1c906ab30bc9b7509644ae6a56f4156e16 SHA512 2b1071c39d85f834baf4c9b6c59f9b06f1622bf972bac6087e0f44bd034025933b9a85a9a63a307f2e4b6337f8fbf7b11ba14838cd4bc13c8075b7ffae65ae78 DIST noto-emoji-20211101.tar.gz 170403395 BLAKE2B d37ef3b11c339d2d2f2a8c1b6370551c14fbe3d902a51a956b6cb89592001a751656a2050f6501619f770d53fefbdf6b1223725967206c9f13072928ebacbfe0 SHA512 b80d3ca838e0cc66b6b6af9b368164da3f40bd22cfbb1d923a172bd51e87f1db9b7722494f220e4e912160664bb1c5318bbd9253981c1262ce563482d6cad7a4 +DIST noto-emoji-20220912.tar.gz 178768907 BLAKE2B b998a74903e0a559e6c2d87f6d05649054728d5359659882c89b99fc41ec80f9dbafba6f418500059acef7bb85b9d60b189abea286c9c4cb5491f501095ca425 SHA512 4e9b01be1ac7853d840379f84350f2709212401ccebb221308eb83982a8673af9a8ef166952aba4d6f8d9939efc4989f38a7db69e022eb055f265ccba78884a6 diff --git a/media-fonts/noto-emoji/noto-emoji-20220912.ebuild b/media-fonts/noto-emoji/noto-emoji-20220912.ebuild new file mode 100644 index 000000000000..769bc79625a1 --- /dev/null +++ b/media-fonts/noto-emoji/noto-emoji-20220912.ebuild @@ -0,0 +1,115 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PYTHON_COMPAT=( python3_{8..10} ) + +inherit font python-any-r1 + +DESCRIPTION="Google Noto Emoji fonts" +HOMEPAGE="https://www.google.com/get/noto/ https://github.com/googlefonts/noto-emoji" + +COMMIT="e8073ab740292f8d5f19b5de144087ac58044d06" +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="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" + # Drop non used fonts + rm -f fonts/*COLR*.ttf || die + else + # Drop Windows compatible fonts and temporal files + rm -f *tmpl.ttf *Windows*.ttf *COLR*.ttf || die + + # Built fonts + 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 +}