blob: 69d7f8569fd8309c83c950d8347da9481161ccac (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-fps/quake3-demo/quake3-demo-1.11.ebuild,v 1.9 2004/11/17 18:58:17 wolf31o2 Exp $
inherit games
DESCRIPTION="Quake III Arena - Demo version"
HOMEPAGE="http://www.idsoftware.com/games/quake/quake3-arena/"
SRC_URI="ftp://ftp.idsoftware.com/idstuff/quake3/linux/linuxq3ademo-${PV}-6.x86.gz.sh
mirror://3dgamers/pub/3dgamers3/games/quake3arena/linuxq3ademo-${PV}-6.x86.gz.sh
mirror://3dgamers/pub/3dgamers/games/quake3arena/linuxq3ademo-${PV}-6.x86.gz.sh
ftp://ftp.bluesnews.com/idstuff/quake3/linux/linuxq3ademo-${PV}-6.x86.gz.sh"
LICENSE="Q3AEULA"
SLOT="0"
KEYWORDS="-* x86"
IUSE="opengl dedicated 3dfx"
DEPEND=""
RDEPEND="dedicated? ( app-misc/screen )
!dedicated? ( virtual/opengl )
opengl? ( virtual/opengl )"
S=${WORKDIR}
pkg_setup() {
check_license
games_pkg_setup
}
src_unpack() {
unpack_makeself
}
src_install() {
local dir=${GAMES_PREFIX_OPT}/${PN}
dodir ${dir}
cp -rf Help ${D}/${dir}/
cp -rf demoq3 ${D}/${dir}/
exeinto ${dir}
newexe bin/x86/glibc-2.0/q3ded q3ded.x86
newexe bin/x86/glibc-2.0/q3demo q3demo.x86
use 3dfx && doexe bin/x86/glibc-2.0/libMesaVoodooGL.so*
#use opengl && dosym /usr/lib/libGL.so ${dir}/libGL.so
doexe ${FILESDIR}/{q3demo,q3demo-ded}
dodir ${GAMES_BINDIR}
dosym ${dir}/q3demo ${GAMES_BINDIR}/q3demo
dosym ${dir}/q3ded-demo ${GAMES_BINDIR}/q3demo-ded
dosed "s:GENTOO_DIR:${dir}:" ${dir}/q3demo
dosed "s:GENTOO_DIR:${dir}:" ${dir}/q3demo-ded
insinto ${dir}
doins README icon.*
prepgamesdirs
make_desktop_entry q3demo "Quake III Demo"
}
pkg_postinst() {
einfo "To play the game run:"
einfo " q3demo"
games_pkg_postinst
}
|