# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils flag-o-matic games versionator DESCRIPTION="Elite space trading & warfare remake" HOMEPAGE="http://oolite.aegidian.org/" MY_PV=$(replace_version_separator 2 '-') MY_PV="${MY_PV/_beta/dev}" SRC_URI="ftp://ftp.alioth.net/oolite/oolite-${MY_PV}.x86.tar.gz" # See /opt/Oolite/doc/LICENSE.TXT LICENSE="creativecommons-by-nc-sa-2.0" SLOT="0" KEYWORDS="~x86" IUSE="" RDEPEND="virtual/x11 virtual/opengl" DEPEND="${RDEPEND} sys-apps/sed" S=${WORKDIR}/oolite-installer src_install() { sed -i install \ -e "s:/usr/local:${D}opt:" \ -e "s:\$INSTALLDIR/bin:${D}${GAMES_PREFIX_OPT}/\$TOPLEVEL/bin:" \ -e "s:OOLITE_ROOT=\$INSTALLDIR:OOLITE_ROOT=${GAMES_PREFIX_OPT}:" \ || die "sed failed" dodir "${GAMES_PREFIX_OPT}"/Oolite/bin sh install systemwide || die "install failed" # Remove updater program rm "${D}/${GAMES_PREFIX_OPT}"/Oolite/bin/oolite-update # Use wrapper for pre-compiled binary games_make_wrapper oolite "${GAMES_PREFIX_OPT}"/Oolite/bin/oolite prepgamesdirs } pkg_postinst() { games_pkg_postinst einfo "To play the game, run: oolite" }