# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit games kde need-qt 3.3 DESCRIPTION="QNetWalk is the Qt-version of the popular NetWalk game for system administrators" HOMEPAGE="http://qt.osdn.org.ua/qnetwalk.html" SRC_URI="http://qt.osdn.org.ua/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86" #other platforms not tested src_unpack() { kde_src_unpack $* sed -i \ -e "s#/usr/local/bin#${D}${GAMES_BINDIR}#" \ -e "s#/usr/local/share/games#${D}${GAMES_DATADIR}#" \ qnetwalk.pro \ || die "sed qnetwalk.pro failed" sed -i \ -e "s#qApp->applicationDirPath() + \"/../share/games#\"${GAMES_DATADIR}#" \ mainwindow.cpp \ || die "sed mainwindow.cpp failed" sed -i \ -e "s#app.applicationDirPath() + \"/../share/games#\"${GAMES_DATADIR}#" \ main.cpp \ || die "sed main.cpp failed" } src_compile() { echo "QMAKE_CXXFLAGS=${CXXFLAGS}" >> qnetwalk.pro qmake || die "qmake failed" emake || die "emake failed" } src_install() { make install || die "install failed" dodoc ChangeLog README prepgamesdirs }