blob: 087ad93362bb5bd70b6da673c1ec8c39cce45afe (
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
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/hoh-bin/hoh-bin-1.01.ebuild,v 1.15 2014/10/15 10:33:55 pacho Exp $
EAPI=5
inherit eutils games
DESCRIPTION="PC remake of the spectrum game, Head Over Heels"
HOMEPAGE="http://retrospec.sgn.net/games/hoh/"
SRC_URI="http://retrospec.sgn.net/download.php?id=63\&path=games/hoh/bin/hohlin-${PV/./}.tar.bz2"
LICENSE="free-noncomm"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
RESTRICT="strip"
RDEPEND="
|| (
(
x11-libs/libX11[abi_x86_32(-)]
)
amd64? (
app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
)
)
"
DEPEND=""
S=${WORKDIR}/hoh-install-${PV}
# bug #448420
QA_PREBUILT="
/opt/HoH/data/runtime/libstdc++-libc6.2-2.so.3
/opt/HoH/data/HoH
"
src_compile() {
cat > "${T}/hoh" <<-EOF
#!/bin/bash
export LD_LIBRARY_PATH="${GAMES_PREFIX_OPT}/HoH/data/runtime"
cd "${GAMES_PREFIX_OPT}/HoH/data"
exec ./HoH \$@
EOF
}
src_install() {
local DATADIR="${GAMES_PREFIX_OPT}/HoH/data"
local DOCDIR="${GAMES_PREFIX_OPT}/HoH/docs"
dogamesbin "${T}/hoh" || die "dogames bin failed"
dodir "${DATADIR}" "${DOCDIR}"
cp -pPRf data/* "${D}/${DATADIR}/" || die "cp failed (data)"
cp -pPRf docs/* "${D}/${DOCDIR}/" || die "cp failed (docs)"
make_desktop_entry hoh "Head Over Heels"
prepgamesdirs
}
|