# 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/vMjR4cg/${P}_patch-gentoo.tar.bz2 http://upload.wikimedia.org/wikipedia/en/4/49/X-Plane_icon.png )" SLOT="0" KEYWORDS="~x86" LICENSE="as-is" IUSE="doc" QA_PRESTRIPPED="opt/xplane/X-Plane-i686; opt/xplane/Airfoil-Maker-i686; opt/xplane/Plane-Maker-i686; opt/xplane/Resources/plugins/PluginAdmin/lin.xpl; opt/xplane/Resources/plugins/XPLM.so; opt/xplane/Resources/plugins/XPWidgets.so; opt/xplane/Briefer-i686" RDEPEND="virtual/opengl virtual/glu media-libs/openal !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 unpack ${P}_patch-gentoo.tar.bz2 } src_install() { exeopts -m0555 dosym libopenal.so.00000000 /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" if use doc; then dodoc -r "${WORKDIR}"/patch/Instructions/* || die "dodoc failed" fi 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 }