media-gfx/gimp: Fix build system (bug #589394)
authorSebastian Pipping <sping@gentoo.org>
Fri, 22 Jul 2016 23:28:38 +0000 (01:28 +0200)
committerSebastian Pipping <sping@gentoo.org>
Fri, 22 Jul 2016 23:28:49 +0000 (01:28 +0200)
Package-Manager: portage-2.2.28

media-gfx/gimp/files/gimp-2.9.4-mkdir-makefile.patch [new file with mode: 0644]
media-gfx/gimp/gimp-2.9.4.ebuild

diff --git a/media-gfx/gimp/files/gimp-2.9.4-mkdir-makefile.patch b/media-gfx/gimp/files/gimp-2.9.4-mkdir-makefile.patch
new file mode 100644 (file)
index 0000000..661ad69
--- /dev/null
@@ -0,0 +1,36 @@
+From c081a26345ad1c5bdf6f4ffec27bca517de6d594 Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Sat, 23 Jul 2016 01:02:10 +0200
+Subject: [PATCH] Fix creation of output directories
+
+https://bugs.gentoo.org/show_bug.cgi?id=589394
+---
+ icons/Symbolic-Inverted/Makefile.am | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/icons/Symbolic-Inverted/Makefile.am b/icons/Symbolic-Inverted/Makefile.am
+index 2981cfc..f3fe6a5 100644
+--- a/icons/Symbolic-Inverted/Makefile.am
++++ b/icons/Symbolic-Inverted/Makefile.am
+@@ -10,14 +10,14 @@ include $(top_srcdir)/icons/icon-list.mk
+ # As exceptions, we do not want to invert some icons.
+ # Just use these as-is: gimp-default-colors, gimp-toilet-paper.png.
+ 12/gimp-default-colors.png: $(top_srcdir)/icons/Symbolic/12/gimp-default-colors.png
+-      mkdir -p `dirname $<` && cp -f $< $@
++      mkdir -p `dirname $@` && cp -f $< $@
+ scalable/gimp-default-colors.svg: ../Symbolic/scalable/gimp-default-colors.svg
+-      mkdir -p `dirname $<` && cp -f $< $@
++      mkdir -p `dirname $@` && cp -f $< $@
+ %/gimp-toilet-paper.png: $(top_srcdir)/icons/Symbolic/$(@D)/gimp-toilet-paper.png
+-      mkdir -p `dirname $<` && cp -f $< $@
++      mkdir -p `dirname $@` && cp -f $< $@
+ scalable/gimp-toilet-paper.svg: ../Symbolic/scalable/gimp-toilet-paper.svg
+-      mkdir -p `dirname $<` && cp -f $< $@
++      mkdir -p `dirname $@` && cp -f $< $@
+ # Other exceptions: inverted gimp-color-picker-white|black are generated
+ # from each other.
+-- 
+2.9.2
+
index 553a34ce5dd3d6cab696ec6a8a765e503052c70c..0b34d4d653c783aa72e3dcc4ae3b5fd6a2d8f6a8 100644 (file)
@@ -117,6 +117,10 @@ src_prepare() {
        epatch "${FILESDIR}"/${PN}-2.9.2-no-deprecation.patch  # bug 395695, comment 9 and 16
        epatch "${FILESDIR}"/${PN}-2.9.4-gegl-bin.patch
 
+       # Bug 589394
+       rm icons/Symbolic-Inverted/Makefile.in || die
+       epatch "${FILESDIR}"/${PN}-2.9.4-mkdir-makefile.patch
+
        sed -i -e 's/== "xquartz"/= "xquartz"/' configure.ac || die #494864
        eautoreconf  # If you remove this: remove dev-util/gtk-doc-am from DEPEND, too