diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-02-08 21:33:38 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-02-08 21:33:38 +0000 |
commit | 31bfd0ea89f64b7f09b29cb701a91f9bbcbdd4a2 (patch) | |
tree | 8ba3ee730dabcfcde650ac4cd545303f0b1d0a2c /games-fps/quake2-data/quake2-data-3.20.ebuild | |
parent | x86 stable (diff) | |
download | historical-31bfd0ea89f64b7f09b29cb701a91f9bbcbdd4a2.tar.gz historical-31bfd0ea89f64b7f09b29cb701a91f9bbcbdd4a2.tar.bz2 historical-31bfd0ea89f64b7f09b29cb701a91f9bbcbdd4a2.zip |
new cdrom interface
Diffstat (limited to 'games-fps/quake2-data/quake2-data-3.20.ebuild')
-rw-r--r-- | games-fps/quake2-data/quake2-data-3.20.ebuild | 37 |
1 files changed, 20 insertions, 17 deletions
diff --git a/games-fps/quake2-data/quake2-data-3.20.ebuild b/games-fps/quake2-data/quake2-data-3.20.ebuild index cbcf6aeaf6be..b577fc081456 100644 --- a/games-fps/quake2-data/quake2-data-3.20.ebuild +++ b/games-fps/quake2-data/quake2-data-3.20.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # 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.5 2004/01/08 13:47:57 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/quake2-data/quake2-data-3.20.ebuild,v 1.6 2004/02/08 21:32:40 vapier Exp $ -inherit games +inherit games eutils DESCRIPTION="iD Software's Quake 2 ... the data files" HOMEPAGE="http://www.idsoftware.com/" @@ -18,36 +18,39 @@ DEPEND="app-arch/unzip S=${WORKDIR} -src_unpack() { - unzip -L -q ${DISTDIR}/q2-${PV}-x86-full-ctf.exe -} - -src_install() { - games_get_cd Install - games_verify_cd Quake 2 - if [ -e ${GAMES_CD}/Install/Data ] ; then - GAMES_CD=${GAMES_CD}/Install/Data +pkg_setup() { + cdrom_get_cds Install + if [ -e ${CDROM_ROOT}/Install/Data ] ; then + export CDROM_ROOT=${CDROM_ROOT}/Install/Data einfo "Source is the CD" - elif [ -e ${GAMES_CD}/baseq2 ] ; then - GAMES_CD=${GAMES_CD} + elif [ -e ${CDROM_ROOT}/baseq2 ] ; then + export CDROM_ROOT=${CDROM_ROOT} einfo "Source is an installed copy" else - die "Could not determine what ${GAMES_CD} points at" + die "Could not determine what ${CDROM_ROOT} points at" fi + games_pkg_setup +} + +src_unpack() { + unzip -L -q ${DISTDIR}/q2-${PV}-x86-full-ctf.exe +} + +src_install() { dodoc DOCS/* 3.20_Changes.txt newdoc ctf/readme.txt ctf-readme.txt - dohtml -r ${GAMES_CD}/DOCS/quake2_manual/* + dohtml -r ${CDROM_ROOT}/DOCS/quake2_manual/* dodir ${GAMES_DATADIR}/${PN}/baseq2 if [ `use videos` ] ; then insinto ${GAMES_DATADIR}/${PN}/baseq2/video - doins ${GAMES_CD}/baseq2/video/* + doins ${CDROM_ROOT}/baseq2/video/* fi insinto ${GAMES_DATADIR}/${PN}/baseq2 - doins ${GAMES_CD}/baseq2/pak0.pak || die "couldnt grab pak0.pak" + doins ${CDROM_ROOT}/baseq2/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}/${PN}/baseq2/ || die "couldnt grab player models" |