diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-11-08 03:32:07 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-11-08 03:32:07 +0000 |
commit | 0fb5d66aaa8e29ec2c8bf6542de8d26753e06136 (patch) | |
tree | 9803a1f5ae9197e9eaac2704c95602b2eb225640 /games-fps | |
parent | Fixes by Jon Bernard/Roy Walker for address checks on machines with lots of r... (diff) | |
download | gentoo-2-0fb5d66aaa8e29ec2c8bf6542de8d26753e06136.tar.gz gentoo-2-0fb5d66aaa8e29ec2c8bf6542de8d26753e06136.tar.bz2 gentoo-2-0fb5d66aaa8e29ec2c8bf6542de8d26753e06136.zip |
fix support for original quake2 cd, add support for the ultimate quake collection, and install additional rogue/xatrix mods if they exist
(Portage version: 2.0.53_rc7)
Diffstat (limited to 'games-fps')
-rw-r--r-- | games-fps/quake2-data/quake2-data-3.20.ebuild | 35 |
1 files changed, 27 insertions, 8 deletions
diff --git a/games-fps/quake2-data/quake2-data-3.20.ebuild b/games-fps/quake2-data/quake2-data-3.20.ebuild index 49b4daca8b63..0a135300335b 100644 --- a/games-fps/quake2-data/quake2-data-3.20.ebuild +++ b/games-fps/quake2-data/quake2-data-3.20.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-fps/quake2-data/quake2-data-3.20.ebuild,v 1.15 2005/10/31 23:03:45 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/quake2-data/quake2-data-3.20.ebuild,v 1.16 2005/11/08 03:32:07 vapier Exp $ inherit eutils games @@ -19,8 +19,8 @@ RDEPEND="" S=${WORKDIR} pkg_setup() { - export CDROM_SET_NAMES=("Existing Install" "Quake2 CD" "Quake4 Bonus DVD") - cdrom_get_cds baseq2:Install:Movies + export CDROM_SET_NAMES=("Existing Install" "Ultimate Quake Edition" "Quake2 CD" "Quake4 Bonus DVD") + cdrom_get_cds baseq2:Install/patch:Install:Movies games_pkg_setup } @@ -34,14 +34,18 @@ src_install() { dodoc DOCS/* 3.20_Changes.txt newdoc ctf/readme.txt ctf-readme.txt case ${CDROM_SET} in - 0|1) dohtml -r "${CDROM_ROOT}"/DOCS/quake2_manual/* ;; - 2) dodoc "${CDROM_ROOT}"/Docs/* ;; + 0) dohtml -r "${CDROM_ROOT}"/Install/DOCS/quake2_manual/* ;; + 1) dohtml -r "${CDROM_ROOT}"/Install/Docs/quake2_manual/* ;; + 2) dohtml -r "${CDROM_ROOT}"/Install/DOCS/quake2_manual/* ;; + 3) dodoc "${CDROM_ROOT}"/Docs/* ;; esac local baseq2_cdpath case ${CDROM_SET} in - 0|1) baseq2_cdpath=${CDROM_ROOT}/baseq2;; - 2) baseq2_cdpath=${CDROM_ROOT}/setup/Data/baseq2;; + 0) baseq2_cdpath=${CDROM_ROOT}/baseq2;; + 1) baseq2_cdpath=${CDROM_ROOT}/Install/Data/baseq2;; + 2) baseq2_cdpath=${CDROM_ROOT}/Install/Data/baseq2;; + 3) baseq2_cdpath=${CDROM_ROOT}/setup/Data/baseq2;; esac dodir ${GAMES_DATADIR}/quake2/baseq2 @@ -55,7 +59,22 @@ src_install() { doins "${baseq2_cdpath}"/pak0.pak || die "couldnt grab pak0.pak" doins baseq2/*.pak || die "couldnt grab release paks" doins baseq2/maps.lst || die "couldnt grab maps.lst" - cp -R baseq2/players "${D}/${GAMES_DATADIR}"/quake2/baseq2/ || die "couldnt grab player models" + dodir "${GAMES_DATADIR}"/quake2/baseq2/players + cp -R "${baseq2_cdpath}"/players/* baseq2/players/* \ + "${D}/${GAMES_DATADIR}"/quake2/baseq2/players/ || die "couldnt grab player models" + + for mod in ctf rogue xatrix ; do + if [[ -d ${baseq2_cdpath}/../${mod} ]] ; then + if use videos && [[ -d ${baseq2_cdpath}/../${mod}/video ]] ; then + insinto ${GAMES_DATADIR}/quake2/${mod}/video + doins "${baseq2_cdpath}"/../${mod}/video/* 2>/dev/null + fi + if [[ -n $(ls "${baseq2_cdpath}"/../${mod}/*.pak 2>/dev/null) ]] ; then + insinto ${GAMES_DATADIR}/quake2/${mod} + doins "${baseq2_cdpath}"/../${mod}/*.pak || die "doins ${mod} pak" + fi + fi + done insinto "${GAMES_DATADIR}"/quake2/ctf doins ctf/*.{cfg,ico,pak} || die "couldnt grab ctf" |