Description: Update scons to python3
Author: Håvard Flaget Aasen <haavard_aasen@yahoo.no>

--- a/SConstruct
+++ b/SConstruct
@@ -6,7 +6,7 @@
 
 # env.Append( CCFLAGS = flags, CPPPATH = [ "../src" ] );
 
-print "Use 'scons -h' for help"
+print("Use 'scons -h' for help")
 
 prefix = '/usr/local/games'
 bin = '/usr/local/bin'
@@ -19,9 +19,9 @@
 	prefix = 'gen'
 	bin = 'gen'
 
-opts = Options( 'rafkill.conf' )
-opts.Add( PathOption('prefix', 'Directory to install under', prefix ) )
-opts.Add( PathOption('bin', 'Directory where symlinked executable should go', bin ) )
+opts = Variables( 'rafkill.conf' )
+opts.Add( PathVariable('prefix', 'Directory to install under', prefix ) )
+opts.Add( PathVariable('bin', 'Directory where symlinked executable should go', bin ) )
 opts.Update( env )
 opts.Save( 'rafkill.conf', env )
 
@@ -34,7 +34,7 @@
 	env.Append( CCFLAGS = [ '-pg' ] )
 	env.Append( LINKFLAGS = [ '-pg' ] )
 
-env.BuildDir( 'build/', 'src/' )
+env.VariantDir( 'build/', 'src/' )
 env.Append( LIBS = [ 'aldmb', 'dumb' ] );
 if sys.platform == 'win32':
 	env.Append( CCFLAGS = [ '-DWINDOWS' ] )
@@ -51,11 +51,11 @@
 
 # SConscript( 'src/SConscript', build_dir='build', exports = 'env' );
 sources = SConscript( 'src/SConscript', exports = 'env' );
-rafkill = env.Program( 'rafkill', map( lambda x: 'build/' + x, sources ) )
+rafkill = env.Program( 'rafkill', list( map( lambda x: 'build/' + x, sources ) ) )
 
 def installReminder( target, source, env ):
 	print
-	print "Run 'scons install' to install rafkill"
+	print("Run 'scons install' to install rafkill")
 	return 0
 
 def ShutUp( target, source, env ):
@@ -71,7 +71,7 @@
 env.Alias( 'package', 'src/source.tar' )
 
 def install( target, source, env ):
-	print "Installing!"
+	print("Installing!")
 	return 0
 
 installDir = '$prefix/'
@@ -81,7 +81,7 @@
 def addData( file ):
 	env.Install( installDir + 'rafkill/data', "data/%s" % file )
 
-map( lambda x: addData( x ), Split( """
+list( map( lambda x: addData( x ), Split( """
 1.pck
 2.pck
 3.pck
@@ -103,7 +103,7 @@
 sound.dat
 table.col
 vulture.fnt
-"""));
+""")));
 
 def addMusic( file ):
 	env.Install( installDir + 'rafkill/music', "music/%s" % file )
--- a/src/SConscript
+++ b/src/SConscript
@@ -150,7 +150,7 @@
 """)));
 
 import re
-headers = map( lambda x: re.compile( 'cpp' ).sub( 'h', x ), sources )
+headers = list( map( lambda x: re.compile( 'cpp' ).sub( 'h', x ), sources ) )
 headers.extend( [ 'fonts.h', 'sound.h', 'wormhole.h' ] )
 
 import os
