blob: cea92bd38d72a118018f417b8db6348ba2b6b5e8 (
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
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
#
inherit games
MY_PN=${PN/-bin/}
DESCRIPTION="Blood remake"
HOMEPAGE="http://www.planetblood.com/qblood/"
SRC_URI="mirror://sourceforge/blood/${MY_PN}-1.0-linux.i386.zip
mirror://sourceforge/blood/${MY_PN}-patch-${PV}-linux.i386.zip"
RESTRICT="nostrip"
KEYWORDS="-* x86"
LICENSE="GPL-2"
SLOT="0"
DEPEND=">=sys-apps/sed-4"
S="${WORKDIR}/${MY_PN}"
src_install() {
local dir=${GAMES_PREFIX_OPT}/${MY_PN}
dodir ${dir}
# install everything that looks anything like docs...
dodoc ${MY_PN}/doc/*.txt ${MY_PN}/*txt qw/*txt
dohtml ${MY_PN}/doc/*.html
#...then mass copy everything to the install dir...
cp -R * ${D}/${dir}/
# ...and remove the docs since we don't need them installed twice.
rm -rf \
${D}/${dir}/${MY_PN}/doc \
${D}/${dir}/qw/*txt \
${D}/${dir}/${MY_PN}/*txt
# install the wrapper...
dogamesbin ${FILESDIR}/transfusion
# ...and make it cd to the right place.
sed -i \
-e "s:GENTOO_DIR:${dir}:" ${D}/${GAMES_BINDIR}/transfusion || \
die "sed transfusion failed"
prepgamesdirs
}
|