summaryrefslogtreecommitdiff
path: root/media-fonts/noto-emoji/noto-emoji-20231130.ebuild
blob: 5c0337f9749b9b6f13f1519cf55099e8afb9f7f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Copyright 1999-2022 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+Emoji"

LICENSE="OFL-1.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"

COMMIT="d79d23e6822e0f6e5731b114cbfb26b2a4e380da"
SRC_URI="https://github.com/googlefonts/noto-emoji/raw/${COMMIT}/fonts/Noto-COLRv1.ttf -> Noto-COLRv1-${COMMIT}.ttf"

S="${WORKDIR}"

FONT_SUFFIX="ttf"

src_compile() {
	for f in "${DISTDIR}"/*.ttf; do
		fn=${f##*/}
		cp "$f" "${fn/-$COMMIT}"
	done
}