diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-01-15 03:08:09 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-01-15 03:08:09 +0000 |
commit | 2b5d40a82f5eb72ff9aef98d5f740ebe1391e52b (patch) | |
tree | 4779621f83e91d64a6e24b1ba4c99f62f2f3582c /games-fps/unreal-tournament/unreal-tournament-436.ebuild | |
parent | oh god i just unmasked it (diff) | |
download | gentoo-2-2b5d40a82f5eb72ff9aef98d5f740ebe1391e52b.tar.gz gentoo-2-2b5d40a82f5eb72ff9aef98d5f740ebe1391e52b.tar.bz2 gentoo-2-2b5d40a82f5eb72ff9aef98d5f740ebe1391e52b.zip |
change to new cdrom stuff
Diffstat (limited to 'games-fps/unreal-tournament/unreal-tournament-436.ebuild')
-rw-r--r-- | games-fps/unreal-tournament/unreal-tournament-436.ebuild | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/games-fps/unreal-tournament/unreal-tournament-436.ebuild b/games-fps/unreal-tournament/unreal-tournament-436.ebuild index a5d6deb78612..038906d8684e 100644 --- a/games-fps/unreal-tournament/unreal-tournament-436.ebuild +++ b/games-fps/unreal-tournament/unreal-tournament-436.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-fps/unreal-tournament/unreal-tournament-436.ebuild,v 1.3 2003/10/05 02:42:53 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/unreal-tournament/unreal-tournament-436.ebuild,v 1.4 2004/01/15 03:08:08 vapier Exp $ inherit games eutils @@ -22,8 +22,7 @@ S=${WORKDIR} pkg_setup() { check_license - games_get_cd System/ - games_verify_cd ${PN} + cdrom_get_cds System/ games_pkg_setup } @@ -37,13 +36,13 @@ src_install() { dodir ${dir} # Help, Logs, Music, Textures, Web - cp -rf ${UT_CD}/{Help,Logs,Music,Textures,Web} ${D}/${dir}/ || die "copy Help, Logs, Music, Textures, Web" + cp -rf ${CDROM_ROOT}/{Help,Logs,Music,Textures,Web} ${D}/${dir}/ || die "copy Help, Logs, Music, Textures, Web" tar -zxf Credits.tar.gz -C ${D}/${dir} || die "extract credits texture" # NetGamesUSA.com tar -zxf NetGamesUSA.com.tar.gz -C ${D}/${dir}/ || die "extract NetGamesUSA.com" # Sounds dodir ${dir}/Sounds - cp -rf ${UT_CD}/Sounds/*.uax ${D}/${dir}/Sounds/ || die "copy Sounds" + cp -rf ${CDROM_ROOT}/Sounds/*.uax ${D}/${dir}/Sounds/ || die "copy Sounds" # System if [ `use 3dfx` ] ; then @@ -52,7 +51,7 @@ src_install() { tar -zxf OpenGL.ini.tar.gz -C ${D}/${dir} || die "install OpenGL ini" fi tar -zxf data.tar.gz -C ${D}/${dir} || die "extract System data" - cp ${UT_CD}/System/*.u ${D}/${dir}/System/ || die "copy System data" + cp ${CDROM_ROOT}/System/*.u ${D}/${dir}/System/ || die "copy System data" # the most important things, ucc & ut :) exeinto ${dir} @@ -78,11 +77,11 @@ src_install() { cd ${D}/${dir} export HOME=${T} export UT_DATA_PATH=${D}/${dir}/System - for f in `find ${UT_CD}/Maps/ -name '*.uz' -printf '%f '` ; do - ./ucc decompress ${UT_CD}/Maps/${f} -nohomedir || die "uncompressing map ${f}" + for f in `find ${CDROM_ROOT}/Maps/ -name '*.uz' -printf '%f '` ; do + ./ucc decompress ${CDROM_ROOT}/Maps/${f} -nohomedir || die "uncompressing map ${f}" mv System/${f:0:${#f}-3} Maps/ || die "copy map ${f}" done - cp -rf ${UT_CD}/Maps/*.unr ${D}/${dir}/Maps/ # some cd's have uncompressed maps ?? + cp -rf ${CDROM_ROOT}/Maps/*.unr ${D}/${dir}/Maps/ # some cd's have uncompressed maps ?? # export some symlinks so ppl can run dodir ${GAMES_BINDIR} |