blob: 3191ca4bef331b78ad77f672d90d09fd11a84632 (
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-action/swordandsworcery/swordandsworcery-1.02.ebuild,v 1.7 2015/02/19 10:40:22 ago Exp $
# TODO: unbundle liblua-5.1 when available for multilib
EAPI=5
inherit eutils games
DESCRIPTION="An exploratory action adventure game with an emphasis on audiovisual style"
HOMEPAGE="http://www.swordandsworcery.com/"
SRC_URI="${PN}_${PV}.tar.gz"
LICENSE="CAPYBARA-EULA LGPL-3"
SLOT="0"
KEYWORDS="-* amd64 ~x86"
IUSE="bundled-libs"
RESTRICT="bindist fetch splitdebug"
MYGAMEDIR=${GAMES_PREFIX_OPT}/${PN}
QA_PREBUILT="${MYGAMEDIR#/}/bin/*
${MYGAMEDIR#/}/lib/*"
# linked to pulseaudio
RDEPEND="
virtual/opengl
amd64? (
|| (
app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
(
>=dev-libs/openssl-1.0.1h-r2[abi_x86_32(-)]
>=sys-libs/zlib-1.2.8-r1[abi_x86_32(-)]
!bundled-libs? (
>=net-misc/curl-7.36.0[abi_x86_32(-)]
)
)
)
|| (
app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)]
(
>=virtual/glu-9.0-r1[abi_x86_32(-)]
>=virtual/opengl-7.0-r1[abi_x86_32(-)]
)
)
!bundled-libs? (
|| (
app-emulation/emul-linux-x86-sdl[-abi_x86_32(-)]
>=media-libs/libsdl-1.2.15-r4[X,sound,video,opengl,joystick,abi_x86_32(-)]
)
)
|| (
app-emulation/emul-linux-x86-soundlibs[alsa,-abi_x86_32(-)]
(
>=media-libs/alsa-lib-1.0.27.2[abi_x86_32(-)]
>=media-libs/flac-1.2.1-r5[abi_x86_32(-)]
>=media-libs/libogg-1.3.0[abi_x86_32(-)]
>=media-libs/libsndfile-1.0.25[abi_x86_32(-)]
>=media-libs/libvorbis-1.3.3-r1[abi_x86_32(-)]
>=media-sound/pulseaudio-2.1-r1[abi_x86_32(-)]
)
)
|| (
app-emulation/emul-linux-x86-xlibs[-abi_x86_32(-)]
(
>=x11-libs/libICE-1.0.8-r1[abi_x86_32(-)]
>=x11-libs/libSM-1.2.1-r1[abi_x86_32(-)]
>=x11-libs/libX11-1.6.2[abi_x86_32(-)]
>=x11-libs/libXau-1.0.7-r1[abi_x86_32(-)]
>=x11-libs/libxcb-1.9.1[abi_x86_32(-)]
>=x11-libs/libXdmcp-1.1.1-r1[abi_x86_32(-)]
>=x11-libs/libXext-1.3.2[abi_x86_32(-)]
>=x11-libs/libXi-1.7.2[abi_x86_32(-)]
>=x11-libs/libXtst-1.2.1-r1[abi_x86_32(-)]
)
)
)
x86? (
dev-libs/openssl
media-libs/alsa-lib
media-libs/flac
media-libs/libogg
media-libs/libsndfile
media-libs/libvorbis
media-sound/pulseaudio
sys-libs/zlib
virtual/glu
x11-libs/libICE
x11-libs/libSM
x11-libs/libX11
x11-libs/libXau
x11-libs/libxcb
x11-libs/libXdmcp
x11-libs/libXext
x11-libs/libXi
x11-libs/libXtst
!bundled-libs? (
net-misc/curl
media-libs/libsdl[X,sound,video,opengl,joystick]
)
)"
S=${WORKDIR}
pkg_nofetch() {
einfo "Please buy & download ${SRC_URI} from:"
einfo " ${HOMEPAGE}"
einfo "and move it to ${DISTDIR}"
}
src_prepare() {
if ! use bundled-libs ; then
einfo "removing bundled libs..."
rm -v lib/libcurl.so* lib/libSDL-1.2.so* \
lib/libstdc++.so* || die
fi
sed \
-e "s#@GAMEDIR@#${MYGAMEDIR}#" \
"${FILESDIR}"/${PN}-wrapper > "${T}"/${PN} || die
}
src_install() {
insinto "${MYGAMEDIR}"
doins -r bin lib res
dogamesbin "${T}"/${PN}
make_desktop_entry ${PN}
dohtml README.html
fperms +x "${MYGAMEDIR}"/bin/${PN}
prepgamesdirs
}
|