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 D21E215802F for ; Mon, 13 Mar 2023 08:29:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E7CC6E07EE; Mon, 13 Mar 2023 08:29:57 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C5E37E07EE for ; Mon, 13 Mar 2023 08:29:57 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 01615340D8C for ; Mon, 13 Mar 2023 08:29:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 08EA28E2 for ; Mon, 13 Mar 2023 08:29:53 +0000 (UTC) From: "Viorel Munteanu" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Viorel Munteanu" Message-ID: <1678619596.3d5c97bd0a06c624afc8a8aac9618ba5b9105129.ceamac@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: media-fonts/twemoji/ X-VCS-Repository: repo/proj/guru X-VCS-Files: media-fonts/twemoji/Manifest media-fonts/twemoji/twemoji-14.0.2.ebuild X-VCS-Directories: media-fonts/twemoji/ X-VCS-Committer: ceamac X-VCS-Committer-Name: Viorel Munteanu X-VCS-Revision: 3d5c97bd0a06c624afc8a8aac9618ba5b9105129 X-VCS-Branch: master Date: Mon, 13 Mar 2023 08:29:53 +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: f05291ca-857e-46e5-b224-40beea39c499 X-Archives-Hash: 05d9c93ddd448fbba2f384d3ff8313b1 commit: 3d5c97bd0a06c624afc8a8aac9618ba5b9105129 Author: Anna (cybertailor) Vyalkova sysrq in> AuthorDate: Sun Mar 12 11:13:16 2023 +0000 Commit: Viorel Munteanu gentoo org> CommitDate: Sun Mar 12 11:13:16 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3d5c97bd media-fonts/twemoji: add 14.0.2 Signed-off-by: Anna (cybertailor) Vyalkova sysrq.in> media-fonts/twemoji/Manifest | 2 + media-fonts/twemoji/twemoji-14.0.2.ebuild | 127 ++++++++++++++++++++++++++++++ 2 files changed, 129 insertions(+) diff --git a/media-fonts/twemoji/Manifest b/media-fonts/twemoji/Manifest index c46d4e0c7..a68b67968 100644 --- a/media-fonts/twemoji/Manifest +++ b/media-fonts/twemoji/Manifest @@ -1,2 +1,4 @@ DIST twemoji-13.1.0-noto.tar.gz 170352518 BLAKE2B 545e58d47b247998c0f376bbc9ec43fcb2ac4c1d24465420ae43a168987dcb7c4eba873b9cc64cfc6ffce3290551242d7e44ed69606f9c3d8a59dbeeddc3cdb2 SHA512 a7ea0c33f4703749d8a30f4be2fac5971429dcec7b6feed2645854d9ae1eebb428597a56ad148c3732e320a65d4133da30c0003ed39f07c5270462e31fdf3d0b DIST twemoji-13.1.0.tar.gz 4646713 BLAKE2B b144e76f2428d1fc523742a9501ac7c73af04e9d0ce4c1b5c5131da21d2a69416a8f3512dd0ffd01dd44e7b7620311abb8ced5c45f10c70ca9ec20406583820c SHA512 a1463c76a2bbcece8871cb868967c0bff74a495bf88d28e41c8962ed12ffba1966ee622f72f6da2222a06db8debb62ae89fe1fffcd9272e8aa3fcc029713115b +DIST twemoji-14.0.2-noto.tar.gz 170352518 BLAKE2B 545e58d47b247998c0f376bbc9ec43fcb2ac4c1d24465420ae43a168987dcb7c4eba873b9cc64cfc6ffce3290551242d7e44ed69606f9c3d8a59dbeeddc3cdb2 SHA512 a7ea0c33f4703749d8a30f4be2fac5971429dcec7b6feed2645854d9ae1eebb428597a56ad148c3732e320a65d4133da30c0003ed39f07c5270462e31fdf3d0b +DIST twemoji-14.0.2.tar.gz 4758975 BLAKE2B d339dd65d176888391195393137d295ffd5d5b9f98fed77268935f07445a2f505838fa74ae724f4a10f1dc9cffa7ef1f85b2652a50182713a4af500e90979cf8 SHA512 2256c473888817b4802f4b26069f4d04eccff1621ec9595bb0696f1be54664add8c2d56f87cee06451eb2cbb8969d29cccdd56d10d5f11bcff08881c96d4ead2 diff --git a/media-fonts/twemoji/twemoji-14.0.2.ebuild b/media-fonts/twemoji/twemoji-14.0.2.ebuild new file mode 100644 index 000000000..3018bc88d --- /dev/null +++ b/media-fonts/twemoji/twemoji-14.0.2.ebuild @@ -0,0 +1,127 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PYTHON_COMPAT=( python3_{9..10} ) + +inherit font python-any-r1 + +NOTO_PV="2.034" +DESCRIPTION="A color emoji font with a flat visual style, designed and used by Twitter" +HOMEPAGE=" + https://twemoji.twitter.com + https://github.com/twitter/twemoji +" +SRC_URI=" + https://github.com/googlefonts/noto-emoji/archive/refs/tags/v${NOTO_PV}.tar.gz -> ${P}-noto.tar.gz + https://github.com/twitter/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz +" +S="${WORKDIR}/noto-emoji-${NOTO_PV}" + +LICENSE="Apache-2.0 CC-BY-4.0 MIT OFL-1.1" +SLOT="0" +KEYWORDS="~amd64" + +BDEPEND=" + ${PYTHON_DEPS} + app-arch/zopfli + media-gfx/pngquant + x11-libs/cairo + || ( + media-gfx/imagemagick[png] + media-gfx/graphicsmagick[png] + ) + $(python_gen_any_dep ' + >=dev-python/fonttools-4.7.0[${PYTHON_USEDEP}] + >=dev-python/nototools-0.2.13[${PYTHON_USEDEP}] + ') +" + +RESTRICT="binchecks strip" + +DOCS=( CONTRIBUTING.md FOLDERS.md LEGACY.md README.md ) + +PATCHES=( + # https://github.com/googlei18n/noto-emoji/issues/240 + "${FILESDIR}"/noto-build-path.patch + # Be more verbose + "${FILESDIR}"/noto-pngquant-verbose.patch + +) + +FONT_S="${S}" +FONT_SUFFIX="ttf" +FONT_CONF=( "${FILESDIR}"/75-${PN}.conf ) + +python_check_deps() { + python_has_version "dev-python/fonttools[${PYTHON_USEDEP}]" && + python_has_version "dev-python/nototools[${PYTHON_USEDEP}]" +} + +pkg_setup() { + python-any-r1_pkg_setup + font_pkg_setup +} + +src_unpack() { + default + + mv "${WORKDIR}"/${P}/assets "${S}" || die + mv "${WORKDIR}"/${P}/*.md "${S}" || die +} + +src_prepare() { + default + + # Be more verbose + sed -i -e 's:\(@$(ZOPFLIPNG) -y "$<" "$@"\) 1> /dev/null 2>&1:\1:g' Makefile || die + + # Based on Fedora patch to allow graphicsmagick usage + if has_version -b media-gfx/graphicsmagick; then + eapply "${FILESDIR}/noto-use-gm.patch" + fi + + sed NotoColorEmoji.tmpl.ttx.tmpl \ + -e "s/Noto Color Emoji/${PN^}/" \ + -e "s/NotoColorEmoji/${PN^}/" \ + -e "s/Copyright .* Google Inc\./Twitter, Inc and other contributors./" \ + -e "s/ Version .*/ ${PV}/" \ + -e "s/.*is a trademark.*//" \ + -e "s/Google, Inc\./Twitter, Inc and other contributors/" \ + -e "s,http://www.google.com/get/noto/,https://twemoji.twitter.com," \ + -e "s/.*is licensed under.*/ Creative Commons Attribution 4.0 International/" \ + -e "s,http://scripts.sil.org/OFL,http://creativecommons.org/licenses/by/4.0/," \ + > ${PN^}.tmpl.ttx.tmpl || die + + pushd assets/72x72 || die + for png in *.png; do + mv ${png} emoji_u${png//-/_} || die + done +} + +src_compile() { + local mymakeflags=( + EMOJI="${PN^}" + EMOJI_SRC_DIR="assets/72x72" + FLAGS="" + BODY_DIMENSIONS="76x72" + BYPASS_SEQUENCE_CHECK="true" + VIRTUAL_ENV="true" + ) + + emake "${mymakeflags[@]}" +} + +src_install() { + rm NotoColorEmoji_WindowsCompatible.ttf *.tmpl.ttf || die + + # Don't lose fancy emoji icons + insinto /usr/share/icons/${PN}/72/emotes/ + doins assets/72x72/*.png + + insinto /usr/share/icons/${PN}/scalable/emotes/ + doins assets/svg/*.svg + + font_src_install + einstalldocs +}