summaryrefslogtreecommitdiff
blob: 7602b571c3dce7a0a37173c2f7bd86ae2c02b5f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-fps/quake1-ctf/quake1-ctf-4.0.ebuild,v 1.2 2005/09/26 18:08:17 wolf31o2 Exp $

inherit eutils games

DESCRIPTION="The original Three Wave Capture The Flag"
HOMEPAGE="http://www.threewave.com/"
SRC_URI="http://www.threewave.com/quake1/files/3wctf301.zip
	http://www.threewave.com/quake1/files/3wctfc40.zip
	http://www.threewave.com/quake1/files/ctfepc14.zip
	http://www.threewave.com/quake1/files/alst101c.zip
	http://www.threewave.com/quake1/files/alst110u.zip"
#	dedicated? ( http://www.threewave.com/quake1/files/alst110s.zip )
#	dedicated? ( http://www.threewave.com/quake1/files/3wave421d.zip )

LICENSE="as-is"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""

RDEPEND=""
DEPEND="app-arch/unzip"

S=${WORKDIR}

src_unpack() {
	mkdir ctf
	cd ctf
	echo ">>> Unpacking 3wctf301.zip to ${PWD}"
	unzip -qoL "${DISTDIR}"/3wctf301.zip || die "unpacking 3wctf301.zip failed"
	mv readme.txt readme-301.txt
	echo ">>> Unpacking 3wctfc40.zip to ${PWD}"
	unzip -qoL "${DISTDIR}"/3wctfc40.zip || die "unpacking 3wctfc40.zip failed"
	mv readme.txt readme-40.txt
	echo ">>> Unpacking ctfepc14.zip to ${PWD}"
	unzip -qoL "${DISTDIR}"/ctfepc14.zip || die "unpacking ctfepc14.zip failed"
	cd ..
	echo ">>> Unpacking alst101c.zip to ${PWD}"
	unzip -qoL "${DISTDIR}"/alst101c.zip || die "unpacking alst101c.zip failed"
	mv ctf/readme.txt ctf/readme-alst101c.txt
	echo ">>> Unpacking alst110u.zip to ${PWD}"
	unzip -qoL "${DISTDIR}"/alst110u.zip || die "unpacking alst110u.zip failed"
	mv ctf/readme.txt ctf/readme-alst110u.txt
	rmdir maps progs readme
}

src_install() {
	local dir=${GAMES_DATADIR}/quake-data
	dodir "${dir}"
	insinto "${dir}"
	doins -r *
	prepgamesdirs
}