blob: 601ead2c810af640ff0d0848f1c49bfce2c1d8dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-fps/doom3-demo/doom3-demo-1.1.1286-r1.ebuild,v 1.1 2014/07/03 22:07:43 axs Exp $
EAPI=5
inherit eutils unpacker games
DESCRIPTION="Doom III - 3rd installment of the classic id 3D first-person shooter"
HOMEPAGE="http://www.doom3.com/"
SRC_URI="mirror://3dgamers/doom3/doom3-linux-${PV}-demo.x86.run
mirror://idsoftware/doom3/linux/doom3-linux-${PV}-demo.x86.run
mirror://gentoo/doom3.png"
LICENSE="DOOM3"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE="opengl dedicated"
RESTRICT="strip mirror"
QA_EXECSTACK="${GAMES_PREFIX_OPT:1}/${PN}/*"
# Do not remove the amd64 dep unless you are POSITIVE that it is not necessary.
# See bug #88227 for more.
RDEPEND="sys-libs/glibc
sys-libs/libstdc++-v3:5
amd64? ( sys-libs/glibc[multilib] sys-libs/libstdc++-v3:5[multilib] )
|| (
(
>=x11-libs/libX11-1.6.2[abi_x86_32(-)]
>=x11-libs/libXext-1.3.2[abi_x86_32(-)]
)
app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
)
opengl? ( || (
virtual/opengl[abi_x86_32(-)]
app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
) )
dedicated? ( app-misc/screen )"
S=${WORKDIR}
dir=${GAMES_PREFIX_OPT}/${PN}
Ddir=${D}/${dir}
src_unpack() {
unpack_makeself doom3-linux-${PV}-demo.x86.run
}
src_install() {
dodir "${dir}"
insinto "${dir}"
doins License.txt README version.info
exeinto "${dir}"
#doexe gamex86.so libgcc_s.so.1 libstdc++.so.5 || die "doexe libs"
doexe gamex86.so bin/Linux/x86/doom.x86
insinto "${dir}"/demo
doins demo/* || die "doins base"
newicon "${DISTDIR}"/doom3.png ${PN}.png
games_make_wrapper ${PN} ./doom.x86 "${dir}" "${dir}"
make_desktop_entry ${PN} "Doom III (Demo)"
prepgamesdirs
}
pkg_postinst() {
games_pkg_postinst
elog "To play the game run:"
elog " doom3-demo"
}
|