diff options
author | Alex Xu (Hello71) <alex_y_xu@yahoo.ca> | 2023-03-28 21:44:39 -0400 |
---|---|---|
committer | Alex Xu (Hello71) <alex_y_xu@yahoo.ca> | 2023-03-28 21:44:39 -0400 |
commit | 821f5674f184337ec4ca2d8a18fec3b8e22189ce (patch) | |
tree | cba10b5fd4ee0ca704ccbf93c6393289f0d0c08b /media-fonts/noto-emoji | |
parent | 8a7af49579922ef57c348f331581d5d565598c7c (diff) | |
download | gentoo-overlay-821f5674f184337ec4ca2d8a18fec3b8e22189ce.tar.xz gentoo-overlay-821f5674f184337ec4ca2d8a18fec3b8e22189ce.zip |
media-fonts/noto-emoji: fix
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-99999999.ebuild | 23 |
2 files changed, 21 insertions, 3 deletions
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 |