Lines 1-9
Link Here
|
1 |
# Copyright 1999-2015 Gentoo Foundation |
1 |
# Copyright 1999-2016 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Id$ |
3 |
# $Id$ |
4 |
|
4 |
|
5 |
EAPI=5 |
5 |
EAPI=6 |
6 |
inherit eutils versionator qt4-r2 gnome2-utils toolchain-funcs games |
6 |
inherit eutils versionator gnome2-utils qmake-utils toolchain-funcs |
7 |
|
7 |
|
8 |
DESCRIPTION="an Atari Jaguar emulator" |
8 |
DESCRIPTION="an Atari Jaguar emulator" |
9 |
HOMEPAGE="http://www.icculus.org/virtualjaguar/" |
9 |
HOMEPAGE="http://www.icculus.org/virtualjaguar/" |
Lines 11-26
Link Here
|
11 |
|
11 |
|
12 |
LICENSE="GPL-3" |
12 |
LICENSE="GPL-3" |
13 |
SLOT="0" |
13 |
SLOT="0" |
14 |
KEYWORDS="amd64 ~ppc x86" |
14 |
KEYWORDS="~amd64 ~ppc ~x86" |
15 |
IUSE="" |
15 |
IUSE="" |
16 |
|
16 |
|
17 |
RDEPEND="media-libs/libsdl[joystick,opengl,sound,video] |
17 |
RDEPEND=" |
18 |
sys-libs/zlib |
18 |
dev-libs/libcdio |
19 |
virtual/opengl |
|
|
20 |
dev-qt/qtcore:4 |
19 |
dev-qt/qtcore:4 |
21 |
dev-qt/qtgui:4 |
20 |
dev-qt/qtgui:4 |
22 |
dev-qt/qtopengl:4[-egl] |
21 |
dev-qt/qtopengl:4[-egl] |
23 |
dev-libs/libcdio" |
22 |
media-libs/libsdl[joystick,opengl,sound,video] |
|
|
23 |
sys-libs/zlib |
24 |
virtual/opengl" |
24 |
DEPEND="${RDEPEND} |
25 |
DEPEND="${RDEPEND} |
25 |
>=sys-devel/gcc-4.4" |
26 |
>=sys-devel/gcc-4.4" |
26 |
|
27 |
|
Lines 29-40
Link Here
|
29 |
pkg_pretend() { |
30 |
pkg_pretend() { |
30 |
local ver=4.4 |
31 |
local ver=4.4 |
31 |
|
32 |
|
32 |
if ! version_is_at_least ${ver} $(gcc-version); then |
33 |
if tc-is-gcc && ! version_is_at_least ${ver} $(gcc-version); then |
33 |
die "${PN} needs at least gcc ${ver} selected to compile." |
34 |
die "${PN} needs at least gcc ${ver} selected to compile." |
34 |
fi |
35 |
fi |
35 |
} |
36 |
} |
36 |
|
37 |
|
37 |
src_prepare() { |
38 |
src_prepare() { |
|
|
39 |
default |
38 |
sed -i \ |
40 |
sed -i \ |
39 |
-e '/^Categories/s/$/;/' \ |
41 |
-e '/^Categories/s/$/;/' \ |
40 |
virtualjaguar.desktop || die |
42 |
virtualjaguar.desktop || die |
Lines 50-70
Link Here
|
50 |
} |
52 |
} |
51 |
|
53 |
|
52 |
src_install() { |
54 |
src_install() { |
53 |
dogamesbin ${PN} |
55 |
dobin ${PN} |
54 |
dodoc README docs/{TODO,WHATSNEW} |
56 |
dodoc README docs/{TODO,WHATSNEW} |
55 |
doman docs/virtualjaguar.1 |
57 |
doman docs/virtualjaguar.1 |
56 |
domenu virtualjaguar.desktop |
58 |
domenu virtualjaguar.desktop |
57 |
newicon -s 128 res/vj-icon.png ${PN}.png |
59 |
newicon -s 128 res/vj-icon.png ${PN}.png |
58 |
prepgamesdirs |
|
|
59 |
} |
60 |
} |
60 |
|
61 |
|
61 |
pkg_preinst() { |
62 |
pkg_preinst() { |
62 |
games_pkg_preinst |
|
|
63 |
gnome2_icon_savelist |
63 |
gnome2_icon_savelist |
64 |
} |
64 |
} |
65 |
|
65 |
|
66 |
pkg_postinst() { |
66 |
pkg_postinst() { |
67 |
games_pkg_postinst |
|
|
68 |
elog "The ${PN} ROM path is no-longer hardcoded, " |
67 |
elog "The ${PN} ROM path is no-longer hardcoded, " |
69 |
elog "set it from within, the ${PN} GUI." |
68 |
elog "set it from within, the ${PN} GUI." |
70 |
elog |
69 |
elog |