# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="5" inherit cdrom eutils games # Not possible to apply official 1.2 patch under Linux, so provide our own # http://www.interplay.com/support/support.php?id=104 # Should only be needed for original DOS CD-ROM release MY_PATCH="d2xptch12.tgz" # For GOG install 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_PATCH ) !cdinstall? ( $MY_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 }