media-fonts/noto-emoji: Use proper png.py when building
authorPacho Ramos <pacho@gentoo.org>
Sun, 18 Nov 2018 10:52:25 +0000 (11:52 +0100)
committerPacho Ramos <pacho@gentoo.org>
Sun, 18 Nov 2018 10:52:51 +0000 (11:52 +0100)
Thanks-to: ILMostro
Thanks-to: Mike Gilbert
Closes: https://bugs.gentoo.org/671290
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

media-fonts/noto-emoji/files/noto-emoji-20180823-build-path.patch [new file with mode: 0644]
media-fonts/noto-emoji/noto-emoji-20180823.ebuild

diff --git a/media-fonts/noto-emoji/files/noto-emoji-20180823-build-path.patch b/media-fonts/noto-emoji/files/noto-emoji-20180823-build-path.patch
new file mode 100644 (file)
index 0000000..151f882
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/add_glyphs.py.old        2018-11-18 11:11:56.387323302 +0100
++++ b/add_glyphs.py    2018-11-18 11:12:18.203529159 +0100
+@@ -22,7 +22,7 @@
+ import add_emoji_gsub
+ import add_aliases
+-sys.path.append(
++sys.path.insert(0,
+     path.join(os.path.dirname(__file__), 'third_party', 'color_emoji'))
+ from png import PNG
index 847572c4ae704766180d34d62886e76ee3241d7d..52be1429c0d6cae41f63e3ebb497165ead30db94 100644 (file)
@@ -38,6 +38,9 @@ PATCHES=(
        # From Fedora
        "${FILESDIR}/${PN}-use-system-pngquant.patch"
        "${FILESDIR}/${PN}-build-all-flags.patch"
+
+       # https://github.com/googlei18n/noto-emoji/issues/240
+       "${FILESDIR}/${PN}-20180823-build-path.patch"
 )
 
 src_prepare() {