/[gentoo-x86]/games-action/descent3-demo/descent3-demo-1.4.0a.ebuild
Gentoo

Contents of /games-action/descent3-demo/descent3-demo-1.4.0a.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.15 - (show annotations) (download)
Mon Jun 1 22:05:45 2015 UTC (2 years, 7 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.14: +7 -16 lines
clean up app-emulation/emul-linux which has been removed

(Portage version: 2.2.18/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-action/descent3-demo/descent3-demo-1.4.0a.ebuild,v 1.14 2014/06/27 11:11:36 mgorny Exp $
4
5 EAPI=5
6 inherit eutils unpacker games
7
8 DESCRIPTION="Indoor/outdoor 3D combat with evil robotic mining spacecraft"
9 HOMEPAGE="http://www.lokigames.com/products/descent3/"
10 SRC_URI="mirror://lokigames/loki_demos/${PN}.run"
11
12 LICENSE="all-rights-reserved"
13 SLOT="0"
14 KEYWORDS="amd64 x86"
15 IUSE=""
16 RESTRICT="mirror bindist strip"
17
18 DEPEND="games-util/loki_patch"
19 RDEPEND="sys-libs/glibc
20 >=virtual/opengl-7.0-r1[abi_x86_32(-)]
21 >=x11-libs/libX11-1.6.2[abi_x86_32(-)]
22 >=x11-libs/libXext-1.3.2[abi_x86_32(-)]"
23
24 dir="${GAMES_PREFIX_OPT}/${PN}"
25 QA_PREBUILT="${dir:1}/descent3_demo.x86
26 ${dir:1}/netgames/*.d3m"
27
28 S=${WORKDIR}
29
30 src_install() {
31 local demo="data/demos/descent3_demo"
32 local exe="descent3_demo.x86"
33
34 loki_patch patch.dat data/ || die
35
36 insinto "${dir}"
37 exeinto "${dir}"
38 doins -r "${demo}"/*
39 doexe "${demo}/${exe}"
40
41 # Required directory
42 keepdir "${dir}"/missions
43
44 # Fix for 2.6 kernel crash
45 cd "${Ddir}"
46 ln -sf ppics.hog PPics.Hog
47
48 games_make_wrapper ${PN} "./${exe}" "${dir}"
49 newicon "${demo}"/launch/box.png ${PN}.png
50 make_desktop_entry ${PN} "Descent 3 (Demo)" ${PN}
51
52 prepgamesdirs
53 }
54
55 pkg_postinst() {
56 games_pkg_postinst
57 elog "To play the game run:"
58 elog " descent3-demo"
59 elog
60 elog "If the game appears blank, then run it windowed with:"
61 elog " descent3-demo -w"
62 echo
63 }

  ViewVC Help
Powered by ViewVC 1.1.20