# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 inherit games DESCRIPTION="X-Plane 9 is is the world's most comprehensive and powerful flight simulator for personal computers. It offers the most realistic flight model available for home use." HOMEPAGE="http://www.x-plane.com/" SRC_URI="x86? ( http://216.40.234.226/X-Plane_900r3_timedemo.tar.bz2 http://omploader.org/vMjR2cQ/${P}-${PV}_patch-gentoo.tar.bz2 http://upload.wikimedia.org/wikipedia/en/4/49/X-Plane_icon.png )" SLOT="0" KEYWORDS="~x86" LICENSE="as-is" QA_PRESTRIPPED="opt/xplane9/X-Plane-i686" RDEPEND="virtual/opengl virtual/glu media-libs/openal x86? ( media-libs/libsdl ) !amd64? ( media-libs/libsdl ) amd64? ( app-emulation/emul-linux-x86-xlibs app-emulation/emul-linux-x86-sdl )" dir=${GAMES_PREFIX_OPT}/${PN} src_unpack() { unpack X-Plane_900r3_timedemo.tar.bz2 #mv vMjR2cQ # xplane9-${PV}_patch-gentoo.tar.bz2 unpack ${P}-${PV}_patch-gentoo.tar.bz2 #xplane9-${PV}_patch-gentoo.tar.bz2 } src_install() { dosym /usr/lib/libopenal.so.0 /usr/lib/libopenal.so.1 mv "${WORKDIR}"/X-Plane_900r3_timedemo "${S}" || die "mv failed" insinto "${dir}" doins -r "${S}"/* || die "doins failed" exeinto "${dir}" doexe "${WORKDIR}"/patch/Linux/* || die "doexe failed" doins -r "${WORKDIR}"/patch/All/* || die "doins failed" rm -rf "${WORKDIR}"/patch || die "rm failed" doicon "${DISTDIR}"/X-Plane_icon.png # update times find "${D}" -exec touch '{}' \; games_make_wrapper xplane ./X-Plane-i686 "${dir}" "${dir}" make_desktop_entry xplane "X-Plane 9" xplane prepgamesdirs } pkg_postinst() { games_pkg_postinst elog "To play the game run:" elog " xplane" echo }