# 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 $* einfo Patching qnetwalk.pro sed -i \ -e "s#/usr/local/bin#${D}${GAMES_BINDIR}#" \ -e "s#/usr/local/man#${D}/usr/share/man#" \ -e "s#/usr/local/share#${D}${GAMES_DATADIR}#" \ -e "s#\$\$KDEROOT#${D}/usr#" \ qnetwalk.pro \ || die "sed qnetwalk.pro failed" einfo Patching main.cpp, mainwindow.cpp sed -i \ -e "s#appdir + \"/../share#\"${GAMES_DATADIR}\" \"#" \ main.cpp mainwindow.cpp \ || die "sed main.cpp, mainwindow.cpp failed" } src_compile() { qmake || die "qmake failed" emake || die "emake failed" } src_install() { make install || die "make install failed" dodoc ChangeLog README prepgamesdirs }