# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: inherit eutils gnustep versionator games MY_PV=$(replace_version_separator 2 '-') MY_PV=${MY_PV/_beta/dev} DESCRIPTION="Elite space trading & warfare remake" HOMEPAGE="http://oolite.aegidian.org/" SRC_URI="ftp://ftp.alioth.net/${PN}/${PN}-data-${MY_PV}.tar.gz ftp://ftp.alioth.net/${PN}/${PN}-src-${MY_PV}.tar.gz" # See doc/LICENSE.TXT LICENSE="creativecommons-by-nc-sa-2.0" SLOT="0" KEYWORDS="~x86" # Refers to GNUstep docs IUSE="doc" # libffi-3.3.5 is not compatible with gcc-3.4.4-r1 SDL_DEPEND=" media-libs/libsdl media-libs/sdl-mixer media-libs/sdl-gfx >=dev-libs/libffi-3.4.1-r1" # Masses of gnustep dependencies, including a gcc recompile for "objc" USE flag DEPEND="${GS_DEPEND} ${SDL_DEPEND}" RDEPEND="${GS_RDEPEND} >=gnustep-base/gnustep-gui-0.9.5 >=gnustep-base/gnustep-back-xlib-0.9.5 ${SDL_DEPEND}" S="${WORKDIR}/${PN}-src" egnustep_install_domain "Local" src_unpack() { unpack ${A} mv "${WORKDIR}"/oolite-data/* "${S}"/ || die "mv failed" touch "${WORKDIR}"/oolite-data/placeholder-to-keep-ebuild-happy # sed -i "s:\$(GNUSTEP_USER_ROOT):/usr/GNUstep/System/Library/Libraries/:" \ # "${S}"/GNUmakefile \ # || die "sed failed" } src_compile() { gnustep_src_compile } src_install() { # This is broken. # Info at http://bugs.gentoo.org/show_bug.cgi?id=100390 and http://dev.gentoo.org/~fafhrd/ #cd "${WORKDIR}"/oolite-data/ #insinto "${GAMES_DATADIR}/oolite/" #doins -r oolite.app/* || die "doins failed" dogamesbin ". /usr/GNUstep/System/Libraries/Makefiles/GNUstep.sh && openapp oolite" \ || die "dogamesbin failed" #games_make_wrapper oolite gnustep_src_install prepgamesdirs }