1 |
commit: 6e5b768a29e2a8a7ec57a3b5e1ce9e11429c4552 |
2 |
Author: Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 3 04:12:44 2016 +0000 |
4 |
Commit: Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 3 06:14:57 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e5b768a |
7 |
|
8 |
games-fps/red-blue-quake2: EAPI=5; tidy |
9 |
|
10 |
Package-Manager: portage-2.2.24 |
11 |
|
12 |
.../red-blue-quake2/red-blue-quake2-0.1.ebuild | 26 +++++++++++----------- |
13 |
1 file changed, 13 insertions(+), 13 deletions(-) |
14 |
|
15 |
diff --git a/games-fps/red-blue-quake2/red-blue-quake2-0.1.ebuild b/games-fps/red-blue-quake2/red-blue-quake2-0.1.ebuild |
16 |
index 521b0ea..459116b 100644 |
17 |
--- a/games-fps/red-blue-quake2/red-blue-quake2-0.1.ebuild |
18 |
+++ b/games-fps/red-blue-quake2/red-blue-quake2-0.1.ebuild |
19 |
@@ -1,8 +1,8 @@ |
20 |
# Copyright 1999-2010 Gentoo Foundation |
21 |
# Distributed under the terms of the GNU General Public License v2 |
22 |
# $Id$ |
23 |
-EAPI=2 |
24 |
|
25 |
+EAPI=5 |
26 |
inherit eutils games |
27 |
|
28 |
DESCRIPTION="red-blue Quake II ! play quake2 w/3d glasses !" |
29 |
@@ -25,11 +25,13 @@ src_prepare() { |
30 |
epatch "${FILESDIR}"/${PV}-gentoo.patch \ |
31 |
"${FILESDIR}/${P}"-gcc41.patch \ |
32 |
"${FILESDIR}/${P}"-ldflags.patch |
33 |
- sed -i "s:GENTOO_DIR:$(games_get_libdir)/${PN}:" sys_linux.c \ |
34 |
- || die "sed failed" |
35 |
- sed -i "s:/etc/quake2.conf:${GAMES_SYSCONFDIR}/${PN}.conf:" \ |
36 |
- sys_linux.c vid_so.c \ |
37 |
- || die "sed failed" |
38 |
+ sed -i \ |
39 |
+ -e "s:GENTOO_DIR:$(games_get_libdir)/${PN}:" \ |
40 |
+ sys_linux.c || die |
41 |
+ sed -i \ |
42 |
+ -e "s:/etc/quake2.conf:${GAMES_SYSCONFDIR}/${PN}.conf:" \ |
43 |
+ sys_linux.c vid_so.c || die |
44 |
+ echo "$(games_get_libdir)"/${PN} > "${T}"/${PN}.conf || die |
45 |
} |
46 |
|
47 |
src_compile() { |
48 |
@@ -37,22 +39,20 @@ src_compile() { |
49 |
emake \ |
50 |
GENTOO_CFLAGS="${CFLAGS}" \ |
51 |
GENTOO_DATADIR="${GAMES_DATADIR}"/quake2/baseq2/ \ |
52 |
- build_release \ |
53 |
- || die "emake failed" |
54 |
+ build_release |
55 |
} |
56 |
|
57 |
src_install() { |
58 |
cd release* |
59 |
|
60 |
exeinto "$(games_get_libdir)"/${PN} |
61 |
- doexe gamei386.so ref_softx.so || die "doexe failed" |
62 |
+ doexe gamei386.so ref_softx.so |
63 |
exeinto "$(games_get_libdir)"/${PN}/ctf |
64 |
- doexe ctf/gamei386.so || die "doexe failed" |
65 |
- newgamesbin quake2 red-blue-quake2 || die "newgamesbin failed" |
66 |
+ doexe ctf/gamei386.so |
67 |
+ newgamesbin quake2 red-blue-quake2 |
68 |
|
69 |
insinto "${GAMES_SYSCONFDIR}" |
70 |
- echo "$(games_get_libdir)"/${PN} > ${PN}.conf |
71 |
- doins ${PN}.conf || die "doins failed" |
72 |
+ doins "${T}"/${PN}.conf |
73 |
|
74 |
prepgamesdirs |
75 |
} |