Gentoo Archives: gentoo-commits

From: "Michael Sterrett (mr_bones_)" <mr_bones_@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-action/battalion: battalion-1.4b.ebuild ChangeLog
Date: Mon, 30 Mar 2015 22:36:18
Message-Id: 20150330223607.F2B5714E03@oystercatcher.gentoo.org
1 mr_bones_ 15/03/30 22:36:05
2
3 Modified: battalion-1.4b.ebuild ChangeLog
4 Log:
5 EAPI=5
6
7 (Portage version: 2.2.14/cvs/Linux x86_64, unsigned Manifest commit)
8
9 Revision Changes Path
10 1.18 games-action/battalion/battalion-1.4b.ebuild
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-action/battalion/battalion-1.4b.ebuild?rev=1.18&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-action/battalion/battalion-1.4b.ebuild?rev=1.18&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-action/battalion/battalion-1.4b.ebuild?r1=1.17&r2=1.18
15
16 Index: battalion-1.4b.ebuild
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/games-action/battalion/battalion-1.4b.ebuild,v
19 retrieving revision 1.17
20 retrieving revision 1.18
21 diff -u -r1.17 -r1.18
22 --- battalion-1.4b.ebuild 10 Aug 2014 21:21:43 -0000 1.17
23 +++ battalion-1.4b.ebuild 30 Mar 2015 22:36:05 -0000 1.18
24 @@ -1,9 +1,9 @@
25 -# Copyright 1999-2014 Gentoo Foundation
26 +# Copyright 1999-2015 Gentoo Foundation
27 # Distributed under the terms of the GNU General Public License v2
28 -# $Header: /var/cvsroot/gentoo-x86/games-action/battalion/battalion-1.4b.ebuild,v 1.17 2014/08/10 21:21:43 slyfox Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/games-action/battalion/battalion-1.4b.ebuild,v 1.18 2015/03/30 22:36:05 mr_bones_ Exp $
30
31 -EAPI=2
32 -inherit games
33 +EAPI=5
34 +inherit eutils games
35
36 DESCRIPTION="Be a rampaging monster and destroy the city"
37 HOMEPAGE="http://evlweb.eecs.uic.edu/aej/AndyBattalion.html"
38 @@ -15,41 +15,44 @@
39 IUSE=""
40
41 DEPEND="virtual/opengl
42 - virtual/glu"
43 + virtual/glu
44 + x11-libs/libX11"
45 +RDEPEND=${DEPEND}
46
47 S=${WORKDIR}/${PN}${PV}
48
49 src_prepare() {
50 + epatch "${FILESDIR}"/${P}-warning.patch
51 # Modify data paths
52 sed -i \
53 -e "s:SOUNDS/:${GAMES_DATADIR}/${PN}/SOUNDS/:" \
54 -e "s:MUSIC/:${GAMES_DATADIR}/${PN}/MUSIC/:" \
55 - audio.c || die "sed audio.c failed"
56 + audio.c || die
57 sed -i \
58 -e "s:DATA/:${GAMES_DATADIR}/${PN}/DATA/:" \
59 -e "s:/usr/tmp:${GAMES_STATEDIR}:" \
60 - battalion.c || die "sed battalion.c failed"
61 + battalion.c || die
62 sed -i \
63 -e "s:TEXTURES/:${GAMES_DATADIR}/${PN}/TEXTURES/:" \
64 - graphics.c || die "sed graphics.c failed"
65 + graphics.c || die
66
67 # Modify Makefile and add CFLAGS
68 sed -i \
69 -e "s:-O2:${CFLAGS}:" \
70 -e "/^CC/d" \
71 - Makefile || die "sed Makefile failed"
72 + Makefile || die
73 # Only .raw sound files are used on Linux. The .au files are not needed.
74 rm -f {SOUNDS,MUSIC}/*.au
75 }
76
77 src_compile() {
78 - emake LIBFLAGS="${LDFLAGS}" || die "died running emake"
79 + emake LIBFLAGS="${LDFLAGS}"
80 }
81
82 src_install() {
83 - dogamesbin battalion || die "dogamesbin failed"
84 + dogamesbin battalion
85 insinto "${GAMES_DATADIR}"/${PN}
86 - doins -r DATA MUSIC SOUNDS TEXTURES || die "doins failed"
87 + doins -r DATA MUSIC SOUNDS TEXTURES
88 dodoc README
89
90 dodir "${GAMES_STATEDIR}"
91
92
93
94 1.14 games-action/battalion/ChangeLog
95
96 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-action/battalion/ChangeLog?rev=1.14&view=markup
97 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-action/battalion/ChangeLog?rev=1.14&content-type=text/plain
98 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-action/battalion/ChangeLog?r1=1.13&r2=1.14
99
100 Index: ChangeLog
101 ===================================================================
102 RCS file: /var/cvsroot/gentoo-x86/games-action/battalion/ChangeLog,v
103 retrieving revision 1.13
104 retrieving revision 1.14
105 diff -u -r1.13 -r1.14
106 --- ChangeLog 10 Aug 2014 21:21:43 -0000 1.13
107 +++ ChangeLog 30 Mar 2015 22:36:05 -0000 1.14
108 @@ -1,6 +1,10 @@
109 # ChangeLog for games-action/battalion
110 -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
111 -# $Header: /var/cvsroot/gentoo-x86/games-action/battalion/ChangeLog,v 1.13 2014/08/10 21:21:43 slyfox Exp $
112 +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
113 +# $Header: /var/cvsroot/gentoo-x86/games-action/battalion/ChangeLog,v 1.14 2015/03/30 22:36:05 mr_bones_ Exp $
114 +
115 + 30 Mar 2015; Michael Sterrett <mr_bones_@g.o>
116 + +files/battalion-1.4b-warning.patch, battalion-1.4b.ebuild:
117 + EAPI=5
118
119 10 Aug 2014; Sergei Trofimovich <slyfox@g.o> battalion-1.4b.ebuild:
120 QA: drop trailing '.' from DESCRIPTION