From: | "Markos Chandras (hwoarang)" <hwoarang@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in media-gfx/mypaint/files: mypaint-0.9.0-gentoo.patch |
Date: | Fri, 31 Dec 2010 16:51:34 |
Message-Id: | 20101231165118.D836320057@flycatcher.gentoo.org |
1 | hwoarang 10/12/31 16:51:18 |
2 | |
3 | Added: mypaint-0.9.0-gentoo.patch |
4 | Log: |
5 | Ebuild moved from sunrise overlay. Thanks to Arne Babenhauserheide ,Mike Limansky and Mike Frysinger. Bug #197672 |
6 | |
7 | (Portage version: 2.1.9.26/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 media-gfx/mypaint/files/mypaint-0.9.0-gentoo.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/mypaint/files/mypaint-0.9.0-gentoo.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/mypaint/files/mypaint-0.9.0-gentoo.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: mypaint-0.9.0-gentoo.patch |
16 | =================================================================== |
17 | Index: mypaint-0.9.0/SConstruct |
18 | =================================================================== |
19 | --- mypaint-0.9.0.orig/SConstruct |
20 | +++ mypaint-0.9.0/SConstruct |
21 | @@ -64,6 +64,21 @@ if env['debug']: |
22 | env.Append(CPPDEFINES='HEAVY_DEBUG') |
23 | env.Append(CCFLAGS='-O0', LINKFLAGS='-O0') |
24 | |
25 | +# Respect cxxflags,ldflags and cxx |
26 | +# Code found on |
27 | +# http://http://dev.gentoo.org/~vapier/scons-blows.txt |
28 | +import SCons.Util |
29 | +if os.environ.has_key('CC'): |
30 | + env['CC'] = os.environ['CC'] |
31 | +if os.environ.has_key('CFLAGS'): |
32 | + env['CCFLAGS'] += SCons.Util.CLVar(os.environ['CFLAGS']) |
33 | +if os.environ.has_key('CXX'): |
34 | + env['CXX'] = os.environ['CXX'] |
35 | +if os.environ.has_key('CXXFLAGS'): |
36 | + env['CXXFLAGS'] += SCons.Util.CLVar(os.environ['CXXFLAGS']) |
37 | +if os.environ.has_key('LDFLAGS'): |
38 | + env['LINKFLAGS'] += SCons.Util.CLVar(os.environ['LDFLAGS']) |
39 | + |
40 | Export('env') |
41 | module = SConscript('lib/SConscript') |
42 | SConscript('brushlib/SConscript') |