blob: b632c2c8a336398e18ac03aee0572db293b495e5 (
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-action/hotline-miami/hotline-miami-1.0.9a.ebuild,v 1.1 2013/11/24 18:14:46 hasufell Exp $
# TODO: unbundle Qt5
# remove emul-linux-x86* deps (bug 484060)
EAPI=5
inherit eutils games
DESCRIPTION="High-octane action game overflowing with raw brutality"
HOMEPAGE="http://www.devolverdigital.com/games/view/hotline-miami"
SRC_URI="hotlinemiami_v${PV}-Linux_28-05-2013.tar.gz"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="bundled-libs +launcher"
RESTRICT="bindist fetch splitdebug"
MYGAMEDIR=${GAMES_PREFIX_OPT}/${PN}
QA_PREBUILT="${MYGAMEDIR#/}/lib/*
${MYGAMEDIR#/}/Hotline
${MYGAMEDIR#/}/hotline_launcher"
RDEPEND="
amd64? (
|| ( x11-libs/libX11[abi_x86_32] app-emulation/emul-linux-x86-xlibs )
!bundled-libs? (
media-gfx/nvidia-cg-toolkit[multilib]
|| (
( app-emulation/emul-linux-x86-soundlibs )
( media-libs/libogg[abi_x86_32]
media-libs/libvorbis[abi_x86_32]
media-libs/openal[abi_x86_32] )
)
)
launcher? (
|| (
( app-emulation/emul-linux-x86-xlibs )
( media-libs/freetype[abi_x86_32]
x11-libs/libXext[abi_x86_32]
x11-libs/libXrandr[abi_x86_32]
x11-libs/libXrender[abi_x86_32]
x11-libs/libxcb[abi_x86_32] )
)
)
)
x86? (
x11-libs/libX11
!bundled-libs? (
media-gfx/nvidia-cg-toolkit
media-libs/libogg
media-libs/libvorbis
media-libs/openal
)
launcher? (
media-libs/freetype
x11-libs/libXext
x11-libs/libXrandr
x11-libs/libXrender
x11-libs/libxcb
)
)"
S=${WORKDIR}
pkg_nofetch() {
einfo "Please buy & download ${SRC_URI} from:"
einfo " https://www.humblebundle.com/store"
einfo "and move it to ${DISTDIR}"
}
src_install() {
insinto "${MYGAMEDIR}"
doins HotlineMiami_GL.wad
exeinto "${MYGAMEDIR}"
doexe Hotline
use launcher && doexe hotline_launcher
exeinto "${MYGAMEDIR}/lib"
use launcher && doexe lib/libQt5*
use bundled-libs && doexe libCg* libopenal*
games_make_wrapper ${PN} "./Hotline" "${MYGAMEDIR}" "${MYGAMEDIR}/lib"
make_desktop_entry ${PN}
if use launcher ; then
games_make_wrapper ${PN}-launcher "./hotline_launcher" "${MYGAMEDIR}" "${MYGAMEDIR}/lib"
make_desktop_entry ${PN}-launcher "${PN} (launcher)"
fi
prepgamesdirs
}
|