1 |
mr_bones_ 15/02/08 07:32:12 |
2 |
|
3 |
Added: connectagram-1.2.1-gentoo.patch |
4 |
Log: |
5 |
version bump |
6 |
|
7 |
(Portage version: 2.2.14/cvs/Linux x86_64, unsigned Manifest commit) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 games-puzzle/connectagram/files/connectagram-1.2.1-gentoo.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-puzzle/connectagram/files/connectagram-1.2.1-gentoo.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-puzzle/connectagram/files/connectagram-1.2.1-gentoo.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: connectagram-1.2.1-gentoo.patch |
16 |
=================================================================== |
17 |
--- connectagram-1.2.1.orig/connectagram.pro |
18 |
+++ connectagram-1.2.1/connectagram.pro |
19 |
@@ -74,16 +74,16 @@ |
20 |
RESOURCES += icons/icon.qrc |
21 |
|
22 |
isEmpty(PREFIX) { |
23 |
- PREFIX = /usr/local |
24 |
+ PREFIX = /usr |
25 |
} |
26 |
isEmpty(BINDIR) { |
27 |
- BINDIR = bin |
28 |
+ BINDIR = @GAMES_BINDIR@ |
29 |
} |
30 |
|
31 |
- target.path = $$PREFIX/$$BINDIR/ |
32 |
+ target.path = $$BINDIR/ |
33 |
|
34 |
data.files = data |
35 |
- data.path = $$PREFIX/share/connectagram/ |
36 |
+ data.path = @GAMES_DATADIR@/connectagram/ |
37 |
|
38 |
pixmap.files = icons/connectagram.xpm |
39 |
pixmap.path = $$PREFIX/share/pixmaps/ |
40 |
@@ -98,7 +98,7 @@ |
41 |
appdata.path = $$PREFIX/share/appdata/ |
42 |
|
43 |
qm.files = translations/*.qm |
44 |
- qm.path = $$PREFIX/share/connectagram/translations |
45 |
+ qm.path = @GAMES_DATADIR@/connectagram/translations |
46 |
|
47 |
man.files = doc/connectagram.6 |
48 |
man.path = $$PREFIX/share/man/man6 |
49 |
--- connectagram-1.2.1.orig/src/locale_dialog.cpp |
50 |
+++ connectagram-1.2.1/src/locale_dialog.cpp |
51 |
@@ -88,6 +88,7 @@ |
52 |
paths.append(appdir); |
53 |
paths.append(appdir + "/../share/" + QCoreApplication::applicationName().toLower()); |
54 |
paths.append(appdir + "/../Resources"); |
55 |
+ paths.append("@GAMES_DATADIR@/connectagram"); |
56 |
} |
57 |
for (const QString& path : paths) { |
58 |
if (QFile::exists(path + "/translations/")) { |
59 |
--- connectagram-1.2.1.orig/src/new_game_dialog.cpp |
60 |
+++ connectagram-1.2.1/src/new_game_dialog.cpp |
61 |
@@ -48,7 +48,7 @@ |
62 |
m_wordlist = new WordList(this); |
63 |
m_wordlist->setLanguage(WordList::defaultLanguage()); |
64 |
m_languages_box = new QComboBox(this); |
65 |
- QStringList languages = QDir("connectagram:").entryList(QDir::Dirs | QDir::NoDotAndDotDot); |
66 |
+ QStringList languages = QDir("@GAMES_DATADIR@/connectagram/data").entryList(QDir::Dirs | QDir::NoDotAndDotDot); |
67 |
for (const QString& language : languages) { |
68 |
m_languages_box->addItem(LocaleDialog::languageName(language), language); |
69 |
} |
70 |
--- connectagram-1.2.1.orig/src/wordlist.cpp |
71 |
+++ connectagram-1.2.1/src/wordlist.cpp |
72 |
@@ -91,9 +91,9 @@ |
73 |
|
74 |
QString WordList::defaultLanguage() { |
75 |
QString language = QLocale().name(); |
76 |
- if (!QFile::exists("connectagram:" + language)) { |
77 |
+ if (!QFile::exists("@GAMES_DATADIR@/connectagram/data/" + language)) { |
78 |
language = language.left(2); |
79 |
- if (!QFile::exists("connectagram:" + language)) { |
80 |
+ if (!QFile::exists("@GAMES_DATADIR@/connectagram/data/" + language)) { |
81 |
language = "en"; |
82 |
} |
83 |
} |
84 |
@@ -112,7 +112,7 @@ |
85 |
m_maximum_length(0) |
86 |
{ |
87 |
// Read words from disk |
88 |
- QFile file("connectagram:" + language + "/words"); |
89 |
+ QFile file("@GAMES_DATADIR@/connectagram/data/" + language + "/words"); |
90 |
if (!file.open(QFile::ReadOnly | QIODevice::Text)) { |
91 |
return; |
92 |
} |