From 821f5674f184337ec4ca2d8a18fec3b8e22189ce Mon Sep 17 00:00:00 2001 From: "Alex Xu (Hello71)" Date: Tue, 28 Mar 2023 21:44:39 -0400 Subject: media-fonts/noto-emoji: fix --- media-fonts/noto-emoji/Manifest | 1 - media-fonts/noto-emoji/noto-emoji-99999999.ebuild | 23 +++++++++++++++++++++-- 2 files changed, 21 insertions(+), 3 deletions(-) delete mode 100644 media-fonts/noto-emoji/Manifest diff --git a/media-fonts/noto-emoji/Manifest b/media-fonts/noto-emoji/Manifest deleted file mode 100644 index 6e22e6a..0000000 --- a/media-fonts/noto-emoji/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST Noto_Emoji.zip 4053149 BLAKE2B a2d0259807070742e807f17b283d409ce6b28496d373aea56904b6a111c36c53fafd1374127ab3b6034bb61fa35d034849807bb18076116549bcdef000dc2522 SHA512 ed2092f6e68e7f69b0986d92d4e1ff80fba4de9d1990ee8e2aec42115e2c0dd4d69befe4c74597d3d3b7c64a25b957282a93223ce5128cbb42d8dca96d15b996 diff --git a/media-fonts/noto-emoji/noto-emoji-99999999.ebuild b/media-fonts/noto-emoji/noto-emoji-99999999.ebuild index 8ee3a59..828688d 100644 --- a/media-fonts/noto-emoji/noto-emoji-99999999.ebuild +++ b/media-fonts/noto-emoji/noto-emoji-99999999.ebuild @@ -6,19 +6,38 @@ EAPI=7 DESCRIPTION="Google Noto Emoji fonts" HOMEPAGE="https://fonts.google.com/noto/specimen/Noto+Emoji" -SRC_URI="https://fonts.google.com/download?family=Noto%20Emoji -> Noto_Emoji.zip" - 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 + unzip Noto_Emoji.zip || die +} + src_install() { insinto /usr/share/fonts/${PN} doins NotoEmoji-VariableFont_wght.ttf -- cgit v1.2.3-70-g09d2