Install this version:
emerge -a =media-fonts/twemoji-17.0.2
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =media-fonts/twemoji-17.0.2
Or alternatively:
emerge --autounmask-write -a =media-fonts/twemoji-17.0.2
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# shellcheck shell=bash
# shellcheck disable=SC2034
EAPI=8
inherit font desktop
DESCRIPTION="A color emoji font with a flat visual style"
HOMEPAGE="https://github.com/jdecked/twemoji"
# prebuilt font from AUR package
# https://aur.archlinux.org/packages/ttf-twemoji
# JoeBlakeB/ttf-twemoji/releases -> ttf file
# JoeBlakeB/ttf-twemoji/archive -> fontconfig file
# jdecked/twemoji -> icons
SRC_URI="
https://github.com/JoeBlakeB/ttf-${PN}/releases/download/${PV}/${P^}.ttf
https://github.com/JoeBlakeB/ttf-${PN}/archive/${PV}.tar.gz
-> ${P}-configs.tar.gz
icons? (
https://github.com/jdecked/${PN}/archive/v${PV}.tar.gz
-> ${P}-icons.tar.gz
)
"
# default requires USE=icons
S="${WORKDIR}"
LICENSE="Apache-2.0 CC-BY-4.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
IUSE="icons"
src_prepare() {
default
if use icons; then
pushd "${P}/assets/72x72" || die
for png in *.png; do
mv "${png}" emoji_u"${png//-/_}" || die
done
popd || die
pushd "${P}/assets/svg" || die
for svg in *.svg; do
mv "${svg}" emoji_u"${svg//-/_}" || die
done
popd || die
fi
mkdir fonts-install
cp -t fonts-install "${DISTDIR}/${P^}.ttf" || die
}
src_install() {
# don't lose fancy emoji icons
if use icons; then
doicon --size 72 --context emotes --theme "${PN}" "${P}/assets/72x72"
doicon --size scalable --context emotes --theme "${PN}" "${P}/assets/svg"
fi
FONT_S="${S}/fonts-install"
FONT_SUFFIX="ttf"
FONT_CONF=( "${S}/ttf-${P}/AUR/75-${PN}.conf" )
font_src_install
}
Manage flags for this package:
euse -i <flag> -p media-fonts/twemoji |
euse -E <flag> -p media-fonts/twemoji |
euse -D <flag> -p media-fonts/twemoji
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | Twemoji-17.0.2.ttf | 3857500 bytes | https://github.com/JoeBlakeB/ttf-twemoji/releases/download/17.0.2/Twemoji-17.0.2.ttf |
| DIST | twemoji-17.0.2-configs.tar.gz | 8385 bytes | https://github.com/JoeBlakeB/ttf-twemoji/archive/17.0.2.tar.gz |
| DIST | twemoji-17.0.2-icons.tar.gz | 5913145 bytes | https://github.com/jdecked/twemoji/archive/v17.0.2.tar.gz |