# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-rpg/planeshift/planeshift-0.2.010-r1.ebuild,v 1.9 2004/06/24 23:16:40 agriffis Exp $ inherit eutils games DESCRIPTION="virtual fantasy world MMORPG" HOMEPAGE="http://www.planeshift.it/" SRC_URI="mirror://gentoo/distfiles/${P}.tar.bz2" LICENSE="GPL-2 | Planeshift" SLOT="0" KEYWORDS="x86 ppc" IUSE="" # Doesn't like the new cs-config (bug #54659) RDEPEND="net-misc/curl <dev-games/crystalspace-20040604 dev-games/cel" DEPEND="${RDEPEND} >=sys-apps/sed-4" S="${WORKDIR}/${PN}" export PLANESHIFT_PREFIX=${PLANESHIFT_PREFIX:-${GAMES_PREFIX_OPT}/${PN}} export CRYSTAL_PREFIX=${CRYSTAL_PREFIX:-${GAMES_PREFIX_OPT}/crystal} export CEL_PREFIX=${CEL_PREFIX:-${CRYSTAL_PREFIX}} src_unpack() { unpack ${A} epatch "${FILESDIR}/${P}-fix-cast.diff" } src_compile() { env \ -uCEL \ -uCSCONFPATH \ CEL=${CEL_PREFIX} \ CSCONFPATH=${CEL_PREFIX} \ ./configure --prefix=${PLANESHIFT_PREFIX} --with-cs-prefix=${CRYSTAL_PREFIX} || die jam || die } src_install() { rm -rf src mk config* ac* Jam* install-sh mkinstalldirs \ missing autogen.sh depcomp Makefile.* ltmain.sh \ out support include dodir ${PLANESHIFT_PREFIX} mv * ${D}/${PLANESHIFT_PREFIX} dogamesbin ${FILESDIR}/planeshift sed -i \ -e "s:GENTOO_CRYSTAL_DIR:${CRYSTAL_PREFIX}:" \ -e "s:GENTOO_CEL_DIR:${CRYSTAL_PREFIX}:" \ -e "s:GENTOO_PLANESHIFT_DIR:${PLANESHIFT_PREFIX}:" \ "${D}${GAMES_BINDIR}/planeshift" \ || die "sed ${D}${GAMES_BINDIR}/planeshift failed" prepgamesdirs }