Skip to content

Commit

Permalink
media-fonts/noto-emoji: Version bump
Browse files Browse the repository at this point in the history
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
pacho2 committed Jun 2, 2019
1 parent 0309036 commit 2999756
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
1 change: 1 addition & 0 deletions media-fonts/noto-emoji/Manifest
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
63 changes: 63 additions & 0 deletions media-fonts/noto-emoji/noto-emoji-20190328.ebuild
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
}

0 comments on commit 2999756

Please sign in to comment.