apply 2to3 conversions via patches rather than running during build

This commit is contained in:
sthen
2025-02-18 22:35:07 +00:00
parent 31e5083865
commit 5aa7ed93c8
2 changed files with 18 additions and 3 deletions
-3
View File
@@ -29,9 +29,6 @@ NO_TEST= Yes
pre-configure:
${SUBST_CMD} ${WRKSRC}/src/pingus/pingus_main.cpp
pre-patch:
2to3 -w ${WRKSRC}/SConscript
do-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MODSCONS_BIN} \
${MODSCONS_ENV} \
+18
View File
@@ -1,3 +1,4 @@
apply 2to3
Switched to boost::signals2
Index: SConscript
@@ -11,6 +12,23 @@ Index: SConscript
self.opts.Add('LINKFLAGS', 'Linker Compiler flags', [])
self.opts.Add(BoolVariable('with_opengl', 'Build with OpenGL support', True))
@@ -126,12 +125,12 @@ class Project:
def configure_end(self):
self.env = self.conf.Finish()
- print "Reports:"
- print self.reports
+ print("Reports:")
+ print(self.reports)
if not self.fatal_error == "":
- print "Fatal Errors:"
- print self.fatal_error
+ print("Fatal Errors:")
+ print(self.fatal_error)
Exit(1)
def configure_gxx(self):
@@ -182,14 +181,13 @@ class Project:
else:
self.reports += " * XInput support: yes\n"