summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2020-04-04 11:34:02 +0200
committerPacho Ramos <pacho@gentoo.org>2020-04-04 11:34:02 +0200
commitecb184c77771bb4cac05252596b9ae9382a7cf19 (patch)
tree5b7bf94ef5aa384c8d12ba002c41e4e25a099945 /media-fonts/noto-emoji
parentsys-auth/elogind: Drop 241.4 (diff)
downloadgentoo-ecb184c77771bb4cac05252596b9ae9382a7cf19.tar.gz
gentoo-ecb184c77771bb4cac05252596b9ae9382a7cf19.tar.bz2
gentoo-ecb184c77771bb4cac05252596b9ae9382a7cf19.zip
media-fonts/noto-emoji: Version bump
Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Pacho Ramos <pacho@gentoo.org>
Diffstat (limited to 'media-fonts/noto-emoji')
-rw-r--r--media-fonts/noto-emoji/Manifest1
-rw-r--r--media-fonts/noto-emoji/noto-emoji-20200317.ebuild70
2 files changed, 71 insertions, 0 deletions
diff --git a/media-fonts/noto-emoji/Manifest b/media-fonts/noto-emoji/Manifest
index 51b59084932e..6a60a0dc645a 100644
--- a/media-fonts/noto-emoji/Manifest
+++ b/media-fonts/noto-emoji/Manifest
@@ -1 +1,2 @@
DIST noto-emoji-20200311.tar.gz 58539077 BLAKE2B 837ae7ef6a571e40b4ed83a0aa1edfd13404c3ca65e671cdc86f650e63cf77179ef283e6dc032fb93f5107411565f980e594be8880626417fa89c67347e6fe62 SHA512 cfafe9c06ccbf888eb1309dc2090abef2f92c0592460693cb45db8ab147311fdd63655d8df182043f05cf503bdfbe16563bc8cea0bddcd830fe193ca86f7fcfb
+DIST noto-emoji-20200317.tar.gz 60841240 BLAKE2B aab99a5cbab6943b9e282b33dc113601489c7d02a3670db8675e6c90be615ceaf0f2900bdbc68ffaca6130f4e724b2ec1001cfccce80a181208ace0638492b7e SHA512 958a589ef7d7a0b9e4fa3eb1caa20284fa7463419a740d0ca05f850618324883c13498f92839476042cfd1daffa7eff925b2f22ec318c0726391f69c04911bfb
diff --git a/media-fonts/noto-emoji/noto-emoji-20200317.ebuild b/media-fonts/noto-emoji/noto-emoji-20200317.ebuild
new file mode 100644
index 000000000000..4006861c9605
--- /dev/null
+++ b/media-fonts/noto-emoji/noto-emoji-20200317.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python3_{6,7} )
+
+inherit font python-any-r1
+
+DESCRIPTION="Google Noto Emoji fonts"
+HOMEPAGE="https://www.google.com/get/noto/ https://github.com/googlei18n/noto-emoji"
+
+COMMIT="ac1703e9d7feebbf5443a986e08332b1e1c5afcf"
+SRC_URI="https://github.com/googlei18n/noto-emoji/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0 OFL-1.1"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND="${PYTHON_DEPS}
+ app-arch/zopfli
+ $(python_gen_any_dep '
+ dev-python/fonttools[${PYTHON_USEDEP}]
+ dev-python/nototools[${PYTHON_USEDEP}]
+ ')
+ media-gfx/pngquant
+ x11-libs/cairo
+ || ( media-gfx/imagemagick[png] media-gfx/graphicsmagick[png] )
+"
+RDEPEND=""
+
+RESTRICT="binchecks strip"
+
+S="${WORKDIR}/${PN}-${COMMIT}"
+
+FONT_S="${S}"
+FONT_SUFFIX="ttf"
+
+python_check_deps() {
+ has_version "dev-python/fonttools[${PYTHON_USEDEP}]" && \
+ has_version "dev-python/nototools[${PYTHON_USEDEP}]"
+}
+
+PATCHES=(
+ # From Fedora
+ "${FILESDIR}/${PN}-build-all-flags.patch"
+
+ # https://github.com/googlei18n/noto-emoji/issues/240
+ "${FILESDIR}/${PN}-20180823-build-path.patch"
+)
+
+src_prepare() {
+ default
+
+ # Based on Fedora patch to allow graphicsmagick usage
+ if has_version media-gfx/graphicsmagick; then
+ eapply "${FILESDIR}/${PN}-20190328-use-gm.patch"
+ fi
+}
+
+src_install() {
+ font_src_install
+
+ # Don't lose fancy emoji icons
+ insinto /usr/share/icons/"${PN}"/128x128/emotes/
+ doins png/128/*.png
+
+ insinto /usr/share/icons/"${PN}"/scalable/emotes/
+ doins svg/*.svg
+}