chiark / gitweb /
sgt-puzzles (20161228.7cae89f-1) unstable; urgency=medium
[sgt-puzzles.git] / debian / patches / 302_rename-binaries.diff
1 Author: Ben Hutchings <ben@decadent.org.uk>
2 Description: blackbox, flip, net: Rename executables to avoid name clashes
3
4 Add 'game' suffix to blackbox, flip and net which can otherwise clash
5 with commands of the same name in /usr/bin.
6
7 --- sgt-puzzles.orig/flip.R
8 +++ sgt-puzzles/flip.R
9 @@ -2,14 +2,16 @@
10  
11  FLIP_EXTRA = tree234
12  
13 -flip     : [X] GTK COMMON flip FLIP_EXTRA flip-icon|no-icon
14 +# Debian already has a binary called `flip' (in the flip package) so we
15 +# append `game' to its name
16 +flipgame : [X] GTK COMMON flip FLIP_EXTRA flip-icon|no-icon
17  
18  flip     : [G] WINDOWS COMMON flip FLIP_EXTRA flip.res|noicon.res
19  
20  ALL += flip[COMBINED] FLIP_EXTRA
21  
22  !begin gtk
23 -GAMES += flip
24 +GAMES += flipgame
25  !end
26  
27  !begin >list.c
28 --- sgt-puzzles.orig/blackbox.R
29 +++ sgt-puzzles/blackbox.R
30 @@ -1,13 +1,15 @@
31  # -*- makefile -*-
32  
33 -blackbox : [X] GTK COMMON blackbox blackbox-icon|no-icon
34 +# Debian already has a binary called `blackbox' (in the blackbox package)
35 +# so we append `game' to its name
36 +blackboxgame : [X] GTK COMMON blackbox blackbox-icon|no-icon
37  
38  blackbox : [G] WINDOWS COMMON blackbox blackbox.res|noicon.res
39  
40  ALL += blackbox[COMBINED]
41  
42  !begin gtk
43 -GAMES += blackbox
44 +GAMES += blackboxgame
45  !end
46  
47  !begin >list.c
48 --- sgt-puzzles.orig/net.R
49 +++ sgt-puzzles/net.R
50 @@ -2,7 +2,9 @@
51  
52  NET_EXTRA = tree234 dsf
53  
54 -net      : [X] GTK COMMON net NET_EXTRA net-icon|no-icon
55 +# Debian already has a binary called `net' (in the samba-common package)
56 +# so we append `game' to its name
57 +netgame  : [X] GTK COMMON net NET_EXTRA net-icon|no-icon
58  
59  # The Windows Net shouldn't be called `net.exe' since Windows
60  # already has a reasonably important utility program by that name!
61 @@ -11,7 +13,7 @@
62  ALL += net[COMBINED] NET_EXTRA
63  
64  !begin gtk
65 -GAMES += net
66 +GAMES += netgame
67  !end
68  
69  !begin >list.c
70 --- sgt-puzzles.orig/puzzles.but
71 +++ sgt-puzzles/puzzles.but
72 @@ -425,7 +425,9 @@
73  \cfg{winhelp-topic}{games.net}
74  
75  (\e{Note:} the \i{Windows} version of this game is called
76 -\i\cw{NETGAME.EXE} to avoid clashing with Windows's own \cw{NET.EXE}.)
77 +\i\cw{NETGAME.EXE} to avoid clashing with Windows's own \cw{NET.EXE}.
78 +Similarly the Debian version is called \i\cw{netgame} to avoid
79 +clashing with Samba's \cw{net}.)
80  
81  I originally saw this in the form of a Flash game called \i{FreeNet}
82  \k{FreeNet}, written by Pavils Jurjans; there are several other
83 @@ -1230,6 +1232,9 @@
84  
85  \cfg{winhelp-topic}{games.flip}
86  
87 +(\e{Note:} the Debian version of this game is called \i\cw{flipgame} to
88 +avoid clashing with the text conversion program \cw{flip}.)
89 +
90  You have a grid of squares, some light and some dark. Your aim is to
91  light all the squares up at the same time. You can choose any square
92  and flip its state from light to dark or dark to light, but when you
93 @@ -1513,6 +1518,9 @@
94  
95  \cfg{winhelp-topic}{games.blackbox}
96  
97 +(\e{Note:} the Debian version of this game is called \i\cw{blackboxgame} to
98 +avoid clashing with the window manager \cw{blackbox}.)
99 +
100  A number of balls are hidden in a rectangular arena. You have to
101  deduce the positions of the balls by firing lasers positioned at
102  the edges of the arena and observing how their beams are deflected.