blob: 66c2bbfa14c384e0782a5b3ce18e59efff4f49a5 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-emulation/xe/xe-20050801.ebuild,v 1.3 2006/02/11 04:06:03 joshuabaergen Exp $
inherit games
MY_PV="${PV:2:2}.${PV:4:2}.${PV:6:2}"
DESCRIPTION="a multi system emulator for many console and handheld video game systems"
HOMEPAGE="http://www.xe-emulator.com/"
SRC_URI="http://www.xe-emulator.com/files/${PN}-${MY_PV}.tar.bz2"
LICENSE="as-is"
SLOT="0"
KEYWORDS="-* ~x86"
IUSE=""
RESTRICT="nostrip"
RDEPEND="|| ( ( x11-libs/libXv
x11-libs/libXxf86vm )
virtual/x11 )
sys-libs/zlib
=x11-libs/gtk+-2*"
DEPEND="${RDEPEND}
dev-util/pkgconfig"
S=${WORKDIR}/${PN}-bin
src_unpack() {
unpack ${A}
cd "${S}"
sed -i \
-e '/strip/d' \
-e '/^CC/d' \
Makefile \
|| die "sed failed"
}
src_install() {
newgamesbin xe xe.bin || die "newgamesbin failed"
newgamesbin "${FILESDIR}/xe-${PV}" xe || die "newgamesbin failed"
sed -i \
-e "s:GENTOODIR:${GAMES_LIBDIR}/${PN}:" "${D}/${GAMES_BINDIR}/xe" \
|| die "sed failed"
insinto "${GAMES_LIBDIR}/${PN}"
doins -r modules || die "doins failed"
dodoc README.txt
prepgamesdirs
}
|