mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-11 08:03:16 -04:00
media-fonts/twemoji: rename dep, drop old
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
@@ -1,4 +1,2 @@
|
||||
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
|
||||
|
||||
@@ -1,116 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
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"
|
||||
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
|
||||
$(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"
|
||||
|
||||
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() {
|
||||
has_version -b "dev-python/fonttools[${PYTHON_USEDEP}]" &&
|
||||
has_version -b "dev-python/nototools[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
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() {
|
||||
python_setup
|
||||
einfo "Building fonts..."
|
||||
|
||||
emake EMOJI=${PN^} EMOJI_SRC_DIR="assets/72x72" \
|
||||
FLAGS= BODY_DIMENSIONS=76x72 \
|
||||
BYPASS_SEQUENCE_CHECK=true \
|
||||
VIRTUAL_ENV=true
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
@@ -33,7 +33,7 @@ BDEPEND="
|
||||
)
|
||||
$(python_gen_any_dep '
|
||||
>=dev-python/fonttools-4.7.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/nototools-0.2.13[${PYTHON_USEDEP}]
|
||||
>=dev-python/notofonttools-0.2.13[${PYTHON_USEDEP}]
|
||||
')
|
||||
"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user