Gentoo Archives: gentoo-commits

From: "Alfredo Tupone (tupone)" <tupone@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-board/scid/files: scid-3.6.24-gentoo.patch
Date: Fri, 04 Jul 2008 06:33:23
Message-Id: E1KEer7-0007Fg-TB@stork.gentoo.org
1 tupone 08/07/04 06:33:17
2
3 Added: scid-3.6.24-gentoo.patch
4 Log:
5 Version bump to 3.6.24. Bug #229397
6 (Portage version: 2.1.4.4)
7
8 Revision Changes Path
9 1.1 games-board/scid/files/scid-3.6.24-gentoo.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-board/scid/files/scid-3.6.24-gentoo.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-board/scid/files/scid-3.6.24-gentoo.patch?rev=1.1&content-type=text/plain
13
14 Index: scid-3.6.24-gentoo.patch
15 ===================================================================
16 --- engines/togaII1.2.1a/src/Makefile.old 2008-07-02 16:10:57.000000000 +0200
17 +++ engines/togaII1.2.1a/src/Makefile 2008-07-02 16:11:44.000000000 +0200
18 @@ -34,7 +34,7 @@
19
20 # strip
21
22 -LDFLAGS += -s
23 +# LDFLAGS += -s
24
25 # dependencies
26
27 --- tcl/config.tcl.old 2008-07-02 16:30:12.000000000 +0200
28 +++ tcl/config.tcl 2008-07-02 16:30:46.000000000 +0200
29 @@ -5,7 +5,7 @@
30 if {$windowsOS} {
31 set scidShareDir $scidExeDir
32 } else {
33 - set scidShareDir [file normalize [file join $scidExeDir "../share/scid"]]
34 + set scidShareDir "@GENTOO_DATADIR@"
35 }
36
37 if {![info exists scidBooksDir]} {
38 --- tcl/utils/sound.tcl.old 2008-07-02 20:53:37.000000000 +0200
39 +++ tcl/utils/sound.tcl 2008-07-02 20:53:50.000000000 +0200
40 @@ -38,7 +38,7 @@
41 variable soundFolder
42
43 ::splash::add "Setting up audio move announcement..."
44 - if {[catch {package require snack 2.0}]} {
45 + if {[catch {package require snack}]} {
46 set hasSnackPackage 0
47 ::splash::add " Move speech disabled - Snack sound package not found"
48 return
49 --- tcl/start.tcl.old 2008-07-03 00:06:31.000000000 +0200
50 +++ tcl/start.tcl 2008-07-03 00:09:30.000000000 +0200
51 @@ -641,7 +641,7 @@
52
53 ### Audio move announcement options:
54
55 -set ::utils::sound::soundFolder [file nativename [file join $::scidExeDir sounds]]
56 +set ::utils::sound::soundFolder "@GENTOO_DATADIR@/sounds"
57 set ::utils::sound::announceNew 0
58 set ::utils::sound::announceForward 0
59 set ::utils::sound::announceBack 0
60 @@ -651,7 +651,7 @@
61 if {$windowsOS} {
62 set spellCheckFile [file join $scidDataDir "spelling.ssp"]
63 } else {
64 - set spellCheckFile "/usr/local/share/scid/spelling.ssp"
65 + set spellCheckFile "@GENTOO_DATADIR@/spelling.ssp"
66 }
67
68 # Engines list file: -- OLD NAMES, NO LONGER USED
69 --- tcl/main.tcl.old 2008-07-03 23:11:08.000000000 +0200
70 +++ tcl/main.tcl 2008-07-03 23:22:24.000000000 +0200
71 @@ -808,6 +808,9 @@
72 array set photo {}
73
74 # Read all Scid photo (*.spf) files in the Scid data/user/config directories:
75 +foreach photofile [glob -nocomplain -directory $scidShareDir "*.spf"] {
76 + readPhotoFile $photofile
77 +}
78 foreach photofile [glob -nocomplain -directory $scidDataDir "*.spf"] {
79 readPhotoFile $photofile
80 }
81 --- src/scidlet.cpp.old 2008-07-04 07:01:37.000000000 +0200
82 +++ src/scidlet.cpp 2008-07-04 07:04:02.000000000 +0200
83 @@ -232,7 +232,7 @@
84 };
85
86 const configT defaultConfig = {
87 - "scidlet.sbk", // bookFileName
88 + "@GENTOO_DATADIR@/scidlet.sbk", // bookFileName
89 "scidlet.log", // logFileName
90 16, // hashTableMB
91 1, // pawnTableMB
92 --- tcl/htext.tcl.old 2008-07-04 08:01:49.000000000 +0200
93 +++ tcl/htext.tcl 2008-07-04 08:05:56.000000000 +0200
94 @@ -519,12 +519,11 @@
95 # web browser, so just try starting Mozilla or Netscape.
96
97 # First, check if Mozilla seems to be available:
98 - if {[file executable /usr/bin/mozilla] ||
99 - [file executable /usr/local/bin/mozilla]} {
100 + if {[file executable /usr/bin/firefox]} {
101 # First, try -remote mode:
102 - if {[catch {exec /bin/sh -c "mozilla -remote 'openURL($url)'"}]} {
103 + if {[catch {exec /bin/sh -c "firefox -remote 'openURL($url)'"}]} {
104 # Now try a new Mozilla process:
105 - catch {exec /bin/sh -c "mozilla '$url'" &}
106 + catch {exec /bin/sh -c "firefox '$url'" &}
107 }
108 } else {
109 # OK, no Mozilla (poor user) so try Netscape (yuck):
110
111
112
113 --
114 gentoo-commits@l.g.o mailing list