# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils versionator games MY_PV=$(replace_version_separator 2 '-') MY_PV=${MY_PV/_beta/dev} MY_PV=${MY_PV/_rc/rc} DESCRIPTION="Elite space trading & warfare remake" HOMEPAGE="http://oolite.aegidian.org/" 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="" DEPEND="virtual/x11 virtual/opengl" 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 ./install systemwide || die "install failed" # Remove updater program rm "${D}/${GAMES_PREFIX_OPT}"/Oolite/bin/oolite-update # Remove unnecessary libraries which revdep-rebuild would moan about rm -rf "${D}/${GAMES_PREFIX_OPT}"/Oolite/oolite-deps/GNUstep/System/Library/Bundles/{GSPrinting,SSL.bundle} # Use wrapper for pre-compiled binary games_make_wrapper oolite "${GAMES_PREFIX_OPT}"/Oolite/bin/oolite prepgamesdirs }