From dc2d612749d1c49ef79c9d95973c3342676f68f9 Mon Sep 17 00:00:00 2001 From: Manuel Friedli Date: Fri, 4 Jul 2008 12:49:39 +0000 Subject: [PATCH] added ebuild for etqw-data --- games-fps/etqw-data/Manifest | 1 + games-fps/etqw-data/etqw-data-1.0.ebuild | 58 ++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 games-fps/etqw-data/Manifest create mode 100644 games-fps/etqw-data/etqw-data-1.0.ebuild diff --git a/games-fps/etqw-data/Manifest b/games-fps/etqw-data/Manifest new file mode 100644 index 0000000..188b25d --- /dev/null +++ b/games-fps/etqw-data/Manifest @@ -0,0 +1 @@ +EBUILD etqw-data-1.0.ebuild 1239 RMD160 a5c67ce840de5085fedf9ca2b454cbf665cc8d5c SHA1 6445423642989eb59fe81997bc85793e3cbdf1f3 SHA256 756d36dc34c112290f0f6b064326fee27bda28bde483bf8465b4782cbcfc80db diff --git a/games-fps/etqw-data/etqw-data-1.0.ebuild b/games-fps/etqw-data/etqw-data-1.0.ebuild new file mode 100644 index 0000000..93e0ae7 --- /dev/null +++ b/games-fps/etqw-data/etqw-data-1.0.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-fps/quake4-bin/quake4-bin-1.4.2.ebuild,v 1.2 2007/08/20 17:23:52 wolf31o2 Exp $ + +inherit eutils games + +DESCRIPTION="Enemy Territory: Quake Wars Data Files" +HOMEPAGE="http://zerowing.idsoftware.com/linux/etqw/" +SRC_URI="" + +#LICENSE="ETQW" +SLOT="0" +KEYWORDS="amd64 x86" +RESTRICT="" +IUSE="videos" + +S=${WORKDIR} +dir=${GAMES_PREFIX_OPT}/etqw +Ddir=${D}/${dir} + +#GAMES_CHECK_LICENSE="yes" + +pkg_setup() { + export CDROM_NAME_SET=("Existing Install" "Quake Wars CD") + cdrom_get_cds pak004.pk4:Setup/Data/base/zpak_english000.pk4 + + if [[ $CDROM_SET -ne 0 && $CDROM_SET -ne 1 ]] ; then + die "Error locating data files."; + fi +} + +src_install() { + insinto "${dir}"/base + + if [[ $CDROM_SET -eq 1 ]] ; then + ZPATH=${CDROM_ROOT}/Setup/Data/base/ + else + ZPATH=${CDROM_ROOT}/ + fi + + for i in zpak_english000.pk4 pak00*.pk4 megatextures + do + einfo "Copying ${i}..." + doins ${ZPATH}/${i} || die "unable to find/copy ${i}." + done + + if use videos ; then + einfo "Copying video..." + doins -r ${ZPATH}/video || die "unable to find/copy video file." + fi + + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst +} +