1 |
commit: ea9d025668dbe8ec90b089e6b7459657f0e78d54 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 7 04:40:27 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 7 04:41:17 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea9d0256 |
7 |
|
8 |
games-sports/trigger: update EAPI 6 -> 8, fix joystick dependency |
9 |
|
10 |
Closes: https://bugs.gentoo.org/832817 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
games-sports/trigger/trigger-0.6.1-r1.ebuild | 23 +++++++++++------------ |
14 |
1 file changed, 11 insertions(+), 12 deletions(-) |
15 |
|
16 |
diff --git a/games-sports/trigger/trigger-0.6.1-r1.ebuild b/games-sports/trigger/trigger-0.6.1-r1.ebuild |
17 |
index 71a5f7d7bfd1..cd17773e871f 100644 |
18 |
--- a/games-sports/trigger/trigger-0.6.1-r1.ebuild |
19 |
+++ b/games-sports/trigger/trigger-0.6.1-r1.ebuild |
20 |
@@ -1,7 +1,7 @@ |
21 |
-# Copyright 1999-2021 Gentoo Authors |
22 |
+# Copyright 1999-2022 Gentoo Authors |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
|
25 |
-EAPI=6 |
26 |
+EAPI=8 |
27 |
|
28 |
inherit desktop toolchain-funcs |
29 |
|
30 |
@@ -10,49 +10,48 @@ MY_P=${MY_PN}-${PV} |
31 |
DESCRIPTION="Free OpenGL rally car racing game" |
32 |
HOMEPAGE="http://trigger-rally.sourceforge.net/" |
33 |
SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tar.bz2" |
34 |
+S="${WORKDIR}"/${MY_P} |
35 |
|
36 |
LICENSE="GPL-2" |
37 |
SLOT="0" |
38 |
KEYWORDS="~amd64 ~x86" |
39 |
-IUSE="" |
40 |
|
41 |
RDEPEND=" |
42 |
dev-games/physfs |
43 |
media-libs/freealut |
44 |
- media-libs/libsdl |
45 |
+ media-libs/libsdl[joystick] |
46 |
media-libs/openal |
47 |
media-libs/sdl-image[jpeg,png] |
48 |
media-libs/sdl-mixer |
49 |
virtual/glu |
50 |
virtual/opengl" |
51 |
-DEPEND="${RDEPEND} |
52 |
- dev-util/ftjam" |
53 |
- |
54 |
-S=${WORKDIR}/${MY_P} |
55 |
+DEPEND="${RDEPEND}" |
56 |
+BDEPEND="dev-util/ftjam" |
57 |
|
58 |
PATCHES=( "${FILESDIR}"/${P}-gcc6.patch ) |
59 |
|
60 |
-pkg_setup() { |
61 |
+src_configure() { |
62 |
# Otherwise build fails with: |
63 |
# ...skipped trigger for lack of libpengine.a... |
64 |
tc-export AR |
65 |
-} |
66 |
|
67 |
-src_configure() { |
68 |
econf --datadir=/usr/share/games/${PN} |
69 |
} |
70 |
|
71 |
src_compile() { |
72 |
AR="${AR} cru" jam -dx -qa || die |
73 |
- |
74 |
} |
75 |
|
76 |
src_install() { |
77 |
dobin ${PN} |
78 |
+ |
79 |
insinto /usr/share/games/${PN} |
80 |
doins -r data/* |
81 |
+ |
82 |
newicon data/textures/life_helmet.png ${PN}.png |
83 |
+ |
84 |
make_desktop_entry ${PN} Trigger |
85 |
+ |
86 |
dodoc doc/*.txt |
87 |
} |