Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 140046
Collapse All | Expand All

(-)/usr/portage/games-fps/postal2mp-demo/postal2mp-demo-1407.ebuild (-16 / +12 lines)
Lines 5-18 Link Here
5
inherit eutils games
5
inherit eutils games
6
6
7
DESCRIPTION="You play the Postal Dude: POSTAL 2 is only as violent as you are."
7
DESCRIPTION="You play the Postal Dude: POSTAL 2 is only as violent as you are."
8
HOMEPAGE="http://www.gopostal.com/home/"
8
HOMEPAGE="http://www.gopostal.com/"
9
SRC_URI="mirror://3dgamers/postal2/Missions/postal2mpdemo-lnx-${PV}.tar.bz2"
9
SRC_URI="mirror://3dgamers/postal2/Missions/postal2mpdemo-lnx-${PV}.tar.bz2"
10
10
11
LICENSE="postal2"
11
LICENSE="postal2"
12
SLOT="0"
12
SLOT="0"
13
KEYWORDS="~amd64 x86"
13
KEYWORDS="~amd64 x86"
14
IUSE=""
14
IUSE=""
15
RESTRICT="mirror"
15
RESTRICT="mirror strip"
16
16
17
RDEPEND="|| ( x11-libs/libXext
17
RDEPEND="|| ( x11-libs/libXext
18
			  virtual/x11 )
18
			  virtual/x11 )
Lines 26-57 Link Here
26
			x11-drivers/nvidia-legacy-drivers
26
			x11-drivers/nvidia-legacy-drivers
27
			>=x11-drivers/ati-drivers-8.8.25-r1 ) )"
27
			>=x11-drivers/ati-drivers-8.8.25-r1 ) )"
28
28
29
S="${WORKDIR}"
29
S=${WORKDIR}
30
30
31
GAMES_CHECK_LICENSE="yes"
31
GAMES_CHECK_LICENSE="yes"
32
dir="${GAMES_PREFIX_OPT}/${PN}"
32
dir=${GAMES_PREFIX_OPT}/${PN}
33
Ddir="${D}/${dir}"
34
33
35
src_unpack() {
34
src_unpack() {
36
	unpack ${A}
35
	unpack ${A}
37
	unpack_makeself postal2mpdemo-lnx-${PV}.run
36
	unpack_makeself postal2mpdemo-lnx-${PV}.run && rm $_
38
	rm postal2mpdemo-lnx-${PV}.run
37
	unpack ./postal2mpdemo.tar && rm $_
39
	dodir ${dir}
38
	unpack ./linux-specific.tar && rm $_
40
	tar -xf postal2mpdemo.tar -C ${Ddir}/ || die "failed unpacking postal2mpdemo.tar"
39
	rm -r bin setup* System/*.log
41
	tar -xf linux-specific.tar -C ${Ddir}/ || die "failed unpacking linux-specific.tar"
42
}
40
}
43
41
44
src_install() {
42
src_install() {
45
	insinto ${dir}
43
	insinto "${dir}"
46
	doins README.linux postal2mpdemo.xpm postal2mpdemo_eula.txt
44
	doins -r * || die "doins failed"
47
45
48
	exeinto ${dir}
46
	games_make_wrapper ${PN} ./postal2-bin "${dir}"/System
49
	doexe bin/postal2mpdemo || die "doexe failed"
50
	dodir "${GAMES_BINDIR}"
51
	dosym "${dir}/postal2mpdemo" "${GAMES_BINDIR}/postal2mp-demo"
52
47
53
	newicon postal2mpdemo.xpm ${PN}.xpm
48
	newicon postal2mpdemo.xpm ${PN}.xpm
54
	make_desktop_entry ${PN} "Postal 2: Share the Pain (Demo)" ${PN}.xpm
49
	make_desktop_entry ${PN} "Postal 2: Share the Pain (Demo)" ${PN}.xpm
55
50
51
	fperms 750 "${dir}"/System/{postal2,ucc}-bin
56
	prepgamesdirs
52
	prepgamesdirs
57
}
53
}

Return to bug 140046