diff options
author | wiz <wiz@pkgsrc.org> | 2005-01-07 11:14:10 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2005-01-07 11:14:10 +0000 |
commit | 2147ef136cc23c8f8497dad76b477ee3eb237dc8 (patch) | |
tree | 6f77ff37683ebbce394527fde84dd29ac3ca2ab6 /games/qnetwalk/patches | |
parent | 59a02524254ce0f27784a429b94f040d4e14f1c1 (diff) | |
download | pkgsrc-2147ef136cc23c8f8497dad76b477ee3eb237dc8.tar.gz |
Initial import of qnetwalk from pkgsrc-wip, packaged by Ian Zagorskih.
QNetwalk is a Qt-version of the popular NetWalk game
for system administrators :)
Rules of play:
* You are the system administrator and your goal is
to connect each computer to the central server.
* Click the right mouse's button for turning the cable
in a clockwise direction, and left mouse's button for
turning the cable in a counter-clockwise direction.
* Start the LAN with as few turns as possible!
Diffstat (limited to 'games/qnetwalk/patches')
-rw-r--r-- | games/qnetwalk/patches/patch-aa | 27 | ||||
-rw-r--r-- | games/qnetwalk/patches/patch-ab | 17 | ||||
-rw-r--r-- | games/qnetwalk/patches/patch-ac | 16 |
3 files changed, 60 insertions, 0 deletions
diff --git a/games/qnetwalk/patches/patch-aa b/games/qnetwalk/patches/patch-aa new file mode 100644 index 00000000000..75a3e42ba60 --- /dev/null +++ b/games/qnetwalk/patches/patch-aa @@ -0,0 +1,27 @@ +$NetBSD: patch-aa,v 1.1.1.1 2005/01/07 11:14:10 wiz Exp $ + +--- qnetwalk.pro.orig 2004-12-14 23:32:57.000000000 +0600 ++++ qnetwalk.pro +@@ -47,18 +47,18 @@ TRANSLATIONS = translations/qnetwalk_fr. + translations/qnetwalk_ru.ts + + TARGET = qnetwalk +-target.path = /usr/local/bin ++target.path = @QNETWALK_BIN@ + INSTALLS += target + +-man.path = /usr/local/man/man6 ++man.path = @QNETWALK_MAN@ + man.files = qnetwalk.6 + INSTALLS += man + +-tr.path = /usr/local/share/qnetwalk/translations ++tr.path = @QNETWALK_TR@ + tr.files = translations/*.qm + INSTALLS += tr + +-sounds.path = /usr/local/share/qnetwalk/sounds ++sounds.path = @QNETWALK_DATA@ + sounds.files = sounds/*.wav + INSTALLS += sounds + diff --git a/games/qnetwalk/patches/patch-ab b/games/qnetwalk/patches/patch-ab new file mode 100644 index 00000000000..1aff3ba6a9a --- /dev/null +++ b/games/qnetwalk/patches/patch-ab @@ -0,0 +1,17 @@ +$NetBSD: patch-ab,v 1.1.1.1 2005/01/07 11:14:10 wiz Exp $ + +--- main.cpp.orig 2004-12-10 03:32:00.000000000 +0600 ++++ main.cpp +@@ -30,11 +30,9 @@ int main(int argc, char ** argv) + qInstallPathTranslations()); + app.installTranslator(&qtranslator); + +- QString appdir = app.applicationDirPath(); + QString filename = QString("qnetwalk_") + QTextCodec::locale(); + QTranslator translator(&app); +- if(!translator.load(filename, appdir + "/translations/")) +- translator.load(filename, appdir + "/../share/qnetwalk/translations/"); ++ translator.load(filename, "@QNETWALK_TR@"); + app.installTranslator(&translator); + + MainWindow window; diff --git a/games/qnetwalk/patches/patch-ac b/games/qnetwalk/patches/patch-ac new file mode 100644 index 00000000000..f3dcb3eb29f --- /dev/null +++ b/games/qnetwalk/patches/patch-ac @@ -0,0 +1,16 @@ +$NetBSD: patch-ac,v 1.1.1.1 2005/01/07 11:14:10 wiz Exp $ + +--- mainwindow.cpp.orig 2004-12-15 00:28:42.000000000 +0600 ++++ mainwindow.cpp +@@ -36,10 +36,7 @@ MainWindow::MainWindow() : QMainWindow(0 + contrdirs[Cell::D] = Cell::U; + contrdirs[Cell::L] = Cell::R; + +- QString appdir = qApp->applicationDirPath(); +- soundpath = appdir + "/sounds/"; +- if(!QFile::exists(soundpath)) +- soundpath = appdir + "/../share/qnetwalk/sounds/"; ++ soundpath = "@QNETWALK_DATA@"; + + winsound = new QSound(soundpath + "win.wav"); + turnsound = new QSound(soundpath + "turn.wav"); |