# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-util/showeq/showeq-5.3.0.0.ebuild,v 1.2 2006/04/02 09:04:29 tupone Exp $ inherit kde games DESCRIPTION="An Everquest monitoring program" HOMEPAGE="http://www.showeq.net/" SRC_URI="mirror://sourceforge/seq/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" IUSE="" RDEPEND="virtual/libpcap $(qt_min_version 3.2) >=sys-libs/gdbm-1.8.0" DEPEND="${RDEPEND} || ( x11-libs/libXt virtual/x11 )" PATCHES="${FILESDIR}/${P}-gcc4.patch ${FILESDIR}/${P}-opcode.patch" src_compile() { kde_src_compile nothing egamesconf || die emake || die "emake failed" } src_install() { make DESTDIR="${D}" install || die "make install failed" doman showeq.1 dodoc AUTHORS BUGS ChangeLog FAQ NEWS README ROADMAP TODO doc/*.{doc,txt} dohtml doc/map.html prepgamesdirs } pkg_postinst() { einfo "For complete functionality you need to get and extract the" einfo "following files into/usr/share/games/showeq/" einfo "" einfo "http://patch.everquest.com:7000/patch/everquest/main/eqstr_us.txt.gz" einfo "http://patch.everquest.com:7000/patch/everquest/main/spells_us.txt.gz" einfo "" einfo "or simply run the following commands..." einfo "# cd /usr/share/games/showeq" einfo "# for i in eqstr_us.txt spells_us.txt; do wget --user-agent=SOEPatcher/curl http://patch.everquest.com:7000/patch/everquest/main/$i.gz && gunzip $i.gz; done" einfo "" }