summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/mypaint/files/mypaint-1.1.0-gentoo.patch')
-rw-r--r--media-gfx/mypaint/files/mypaint-1.1.0-gentoo.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/media-gfx/mypaint/files/mypaint-1.1.0-gentoo.patch b/media-gfx/mypaint/files/mypaint-1.1.0-gentoo.patch
new file mode 100644
index 000000000000..641ace05ea57
--- /dev/null
+++ b/media-gfx/mypaint/files/mypaint-1.1.0-gentoo.patch
@@ -0,0 +1,36 @@
+diff -ru mypaint-1.1.0-orig/desktop/mypaint.desktop mypaint-1.1.0/desktop/mypaint.desktop
+--- mypaint-1.1.0-orig/desktop/mypaint.desktop 2012-12-31 21:03:38.000000000 +0400
++++ mypaint-1.1.0/desktop/mypaint.desktop 2013-01-06 15:21:11.468785464 +0400
+@@ -1,6 +1,5 @@
+ [Desktop Entry]
+ Version=1.0
+-Encoding=UTF-8
+ Name=MyPaint
+ TryExec=mypaint
+ Exec=mypaint %f
+diff -ru mypaint-1.1.0-orig/SConstruct mypaint-1.1.0/SConstruct
+--- mypaint-1.1.0-orig/SConstruct 2012-12-31 21:03:38.000000000 +0400
++++ mypaint-1.1.0/SConstruct 2013-01-06 15:20:17.640771176 +0400
+@@ -1,6 +1,7 @@
+ import os, sys
+ from os.path import join, basename
+ from SCons.Script.SConscript import SConsEnvironment
++from SCons.Util import CLVar
+
+ EnsureSConsVersion(1, 0)
+
+@@ -75,6 +76,14 @@
+
+ env.Append(RPATH = env.Literal(os.path.join('\\$$ORIGIN')))
+
++for key in ['CC', 'CXX']:
++ if os.environ.has_key(key):
++ env[key] = os.environ[key]
++
++for key in ['CFLAGS', 'CXXFLAGS']:
++ if os.environ.has_key(key):
++ env[key] += CLVar(os.environ[key])
++
+ # remove libraries produced by earlier versions, which are actually
+ # being used if they keep lying around, leading to mysterious bugs
+ env.Execute('rm -f libmypaint-tests.so libmypaint.so libmypaintlib.so')