summaryrefslogtreecommitdiff
blob: dfc28eaea9f4f16c7f34be6d51fbb571b0a9f1d1 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-arcade/emergence-bin/emergence-bin-0.9.ebuild,v 1.4 2006/03/31 20:22:17 wolf31o2 Exp $

inherit games

MY_P="${P/-bin}"
DESCRIPTION="Network-only top down space arcade game"
HOMEPAGE="http://emergence.uk.net/"
SRC_URI="http://emergence.uk.net/pub/releases/${PV}/${MY_P}-i686-linux-home.tbz2"

LICENSE="freedist"
SLOT="0"
KEYWORDS="-* ~x86"
IUSE=""
RESTRICT="strip"

RDEPEND=">=sys-libs/zlib-1.2.1
	>=media-libs/libpng-1.2.5
	>=media-libs/libvorbis-1.0
	>=media-libs/alsa-lib-1.0.2
	|| ( x11-libs/libXrandr virtual/x11 )"

S="${WORKDIR}/${MY_P}"

src_install() {
	dodir "${GAMES_PREFIX_OPT}/${PN}" "${GAMES_BINDIR}" /usr/share
	cp -R * "${D}${GAMES_PREFIX_OPT}/${PN}" || die "cp failed"
	rm -rf "${D}${GAMES_PREFIX_OPT}/${PN}"/{applications,pixmaps}
	cp -R {applications,pixmaps} "${D}/usr/share" || die "cp failed"
	games_make_wrapper em-client ./em-client "${GAMES_PREFIX_OPT}/${PN}"
	games_make_wrapper em-server ./em-server "${GAMES_PREFIX_OPT}/${PN}"
	games_make_wrapper em-edit ./em-edit "${GAMES_PREFIX_OPT}/${PN}"
	prepgamesdirs
}