diff options
Diffstat (limited to 'media-fonts/noto-emoji')
-rw-r--r-- | media-fonts/noto-emoji/Manifest | 1 | ||||
-rw-r--r-- | media-fonts/noto-emoji/noto-emoji-20231130.ebuild | 27 | ||||
-rw-r--r-- | media-fonts/noto-emoji/noto-emoji-99999999.ebuild | 47 |
3 files changed, 28 insertions, 47 deletions
diff --git a/media-fonts/noto-emoji/Manifest b/media-fonts/noto-emoji/Manifest new file mode 100644 index 0000000..7cf18a2 --- /dev/null +++ b/media-fonts/noto-emoji/Manifest @@ -0,0 +1 @@ +DIST Noto-COLRv1-d79d23e6822e0f6e5731b114cbfb26b2a4e380da.ttf 4760384 BLAKE2B 7a3190ed3c5f46cd6b15027792d203fef8b863f6bd93cafc3f4a6d043263c58aeb0976ed2be03da227a8f9e308d033322b830734126b27da0fc33656f66d88c1 SHA512 b7fc0e7e4a4c68a02635f3efd0e88e2292a7e85d871e28efc7596da7a11ed1413703a38e7a7bc9c94d0d34a79a22db587547876e633a8391b00500bfc020dae6 diff --git a/media-fonts/noto-emoji/noto-emoji-20231130.ebuild b/media-fonts/noto-emoji/noto-emoji-20231130.ebuild new file mode 100644 index 0000000..f42b3b9 --- /dev/null +++ b/media-fonts/noto-emoji/noto-emoji-20231130.ebuild @@ -0,0 +1,27 @@ +# 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="~*" +IUSE="" + +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 +} diff --git a/media-fonts/noto-emoji/noto-emoji-99999999.ebuild b/media-fonts/noto-emoji/noto-emoji-99999999.ebuild deleted file mode 100644 index ecdbbf0..0000000 --- a/media-fonts/noto-emoji/noto-emoji-99999999.ebuild +++ /dev/null @@ -1,47 +0,0 @@ -# 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 -} |