# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" inherit cdrom eutils games MY_PV=${PV/./} MY_EXE="setup_descent_1_2.exe" DESCRIPTION="Data files for Descent 2" HOMEPAGE="http://www.interplay.com/games/support.php?id=104" SRC_URI="!cdinstall? ( $MY_EXE )" # Don't have a method of applying the ver 1.2 patch in Linux # http://www.interplay.com/support/product.asp?GameID=109 # mirror://3dgamers/descent2/d2ptch${MY_PV}.exe # See readme.txt LICENSE="${PN}" SLOT="0" KEYWORDS="amd64 ppc x86" PROPERTIES="cdinstall? ( interactive )" RESTRICT="!cdinstall? ( fetch )" IUSE="+cdinstall doc vertigo videos" # d2x-0.2.5-r2 may include the CD data itself. # d2x-0.2.5-r3 does not include the CD data. # d2x-rebirth is favoured because it is stable. #RDEPEND="|| ( # games-action/d2x-rebirth # >=games-action/d2x-0.2.5-r3 )" RDEPEND="!/dev/null | wc -l) -gt 0 ]; then insinto "/usr/share/doc/${PF}" doins doc/*.pdf fi fi prepgamesdirs } pkg_postinst() { games_pkg_postinst elog "A client is needed to run the game, e.g. games-action/d2x-rebirth." echo }