# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 S="${WORKDIR}" DESCRIPTION="Nox Wizard: Ultima Online Shard Emulator" HOMEPAGE="http://noxwizard.sourceforge.net/" KEYWORDS="~x86" SLOT="0" LICENSE="GPL-2" IUSE="" RDEPEND=">=app-emulation/nox-wizard-scripts-cvs-${PV}" DEPEND="${RDEPEND} virtual/glibc dev-util/cvs" src_unpack() { addwrite ${DISTDIR}/nox-wizard mkdir -p ${DISTDIR}/nox-wizard/ cd ${DISTDIR}/nox-wizard/ echo ":pserver:anonymous@cvs.sourceforge.net:/cvsroot/noxwizard" > "${T}/cvspass" export CVS_PASSFILE="${T}/cvspass" einfo "Downloading latest Nox Wizard sources from CVS..." cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net/cvsroot/noxwizard checkout src cp -a ${DISTDIR}/nox-wizard ${S} || die "Copy problem" } src_compile() { cd ${WORKDIR}/nox-wizard/src || die "Could't cd to ${WORKDIR}" make -f makefile.linux || die "Compile problem" } src_install() { cd ${WORKDIR}/nox-wizard/src/ exeinto /opt/nox-wizard-cvs/ doexe noxwizard } pkg_postinst() { ewarn ewarn "You still need to copy some Ultima Online files to /opt/nox-wizard." ewarn "Please check http://noxwizard.sourceforge.net for more info about this" }