summaryrefslogtreecommitdiff
path: root/x11/ipager/files/patch-SConstruct
blob: 79e120ec41618865de45d9c97d86d70892921510 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
--- SConstruct.orig	2005-11-06 11:23:24 UTC
+++ SConstruct
@@ -7,15 +7,15 @@ SConsignFile()
 ###############################################
 # options
 ipager_optfile = [ 'scons.opts', 'user.opts' ]
-ipager_options = Options(ipager_optfile)
-ipager_options.AddOptions(
-    BoolOption('debug', 'build debug version', 0),
-    BoolOption('debug_events', 'debug xserve events', 0),
+ipager_options = Variables(ipager_optfile)
+ipager_options.AddVariables(
+    BoolVariable('debug', 'build debug version', 0),
+    BoolVariable('debug_events', 'debug xserve events', 0),
 
-    BoolOption('xinerama', 'support xinerama', 0),
+    BoolVariable('xinerama', 'support xinerama', 0),
 
-    PathOption('PREFIX', 'install-path base', '/usr/local'),
-    PathOption('DESTDIR', 'install to $DESTDIR/$PREFIX', '/')
+    PathVariable('PREFIX', 'install-path base', '/usr/local'),
+    PathVariable('DESTDIR', 'install to $DESTDIR/$PREFIX', '/')
 )
 
 
@@ -73,12 +73,12 @@ if conf.CheckCHeader('sys/time.h'):
 
 # sys/stat.h
 if not conf.CheckCHeader('sys/stat.h'):
-    print "missing 'sys/stat.h', install it."
+    print("missing 'sys/stat.h', install it.")
     exit(1)
 
 # sys/types.h
 if not conf.CheckCHeader('sys/types.h'):
-    print "missing 'sys/types.h', install it."
+    print("missing 'sys/types.h', install it.")
     exit(1)
 
 
@@ -90,7 +90,7 @@ if conf.CheckLibWithHeader('X11', 'X11/X
     ipager_env.AppendUnique(
         LIBS = ['X11','Xmu','Xext'])
 else:
-    print "missing x11-dev-stuff, install it."
+    print("missing x11-dev-stuff, install it.")
     exit(1)
 
 
@@ -102,18 +102,18 @@ if conf.env['xinerama'] and conf.CheckLi
 
 
 # imlib2
-print "Checking for Imlib2... ",
+print("Checking for Imlib2... ")
 if not conf.env.WhereIs('imlib2-config'):
-    print "cant find 'imlib2-config."
+    print("cant find 'imlib2-config.")
     exit(1)
 else:
     imlib2_env = Environment()
     imlib2_env.ParseConfig('imlib2-config --cflags --libs')
     if not imlib2_env.Dictionary()['LIBS']:
-        print "missing imlib2, install it."
+        print("missing imlib2, install it.")
         exit(1)
     else:
-        print "yes"
+        print("yes")
         ipager_env.AppendUnique(
             CPPPATH = imlib2_env.Dictionary()['CPPPATH'], 
             CCFLAGS = imlib2_env.Dictionary()['CCFLAGS'],