media-fonts/noto-emoji: Bump to newer snapshot
authorPacho Ramos <pacho@gentoo.org>
Wed, 11 Mar 2020 19:45:46 +0000 (20:45 +0100)
committerPacho Ramos <pacho@gentoo.org>
Wed, 11 Mar 2020 19:47:38 +0000 (20:47 +0100)
Closes: https://bugs.gentoo.org/701702
Closes: https://bugs.gentoo.org/710698
Package-Manager: Portage-2.3.93, Repoman-2.3.20
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
media-fonts/noto-emoji/Manifest
media-fonts/noto-emoji/noto-emoji-20200311.ebuild [new file with mode: 0644]

index c3cd4fffbe2d4120c1ebba2b88e93e788bfe185f..29ec1902a9a20c453026dc3d683d1346ea16feda 100644 (file)
@@ -1,2 +1,3 @@
 DIST noto-emoji-20180823.tar.gz 51710829 BLAKE2B 66983bdd3cb5e95727f0ddebca5d85c3f22bb9e7b9216eb1af41c4cba19f2020592be3feb7ac47f723985574b8d57070d9d07d0ce5e5870512aecc2a55b52995 SHA512 73233f3742faae4e37f8588bda097fe9f745f5cc7e6601301c1dc9e30d656c496e074c80bf4391708f6c0dbe32043e8558e4395cce5dbf735772b0e41642b9bf
 DIST noto-emoji-20190328.tar.gz 51710517 BLAKE2B ecedc52d3bdc49281942e7cb6b217928ee57412a420da251855c702e444c5d720464093c173f2878c09b4ef7123aedcfc3aa6aa517a625749d414e4c3b08bd19 SHA512 9e775a18a43edadb24fee498a8dff588949475ba27c2daddc1dfb6eacc18d1bf8810ec88e018398f18efe9ff0c414766f569eec7a714e119f3aabdfbe3ceec98
+DIST noto-emoji-20200311.tar.gz 58539077 BLAKE2B 837ae7ef6a571e40b4ed83a0aa1edfd13404c3ca65e671cdc86f650e63cf77179ef283e6dc032fb93f5107411565f980e594be8880626417fa89c67347e6fe62 SHA512 cfafe9c06ccbf888eb1309dc2090abef2f92c0592460693cb45db8ab147311fdd63655d8df182043f05cf503bdfbe16563bc8cea0bddcd830fe193ca86f7fcfb
diff --git a/media-fonts/noto-emoji/noto-emoji-20200311.ebuild b/media-fonts/noto-emoji/noto-emoji-20200311.ebuild
new file mode 100644 (file)
index 0000000..273566f
--- /dev/null
@@ -0,0 +1,65 @@
+# 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="4325631b45027a3d4da9a0f08f829e790f86ff4d"
+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
+       $(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"
+
+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
+}