SHA256
11
0
forked from pool/lua-toluapp
Files
lua-toluapp/toluapp-scons-py3.patch
Matěj Cepl f65d33d8ae Make the package buildable with LuaJIT.
Add lua-compatibility.patch to cover for the incompatibilities.
2025-10-13 18:38:50 +02:00

39 lines
1.2 KiB
Diff

---
SConstruct | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
Index: toluapp-1.0.93/SConstruct
===================================================================
--- toluapp-1.0.93.orig/SConstruct 2025-10-13 18:29:14.209840999 +0200
+++ toluapp-1.0.93/SConstruct 2025-10-13 18:29:15.010128928 +0200
@@ -50,9 +50,9 @@
env['build_dev'] = int(env['build_dev'])
## detecting the install directory on win32
-if 'msvc' in env['TOOLS'] and not (env.has_key('prefix') or env['prefix']):
+if 'msvc' in env['TOOLS'] and not ('prefix' in env or env['prefix']):
- if env['MSVS'].has_key('PLATFORMSDKDIR'):
+ if 'PLATFORMSDKDIR' in env['MSVS']:
env['prefix'] = env['MSVS']['PLATFORMSDKDIR']
@@ -66,7 +66,7 @@
## TODO: detectar si el archivo existe antes de abrirlo asi nomas
pkg = open(source, "rt")
- for linea in pkg.xreadlines():
+ for linea in pkg:
dep = re.search("^[\t\w]*\$[cphl]file\s*\"([^\"]+)\"", linea)
if dep:
self.Depends(target, '#' + dep.groups()[0]);
@@ -89,7 +89,7 @@
tolua = 'bin\\'+self['TOLUAPP_BOOTSTRAP']
else:
tolua = 'bin/'+self['TOLUAPP_BOOTSTRAP']
- print("********* tolua is ", tolua)
+ print(("********* tolua is ", tolua))
else:
if use_own:
if 'msvc' in self['TOOLS']: