summaryrefslogtreecommitdiff
path: root/games-board/pouetchess/files/pouetchess-0.2.0-sconstruct-sandbox.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-board/pouetchess/files/pouetchess-0.2.0-sconstruct-sandbox.patch
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'games-board/pouetchess/files/pouetchess-0.2.0-sconstruct-sandbox.patch')
-rw-r--r--games-board/pouetchess/files/pouetchess-0.2.0-sconstruct-sandbox.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/games-board/pouetchess/files/pouetchess-0.2.0-sconstruct-sandbox.patch b/games-board/pouetchess/files/pouetchess-0.2.0-sconstruct-sandbox.patch
new file mode 100644
index 000000000000..8378a1d7223d
--- /dev/null
+++ b/games-board/pouetchess/files/pouetchess-0.2.0-sconstruct-sandbox.patch
@@ -0,0 +1,29 @@
+--- a/SConstruct
++++ b/SConstruct
+@@ -22,14 +22,24 @@
+
+
+
+-import os,glob
++import os,glob,SCons.Util
+
+
++# https://dev.gentoo.org/~vapier/scons-blows.txt
+
+ # create build environment
+
++env = Environment()
++env.SConsignFile()
+ env = Environment(tools = ['default', 'pouetChess'], toolpath = ['.'])
+-env.AppendUnique(CXXFLAGS = ['-Wall'])
++env['CC'] = os.environ['CC']
++env['CXX'] = os.environ['CXX']
++if os.environ.has_key('CFLAGS'):
++ env['CCFLAGS'] = SCons.Util.CLVar(os.environ['CFLAGS'])
++if os.environ.has_key('CXXFLAGS'):
++ env['CXXFLAGS'] = SCons.Util.CLVar(os.environ['CXXFLAGS'])
++if os.environ.has_key('LDFLAGS'):
++ env['LINKFLAGS'] = SCons.Util.CLVar(os.environ['LDFLAGS'])
+
+ # gather a list of source files
+ SOURCES = glob.glob('src/*.cpp')