blob: 2a45daa57d2d9776b8cc756e9997571844b099af (
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
55
56
57
58
59
60
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-action/descent1-demodata/descent1-demodata-1.4.ebuild,v 1.4 2010/01/31 05:08:20 mr_bones_ Exp $
inherit eutils games
MY_PV=${PV/./}
DEMO="desc${MY_PV}sw.exe"
DESCRIPTION="Demo data files for Descent 1"
HOMEPAGE="http://en.wikipedia.org/wiki/Descent_%28computer_game%29"
SRC_URI="http://icculus.org/d2x/data/${DEMO}
mirror://3dgamers/descent/${DEMO}
ftp://ftp.funet.fi/pub/msdos/games/interplay/${DEMO}"
# See readme.txt
LICENSE="free-noncomm"
SLOT="0"
KEYWORDS="~amd64 x86"
IUSE=""
RDEPEND=""
DEPEND="app-arch/unzip
app-arch/unarj"
S=${WORKDIR}
src_unpack() {
unzip -qo "${DISTDIR}/${A}" || die "unzip failed"
unarj e DESCENT1.SOW || die "unarj DESCENT1.SOW failed"
mv descent.pig{,1}
unarj e DESCENT2.SOW || die "unarj DESCENT2.SOW failed"
mv descent.pig{,2}
# From the sows, big porkie pies shall grow
cat descent.pig{1,2} > descent.pig || die "cat descent.pig failed"
rm *{1,2} *.{bat,exe,EXE,SOW,ubn}
}
src_install() {
local dir=${GAMES_DATADIR}/d1x
insinto "${dir}"
doins descent.* || die "doins failed"
dodoc *.txt
prepgamesdirs
}
pkg_postinst() {
games_pkg_postinst
elog "A client is needed to run the game, e.g. d1x-rebirth."
elog "Not all Descent 1 clients support the demo data."
echo
}
|