blob: 63c0b087d340ab9346f5bf760d3ab037f084a34e (
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
61
62
63
64
65
66
67
68
69
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/pathological/pathological-1.1.3.ebuild,v 1.1 2003/09/22 06:08:26 msterret Exp $
inherit games
DESCRIPTION="An enriched clone of the game 'Logical' by Rainbow Arts"
HOMEPAGE="http://pathological.sourceforge.net/"
SRC_URI="mirror://sourceforge/pathological/${P}.tar.gz"
KEYWORDS="x86"
LICENSE="GPL-2"
SLOT="0"
IUSE="doc"
DEPEND="doc? ( media-libs/netpbm )
>=sys-apps/sed-4"
RDEPEND=">=dev-python/pygame-1.5.5
dev-lang/python"
src_unpack() {
unpack ${A}
cd ${S}
use doc && {
sed -i \
-e '5,$ s/=/ /g' makehtml || \
die "sed makehtml failed"
} || {
echo "#!/bin/sh" > makehtml || \
die "clearing makehtml failed"
}
sed -i \
-e "/^cd / s/usr/share/pathological${GAMES_DATADIR}/${PN}" \
pathological || die "sed pathological failed"
sed -i \
-e "/^write_highscores / s/usr/lib/pathological/bin${GAMES_LIBDIR}/${PN}" \
pathological.py || die "sed pathological.py failed"
}
src_install() {
# executables
dogamesbin pathological
insinto ${GAMES_DATADIR}/${PN}
insopts -m0750
doins pathological.py
exeinto ${GAMES_LIBDIR}/${PN}
doexe write-highscores
# removed some unneeded resource files
rm -f graphics/*.xcf
rm -f sounds/*.orig
# "install" resource files
# Use cp, not mv so install can be done multiple times (for ebuild devel).
cp -R circuits graphics music sounds ${D}/${GAMES_DATADIR}/${PN}
# setup high score file
insinto ${GAMES_STATEDIR}
insopts -m0664
doins pathological_scores
# documentation
dodoc README TODO
doman pathological.6.gz
use doc && dohtml -r html/
prepgamesdirs
}
|