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 (-14 / +14 lines)
Lines 4-10 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://3dgamers/quake4/quake4-linux-${PV}.x86.run
10
	mirror://idsoftware/quake4/linux/quake4-linux-${PV}.x86.run
10
	mirror://idsoftware/quake4/linux/quake4-linux-${PV}.x86.run
Lines 14-20 Link Here
14
LICENSE="QUAKE4"
14
LICENSE="QUAKE4"
15
SLOT="0"
15
SLOT="0"
16
KEYWORDS="-* ~amd64 ~x86"
16
KEYWORDS="-* ~amd64 ~x86"
17
IUSE="alsa cdinstall dedicated opengl"
17
IUSE="alsa cdinstall dedicated opengl smp"
18
RESTRICT="strip"
18
RESTRICT="strip"
19
19
20
UIDEPEND="virtual/opengl
20
UIDEPEND="virtual/opengl
Lines 59-75 Link Here
59
	doins *.txt README q4icon.bmp us/version.info
59
	doins *.txt README q4icon.bmp us/version.info
60
	doins -r pb
60
	doins -r pb
61
	doexe openurl.sh || die "openurl.sh"
61
	doexe openurl.sh || die "openurl.sh"
62
	if use x86; then
62
63
		doexe bin/Linux/x86/quake4.x86 bin/Linux/x86/q4ded.x86 \
63
	local arch_dir="x86"
64
			bin/Linux/x86/libgcc_s.so.1 bin/Linux/x86/libstdc++.so.* \
64
	use amd64 && arch_dir="x86_64"
65
			|| die "doexe x86 exes/libs"
65
	doexe bin/Linux/${arch_dir}/{*.x86,*.so*} \
66
	elif use amd64; then
66
		|| 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
67
74
	insinto ${dir}/q4base
68
	insinto ${dir}/q4base
75
	doins q4base/* us/q4base/* || die "doins q4base"
69
	doins q4base/* us/q4base/* || die "doins q4base"
Lines 80-90 Link Here
80
74
81
	if use opengl || ! use dedicated
75
	if use opengl || ! use dedicated
82
	then
76
	then
77
		local default_wrapper="quake4"
78
		if use smp
79
		then
80
			games_make_wrapper quake4-smp ./quake4smp.x86 "${dir}" "${dir}"
81
			default_wrapper="quake4-smp"
82
		fi
83
		games_make_wrapper quake4 ./quake4.x86 "${dir}" "${dir}"
83
		games_make_wrapper quake4 ./quake4.x86 "${dir}" "${dir}"
84
#		doicon ${FILESDIR}/quake4.png || die "copying icon"
84
#		doicon ${FILESDIR}/quake4.png || die "copying icon"
85
#		make_desktop_entry quake4 "Quake IV" quake4.png
85
#		make_desktop_entry quake4 "Quake IV" quake4.png
86
		newicon q4icon.bmp quake4.bmp || die "copying icon"
86
		newicon q4icon.bmp quake4.bmp || die "copying icon"
87
		make_desktop_entry quake4 "Quake IV" /usr/share/pixmaps/quake4.bmp
87
		make_desktop_entry "${default_wrapper}" "Quake IV" /usr/share/pixmaps/quake4.bmp
88
	fi
88
	fi
89
89
90
	prepgamesdirs
90
	prepgamesdirs

Return to bug 131604