diff options
Diffstat (limited to 'media-fonts/noto-emoji/noto-emoji-99999999.ebuild')
-rw-r--r-- | media-fonts/noto-emoji/noto-emoji-99999999.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/media-fonts/noto-emoji/noto-emoji-99999999.ebuild b/media-fonts/noto-emoji/noto-emoji-99999999.ebuild new file mode 100644 index 0000000..ecdbbf0 --- /dev/null +++ b/media-fonts/noto-emoji/noto-emoji-99999999.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Google Noto Emoji fonts" +HOMEPAGE="https://fonts.google.com/noto/specimen/Noto+Emoji" + +LICENSE="OFL-1.1" +SLOT="0" +KEYWORDS="~*" +IUSE="" + +PROPERTIES="live" + +BDEPEND=" + app-arch/unzip + || ( + net-misc/curl + net-misc/wget + ) +" + +S="${WORKDIR}" + +get() { + if hash curl 2>/dev/null; then + curl -Lf --retry 3 --connect-timeout 60 --speed-limit 300 --speed-time 10 "$@" + elif hash wget 2>/dev/null; then + wget -O- "$@" + else + die + fi +} + +src_unpack() { + get https://fonts.google.com/download?family=Noto%20Emoji > Noto_Emoji.zip || die + get https://fonts.google.com/download?family=Noto%20Color%20Emoji > Noto_Color_Emoji.zip || die + unzip Noto_Emoji.zip NotoEmoji-VariableFont_wght.ttf || die + unzip Noto_Color_Emoji.zip NotoColorEmoji-Regular.ttf || die +} + +src_install() { + insinto /usr/share/fonts/${PN} + doins NotoEmoji-VariableFont_wght.ttf + doins NotoColorEmoji-Regular.ttf +} |