summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2006-10-25 16:03:24 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2006-10-25 16:03:24 +0000
commit818207fee2f806ab9eeb66a675cd720e648ee310 (patch)
tree0e8d2651ddf4fb237cda11b5015ed45ecb2701e7 /games-fps/quake3-bin
parentStable on sparc (diff)
downloadgentoo-2-818207fee2f806ab9eeb66a675cd720e648ee310.tar.gz
gentoo-2-818207fee2f806ab9eeb66a675cd720e648ee310.tar.bz2
gentoo-2-818207fee2f806ab9eeb66a675cd720e648ee310.zip
Changed q3ded to quake3-ded and switched to using default_client function.
(Portage version: 2.1.2_pre3-r5)
Diffstat (limited to 'games-fps/quake3-bin')
-rw-r--r--games-fps/quake3-bin/ChangeLog6
-rw-r--r--games-fps/quake3-bin/quake3-bin-1.32c-r1.ebuild39
2 files changed, 29 insertions, 16 deletions
diff --git a/games-fps/quake3-bin/ChangeLog b/games-fps/quake3-bin/ChangeLog
index 03502106e811..a47b868c1364 100644
--- a/games-fps/quake3-bin/ChangeLog
+++ b/games-fps/quake3-bin/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for games-fps/quake3-bin
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-fps/quake3-bin/ChangeLog,v 1.21 2006/10/23 18:56:54 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-fps/quake3-bin/ChangeLog,v 1.22 2006/10/25 16:03:24 wolf31o2 Exp $
+
+ 25 Oct 2006; Chris Gianelloni <wolf31o2@gentoo.org>
+ quake3-bin-1.32c-r1.ebuild:
+ Changed q3ded to quake3-ded and switched to using default_client function.
*quake3-bin-1.32c-r1 (23 Oct 2006)
diff --git a/games-fps/quake3-bin/quake3-bin-1.32c-r1.ebuild b/games-fps/quake3-bin/quake3-bin-1.32c-r1.ebuild
index ee7199dc234c..c5199c9612b1 100644
--- a/games-fps/quake3-bin/quake3-bin-1.32c-r1.ebuild
+++ b/games-fps/quake3-bin/quake3-bin-1.32c-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-fps/quake3-bin/quake3-bin-1.32c-r1.ebuild,v 1.1 2006/10/23 18:56:54 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-fps/quake3-bin/quake3-bin-1.32c-r1.ebuild,v 1.2 2006/10/25 16:03:24 wolf31o2 Exp $
inherit eutils games
@@ -48,6 +48,16 @@ QA_TEXTRELS="${dir:1}/pb/pbag.so
${dir:1}/pb/pbcl.so
${dir:1}/pb/pbsv.so"
+default_client() {
+ if use opengl || ! use dedicated
+ then
+ # Use opengl by default
+ return 0
+ else
+ return 1
+ fi
+}
+
pkg_setup() {
if use cdinstall
then
@@ -63,25 +73,24 @@ src_unpack() {
}
src_install() {
- dodir ${dir}/{baseq3,missionpack}
+ dodir "${dir}"/{baseq3,missionpack}
if use cdinstall ; then
- dosym ${GAMES_DATADIR}/quake3/baseq3/pak0.pk3 ${dir}/baseq3/pak0.pk3
- use teamarena && dosym ${GAMES_DATADIR}/quake3/missionpack/pak0.pk3 \
- ${dir}/missionpack/pak0.pk3
+ dosym "${GAMES_DATADIR}"/quake3/baseq3/pak0.pk3 "${dir}"/baseq3/pak0.pk3
+ use teamarena && dosym "${GAMES_DATADIR}"/quake3/missionpack/pak0.pk3 \
+ "${dir}"/missionpack/pak0.pk3
fi
for pk3 in baseq3/*.pk3 missionpack/*.pk3 ; do
- dosym ${GAMES_DATADIR}/quake3/${pk3} ${dir}/${pk3}
+ dosym "${GAMES_DATADIR}"/quake3/${pk3} "${dir}"/${pk3}
done
- insinto ${dir}
+ insinto "${dir}"
doins -r Docs pb || die "ins docs/pb"
- exeinto ${dir}
- insinto ${dir}
- doexe "Quake III Arena 1.32c"/linux/quake3*.x86 || die "doexe"
+ exeinto "${dir}"
doins quake3.xpm README* Q3A_EULA.txt
- if use opengl || ! use dedicated
+ if default_client
then
+ doexe "Quake III Arena 1.32c"/linux/quake3*.x86 || die "doexe"
games_make_wrapper ${PN} ./quake3.x86 "${dir}" "${dir}"
newicon quake3.xpm ${PN}.xpm
make_desktop_entry ${PN} "Quake III Arena (binary)" ${PN}.xpm
@@ -96,9 +105,9 @@ src_install() {
if use dedicated
then
doexe "Quake III Arena 1.32c"/linux/q3ded || die "doexe q3ded"
- games_make_wrapper q3ded-bin ./q3ded "${dir}" "${dir}"
- newinitd "${FILESDIR}"/q3ded.rc q3ded
- newconfd "${FILESDIR}"/q3ded.conf.d q3ded
+ games_make_wrapper quake3-ded ./q3ded "${dir}" "${dir}"
+ newinitd "${FILESDIR}"/q3ded.rc quake3-ded
+ newconfd "${FILESDIR}"/q3ded.conf.d quake3-ded
fi
games_link_mods
@@ -114,7 +123,7 @@ pkg_postinst() {
if use dedicated; then
echo
einfo "To start a dedicated server, run"
- einfo " /etc/init.d/q3ded start"
+ einfo " /etc/init.d/quake3-ded start"
echo
einfo "The dedicated server is started under the ${GAMES_USER_DED} user account."
fi