forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media-fonts/noto-emoji: Version bump
Bug: https://bugs.gentoo.org/687094 Package-Manager: Portage-2.3.67, Repoman-2.3.13 Signed-off-by: Pacho Ramos <[email protected]>
- Loading branch information
Showing
2 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DIST noto-emoji-20180823.tar.gz 51710829 BLAKE2B 66983bdd3cb5e95727f0ddebca5d85c3f22bb9e7b9216eb1af41c4cba19f2020592be3feb7ac47f723985574b8d57070d9d07d0ce5e5870512aecc2a55b52995 SHA512 73233f3742faae4e37f8588bda097fe9f745f5cc7e6601301c1dc9e30d656c496e074c80bf4391708f6c0dbe32043e8558e4395cce5dbf735772b0e41642b9bf | ||
DIST noto-emoji-20190328.tar.gz 51710517 BLAKE2B ecedc52d3bdc49281942e7cb6b217928ee57412a420da251855c702e444c5d720464093c173f2878c09b4ef7123aedcfc3aa6aa517a625749d414e4c3b08bd19 SHA512 9e775a18a43edadb24fee498a8dff588949475ba27c2daddc1dfb6eacc18d1bf8810ec88e018398f18efe9ff0c414766f569eec7a714e119f3aabdfbe3ceec98 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Copyright 1999-2019 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="e7490e1841094da518f4672398bdd74ee3c5fcac" | ||
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}-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 | ||
} |