pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/games/qnetwalk Initial import of qnetwalk from pkgsrc-...
details: https://anonhg.NetBSD.org/pkgsrc/rev/175f4ecefacd
branches: trunk
changeset: 487023:175f4ecefacd
user: wiz <wiz%pkgsrc.org@localhost>
date: Fri Jan 07 11:14:10 2005 +0000
description:
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:
games/qnetwalk/DESCR | 10 ++++++++++
games/qnetwalk/Makefile | 39 +++++++++++++++++++++++++++++++++++++++
games/qnetwalk/PLIST | 12 ++++++++++++
games/qnetwalk/distinfo | 7 +++++++
games/qnetwalk/patches/patch-aa | 27 +++++++++++++++++++++++++++
games/qnetwalk/patches/patch-ab | 17 +++++++++++++++++
games/qnetwalk/patches/patch-ac | 16 ++++++++++++++++
7 files changed, 128 insertions(+), 0 deletions(-)
diffs (156 lines):
diff -r 0b64a188d973 -r 175f4ecefacd games/qnetwalk/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/qnetwalk/DESCR Fri Jan 07 11:14:10 2005 +0000
@@ -0,0 +1,10 @@
+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!
diff -r 0b64a188d973 -r 175f4ecefacd games/qnetwalk/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/qnetwalk/Makefile Fri Jan 07 11:14:10 2005 +0000
@@ -0,0 +1,39 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/01/07 11:14:10 wiz Exp $
+#
+
+DISTNAME= qnetwalk-1.1
+CATEGORIES= x11 games
+MASTER_SITES= http://qt.osdn.org.ua/
+
+MAINTAINER= ianzag%mail.ru@localhost
+HOMEPAGE= http://qt.osdn.org.ua/qnetwalk.html
+COMMENT= QNetwalk is a Qt-version of the popular NetWalk game
+
+# We need qmake to build package's Makefile
+BUILD_DEPENDS+= qt3-tools>=3.3:../../x11/qt3-tools
+
+USE_BUILDLINK3= YES
+USE_GNU_TOOLS+= make
+USE_LANGUAGES= c c++
+USE_LIBTOOL= YES
+
+QNETWALK_BIN= ${PREFIX}/bin
+QNETWALK_MAN= ${PREFIX}/man/man6
+QNETWALK_DATA= ${PREFIX}/share/games/${PKGBASE}
+QNETWALK_TR= ${QNETWALK_DATA}
+
+do-configure:
+ (cd ${WRKSRC} && ${QTDIR}/bin/qmake -o Makefile qnetwalk.pro)
+
+# Fix hardcoded paths
+SUBST_CLASSES= path
+SUBST_MESSAGE.path= "Fixing hardcoded paths."
+SUBST_STAGE.path= post-patch
+SUBST_FILES.path= qnetwalk.pro main.cpp mainwindow.cpp
+SUBST_SED.path= -e 's:@QNETWALK_BIN@:${QNETWALK_BIN}:g'
+SUBST_SED.path+= -e 's:@QNETWALK_MAN@:${QNETWALK_MAN}:g'
+SUBST_SED.path+= -e 's:@QNETWALK_TR@:${QNETWALK_TR}:g'
+SUBST_SED.path+= -e 's:@QNETWALK_DATA@:${QNETWALK_DATA}:g'
+
+.include "../../x11/qt3-libs/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 0b64a188d973 -r 175f4ecefacd games/qnetwalk/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/qnetwalk/PLIST Fri Jan 07 11:14:10 2005 +0000
@@ -0,0 +1,12 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/01/07 11:14:10 wiz Exp $
+bin/qnetwalk
+man/man6/qnetwalk.6
+share/games/qnetwalk/click.wav
+share/games/qnetwalk/connect.wav
+share/games/qnetwalk/qnetwalk_fr.qm
+share/games/qnetwalk/qnetwalk_nl.qm
+share/games/qnetwalk/qnetwalk_ru.qm
+share/games/qnetwalk/start.wav
+share/games/qnetwalk/turn.wav
+share/games/qnetwalk/win.wav
+@dirrm share/games/qnetwalk
diff -r 0b64a188d973 -r 175f4ecefacd games/qnetwalk/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/qnetwalk/distinfo Fri Jan 07 11:14:10 2005 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/01/07 11:14:10 wiz Exp $
+
+SHA1 (qnetwalk-1.1.tar.gz) = 7a245fa4243de7425c47d32f7c9a9a8603aabb59
+Size (qnetwalk-1.1.tar.gz) = 129450 bytes
+SHA1 (patch-aa) = 7b2a3c5c1806405956454769f4beed26f25f2318
+SHA1 (patch-ab) = 4421ffa6d763ca1b26da671524445318de8ea6cd
+SHA1 (patch-ac) = 4f193fc7c7347dc2e470418468b6d5a5a16431fe
diff -r 0b64a188d973 -r 175f4ecefacd games/qnetwalk/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/qnetwalk/patches/patch-aa Fri Jan 07 11:14:10 2005 +0000
@@ -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 -r 0b64a188d973 -r 175f4ecefacd games/qnetwalk/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/qnetwalk/patches/patch-ab Fri Jan 07 11:14:10 2005 +0000
@@ -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 -r 0b64a188d973 -r 175f4ecefacd games/qnetwalk/patches/patch-ac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/qnetwalk/patches/patch-ac Fri Jan 07 11:14:10 2005 +0000
@@ -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");
Home |
Main Index |
Thread Index |
Old Index