blob: 268977b36cb54ddc95a4ce12c0051913503ea0d9 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-arcade/gish-demo/gish-demo-1.0.0.ebuild,v 1.12 2006/10/02 08:01:14 mr_bones_ Exp $
inherit eutils multilib games
DESCRIPTION="play as an amorphous ball of tar that rolls and squishes around"
HOMEPAGE="http://www.chroniclogic.com/gish.htm"
SRC_URI="ftp://demos.garagegames.com/gish/gishdemo-${PV}.tar.gz"
LICENSE="as-is"
SLOT="0"
KEYWORDS="-* ~amd64 x86"
IUSE=""
RESTRICT="strip"
QA_EXECSTACK="${GAMES_PREFIX_OPT:1}/gish-demo/gish"
RDEPEND="media-libs/libsdl
media-libs/openal
media-libs/freealut
virtual/opengl
media-libs/libvorbis
amd64? (
>=app-emulation/emul-linux-x86-xlibs-2.1
>=app-emulation/emul-linux-x86-sdl-2.1 )"
S=${WORKDIR}/gishdemo
pkg_setup() {
games_pkg_setup
# Binary x86 package
has_multilib_profile && ABI="x86"
}
src_unpack() {
unpack ${A}
cd "${S}"
find . -type f -print0 | xargs -0 chmod a-x
chmod a+x gish
}
src_install() {
local dir=${GAMES_PREFIX_OPT}/${PN}
dodir "${dir}" "${GAMES_BINDIR}"
cp -pPR * "${D}"/${dir}/
games_make_wrapper gish ./gish-wrapper "${dir}"
# looks like when they built the game they accidently
# linked it against openssl ... lets fake it
dosym /$(get_libdir)/libc.so.6 "${dir}"/libssl.so.4
dosym /$(get_libdir)/libc.so.6 "${dir}"/libcrypto.so.4
exeinto "${dir}"
doexe "${FILESDIR}"/gish-wrapper
prepgamesdirs
}
|