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

Collapse All | Expand All

(-)/usr/portage/games-fps/quake4-bin/quake4-bin-1.2.ebuild (-19 / +16 lines)
Lines 4-21 Link Here
4
4
5
inherit eutils games
5
inherit eutils games
6
6
7
DESCRIPTION="Sequel to Quake 2, an Id 3D first-person shooter"
7
DESCRIPTION="Sequel to Quake 2, an id 3D first-person shooter"
8
HOMEPAGE="http://www.quake4game.com/"
8
HOMEPAGE="http://www.quake4game.com/"
9
SRC_URI="mirror://3dgamers/quake4/quake4-linux-${PV}.x86.run
9
SRC_URI="mirror://idsoftware/quake4/linux/quake4-linux-${PV}.x86.run"
10
	mirror://idsoftware/quake4/linux/quake4-linux-${PV}.x86.run
11
	http://filebase.gmpf.de/quake4/quake4-linux-${PV}.x86.run
12
	http://www.holarse.de/mirror/quake4-linux-${PV}.x86.run"
13
10
14
LICENSE="QUAKE4"
11
LICENSE="QUAKE4"
15
SLOT="0"
12
SLOT="0"
16
KEYWORDS="-* ~amd64 ~x86"
13
KEYWORDS="-* ~amd64 ~x86"
17
IUSE="alsa cdinstall dedicated opengl"
14
IUSE="alsa cdinstall dedicated opengl smp"
18
RESTRICT="strip"
15
RESTRICT="primaryuri strip"
19
16
20
UIDEPEND="virtual/opengl
17
UIDEPEND="virtual/opengl
21
	x86? (
18
	x86? (
Lines 59-75 Link Here
59
	doins *.txt README q4icon.bmp us/version.info
56
	doins *.txt README q4icon.bmp us/version.info
60
	doins -r pb
57
	doins -r pb
61
	doexe openurl.sh || die "openurl.sh"
58
	doexe openurl.sh || die "openurl.sh"
62
	if use x86; then
59
63
		doexe bin/Linux/x86/quake4.x86 bin/Linux/x86/q4ded.x86 \
60
	local arch_dir="x86"
64
			bin/Linux/x86/libgcc_s.so.1 bin/Linux/x86/libstdc++.so.* \
61
	use amd64 && arch_dir="x86_64"
65
			|| die "doexe x86 exes/libs"
62
	doexe bin/Linux/${arch_dir}/{*.x86,*.so*} \
66
	elif use amd64; then
63
		|| die "doexe exes/libs"
67
		doexe bin/Linux/x86_64/quake4.x86 bin/Linux/x86_64/q4ded.x86 \
68
			bin/Linux/x86_64/libgcc_s.so.1 bin/Linux/x86_64/libstdc++.so.* \
69
			|| die "doexe amd64 exes/libs"
70
	else
71
		die "Cannot copy executables!"
72
	fi
73
64
74
	insinto ${dir}/q4base
65
	insinto ${dir}/q4base
75
	doins q4base/* us/q4base/* || die "doins q4base"
66
	doins q4base/* us/q4base/* || die "doins q4base"
Lines 80-90 Link Here
80
71
81
	if use opengl || ! use dedicated
72
	if use opengl || ! use dedicated
82
	then
73
	then
74
		local default_wrapper="quake4"
75
		if use smp
76
		then
77
			games_make_wrapper quake4-smp ./quake4smp.x86 "${dir}" "${dir}"
78
			default_wrapper="quake4-smp"
79
		fi
83
		games_make_wrapper quake4 ./quake4.x86 "${dir}" "${dir}"
80
		games_make_wrapper quake4 ./quake4.x86 "${dir}" "${dir}"
84
#		doicon ${FILESDIR}/quake4.png || die "copying icon"
81
#		doicon ${FILESDIR}/quake4.png || die "copying icon"
85
#		make_desktop_entry quake4 "Quake IV" quake4.png
82
#		make_desktop_entry quake4 "Quake IV" quake4.png
86
		newicon q4icon.bmp quake4.bmp || die "copying icon"
83
		newicon q4icon.bmp quake4.bmp || die "copying icon"
87
		make_desktop_entry quake4 "Quake IV" /usr/share/pixmaps/quake4.bmp
84
		make_desktop_entry "${default_wrapper}" "Quake IV" /usr/share/pixmaps/quake4.bmp
88
	fi
85
	fi
89
86
90
	prepgamesdirs
87
	prepgamesdirs

Return to bug 131604