summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2018-11-10 14:23:59 +0100
committerPacho Ramos <pacho@gentoo.org>2018-11-10 14:23:59 +0100
commitc76ec98381f5a710e4032177cb0ad2496b477769 (patch)
treef07f987bc45d46cc8e1b113b5c26138515770d7b /media-fonts/noto-emoji
parentmedia-video/motiontrack: Sort keywords (diff)
downloadgentoo-c76ec98381f5a710e4032177cb0ad2496b477769.tar.gz
gentoo-c76ec98381f5a710e4032177cb0ad2496b477769.tar.bz2
gentoo-c76ec98381f5a710e4032177cb0ad2496b477769.zip
media-fonts/noto-emoji: Version bump, provide also the icons
Signed-off-by: Pacho Ramos <pacho@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'media-fonts/noto-emoji')
-rw-r--r--media-fonts/noto-emoji/Manifest1
-rw-r--r--media-fonts/noto-emoji/noto-emoji-20180823.ebuild63
2 files changed, 64 insertions, 0 deletions
diff --git a/media-fonts/noto-emoji/Manifest b/media-fonts/noto-emoji/Manifest
index 79d84c3fc5b3..49ac946d8509 100644
--- a/media-fonts/noto-emoji/Manifest
+++ b/media-fonts/noto-emoji/Manifest
@@ -1 +1,2 @@
DIST noto-emoji-20180814.tar.gz 51709109 BLAKE2B 9678861973b231de48b11dc9267840e4a4a6689c7c26281dfc1d6b0d4c1c1c627b503226d7eeac2f568dc19162c669b54c8dd34f5aa449850797437cf3a2e8cb SHA512 bca0fb73d3897c4ec1ba94173fda17804cdf2dfa365aa4a19bf1d24e9a94806bcdd5e6eb6304eb3e2312b37f37fa917905be6fe11c84510214f0eba70f426ea8
+DIST noto-emoji-20180823.tar.gz 51710829 BLAKE2B 66983bdd3cb5e95727f0ddebca5d85c3f22bb9e7b9216eb1af41c4cba19f2020592be3feb7ac47f723985574b8d57070d9d07d0ce5e5870512aecc2a55b52995 SHA512 73233f3742faae4e37f8588bda097fe9f745f5cc7e6601301c1dc9e30d656c496e074c80bf4391708f6c0dbe32043e8558e4395cce5dbf735772b0e41642b9bf
diff --git a/media-fonts/noto-emoji/noto-emoji-20180823.ebuild b/media-fonts/noto-emoji/noto-emoji-20180823.ebuild
new file mode 100644
index 000000000000..847572c4ae70
--- /dev/null
+++ b/media-fonts/noto-emoji/noto-emoji-20180823.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_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="07ad7f0f4dc1bfb03221c2004c7cc60c6b79b25e"
+SRC_URI="https://github.com/googlei18n/noto-emoji/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND="${PYTHON_DEPS}
+ app-arch/zopfli
+ dev-python/fonttools
+ dev-python/nototools
+ 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"
+
+PATCHES=(
+ # From Fedora
+ "${FILESDIR}/${PN}-use-system-pngquant.patch"
+ "${FILESDIR}/${PN}-build-all-flags.patch"
+)
+
+src_prepare() {
+ default
+ # Use system pngquant
+ rm -rf third_party/pngquant
+
+ # Fedora patch to allow graphicsmagick usage
+ if has_version media-gfx/graphicsmagick; then
+ eapply "${FILESDIR}/${PN}-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
+}