blob: 4b73382002190b52431d32aaa425f8303feeb5a3 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-fps/postal2mp-demo/postal2mp-demo-1407.ebuild,v 1.8 2007/07/31 14:33:56 cardoe Exp $
inherit eutils games
DESCRIPTION="You play the Postal Dude: POSTAL 2 is only as violent as you are."
HOMEPAGE="http://www.gopostal.com/home/"
SRC_URI="mirror://3dgamers/postal2/Missions/postal2mpdemo-lnx-${PV}.tar.bz2"
LICENSE="postal2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
RESTRICT="mirror strip"
RDEPEND="x11-libs/libXext
amd64? (
app-emulation/emul-linux-x86-baselibs
app-emulation/emul-linux-x86-xlibs
|| (
>=app-emulation/emul-linux-x86-xlibs-7.0
x11-drivers/nvidia-drivers
>=x11-drivers/ati-drivers-8.8.25-r1 ) )"
DEPEND=">=sys-apps/portage-2.1"
S=${WORKDIR}
GAMES_CHECK_LICENSE="yes"
dir="${GAMES_PREFIX_OPT}/${PN}"
Ddir="${D}/${dir}"
src_unpack() {
unpack ${A}
unpack_makeself postal2mpdemo-lnx-${PV}.run
rm -f postal2mpdemo-lnx-${PV}.run
unpack ./postal2mpdemo.tar && rm -f postal2mpdemo.tar
unpack ./linux-specific.tar && rm -f linux-specific.tar
}
src_install() {
insinto "${dir}"
doins -r * || die
games_make_wrapper ${PN} ./postal2-bin "${dir}"/System
newicon postal2mpdemo.xpm ${PN}.xpm
make_desktop_entry ${PN} "Postal 2: Share the Pain (Demo)" ${PN}.xpm
fperms 750 "${dir}"/System/{postal2,ucc}-bin
prepgamesdirs
}
|