Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 127244 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/games-fps/doom3/doom3-1.3.1302-r1.ebuild (-27 / +14 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2006 Gentoo Foundation
1
# Copyright 1999-2006 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/games-fps/doom3/doom3-1.3.1302-r1.ebuild,v 1.6 2006/03/22 15:11:38 wolf31o2 Exp $
3
# $Header: $
4
4
5
inherit eutils games
5
inherit eutils games
6
6
Lines 13-28 Link Here
13
LICENSE="DOOM3"
13
LICENSE="DOOM3"
14
SLOT="0"
14
SLOT="0"
15
KEYWORDS="-* amd64 x86"
15
KEYWORDS="-* amd64 x86"
16
IUSE="cdinstall alsa dedicated opengl roe"
16
IUSE="cdinstall alsa opengl roe"
17
RESTRICT="nostrip"
17
RESTRICT="nostrip"
18
18
19
DEPEND="app-arch/bzip2
19
DEPEND="app-arch/bzip2
20
	app-arch/tar"
20
	app-arch/tar"
21
RDEPEND="sys-libs/glibc
21
RDEPEND="sys-libs/glibc
22
	opengl? ( virtual/opengl )
22
	opengl? ( virtual/opengl )
23
	dedicated? ( app-misc/screen )
24
	alsa? ( >=media-libs/alsa-lib-1.0.6 )
23
	alsa? ( >=media-libs/alsa-lib-1.0.6 )
25
	cdinstall? ( games-fps/doom3-data )
24
	cdinstall? ( games-fps/doom3-data )
25
	roe? ( games-fps/doom3-roe )
26
	amd64? ( app-emulation/emul-linux-x86-xlibs
26
	amd64? ( app-emulation/emul-linux-x86-xlibs
27
		app-emulation/emul-linux-x86-soundlibs )"
27
		app-emulation/emul-linux-x86-soundlibs )"
28
28
Lines 32-46 Link Here
32
dir=${GAMES_PREFIX_OPT}/${PN}
32
dir=${GAMES_PREFIX_OPT}/${PN}
33
Ddir=${D}/${dir}
33
Ddir=${D}/${dir}
34
34
35
pkg_setup() {
36
	games_pkg_setup
37
	if use cdinstall && use roe
38
	then
39
		built_with_use games-fps/doom3-data roe || \
40
			die "You must emerge games-fps/doom3-data with USE=roe"
41
	fi
42
}
43
44
src_unpack() {
35
src_unpack() {
45
	unpack_makeself ${PN}-linux-${PV}.x86.run
36
	unpack_makeself ${PN}-linux-${PV}.x86.run
46
}
37
}
Lines 59-73 Link Here
59
		die "Cannot copy executables!"
50
		die "Cannot copy executables!"
60
	fi
51
	fi
61
52
62
	insinto "${dir}"/pb
53
	insinto "${dir}"
63
	doins pb/* || die "doins pb"
54
	doins -r base d3xp pb || die "doins data"
64
	if use roe
65
	then
66
		insinto "${dir}"/d3xp
67
		doins d3xp/* || die "doins d3xp"
68
	fi
69
	insinto "${dir}"/base
70
	doins base/* || die "doins base"
71
55
72
	games_make_wrapper doom3 ./doom.x86 "${dir}" "${dir}"
56
	games_make_wrapper doom3 ./doom.x86 "${dir}" "${dir}"
73
	games_make_wrapper doom3-ded ./doomded.x86 "${dir}" "${dir}"
57
	games_make_wrapper doom3-ded ./doomded.x86 "${dir}" "${dir}"
Lines 84-97 Link Here
84
	if ! use cdinstall; then
68
	if ! use cdinstall; then
85
		einfo "You need to copy pak000.pk4, pak001.pk4, pak002.pk4, pak003.pk4, and"
69
		einfo "You need to copy pak000.pk4, pak001.pk4, pak002.pk4, pak003.pk4, and"
86
		einfo "pak004.pk4 from either your installation media or your hard drive to"
70
		einfo "pak004.pk4 from either your installation media or your hard drive to"
87
		einfo "${dir}/base before running the game."
71
		einfo "${dir}/base before running the game,"
72
		einfo "or 'emerge doom3-data' to install from CD."
88
		echo
73
		echo
89
		if use roe
90
		then
91
			einfo "To use the Ressurection of Evil expansion pack, you also need to copy"
92
			einfo "pak000.pk4 to ${dir}/d3xp before running the game."
93
		fi
94
	fi
74
	fi
75
76
	if ! use roe; then
77
		einfo "To use the Resurrection of Evil expansion pack, you need to copy"
78
		einfo "pak000.pk4 to ${dir}/d3xp before running the game,"
79
		einfo "or 'emerge doom3-roe' to install from CD."
80
	fi
81
95
	echo
82
	echo
96
	einfo "To play the game run:"
83
	einfo "To play the game run:"
97
	einfo " doom3"
84
	einfo " doom3"

Return to bug 127244