forked from pool/lua-toluapp
- fix tumbleweed build - add scons-0.98.1-Options-deprecated.patch * Options object has been deprecated since scons 0.98.1 use newer Variables object if available OBS-URL: https://build.opensuse.org/request/show/679086 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-toluapp?expand=0&rev=19
18 lines
741 B
Diff
18 lines
741 B
Diff
Index: toluapp-1.0.93/SConstruct
|
|
===================================================================
|
|
--- toluapp-1.0.93.orig/SConstruct
|
|
+++ toluapp-1.0.93/SConstruct
|
|
@@ -16,7 +16,11 @@ elif 'msvc' in env['TOOLS']:
|
|
else:
|
|
options_file = "posix"
|
|
|
|
-opts = Options(["config_"+options_file+".py", "custom.py", "custom_"+options_file+".py"], ARGUMENTS)
|
|
+try:
|
|
+ opts = Variables(["config_"+options_file+".py", "custom.py", "custom_"+options_file+".py"], ARGUMENTS)
|
|
+except NameError:
|
|
+ opts = Options(["config_"+options_file+".py", "custom.py", "custom_"+options_file+".py"], ARGUMENTS)
|
|
+
|
|
opts.Add('CC', 'The C compiler.')
|
|
opts.Add('CXX', 'The C++ compiler (for the tests)')
|
|
opts.Add('CCFLAGS', 'Flags for the compiler.', ['-O2', '-Wall'])
|