# Copyright 1999-2005 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#${D}${GAMES_DATADIR}#" \ -e "s#/usr/local/man#${D}/usr/share/man#" \ qnetwalk.pro \ || die "sed qnetwalk.pro failed" sed -i \ -e "s#appdir + \"/../share#\"${GAMES_DATADIR}\" \"#" \ mainwindow.cpp \ main.cpp \ || die "sed mainwindow.cpp/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 }