Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-action/battalion/
Date: Sun, 19 Nov 2017 15:51:38
Message-Id: 1511106681.7ea0d7d4006465528f1945491be783a022beddd6.soap@gentoo
1 commit: 7ea0d7d4006465528f1945491be783a022beddd6
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 19 15:50:33 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 19 15:51:21 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ea0d7d4
7
8 games-action/battalion: Remove old
9
10 Package-Manager: Portage-2.3.14, Repoman-2.3.6
11
12 games-action/battalion/battalion-1.4b.ebuild | 69 ----------------------------
13 1 file changed, 69 deletions(-)
14
15 diff --git a/games-action/battalion/battalion-1.4b.ebuild b/games-action/battalion/battalion-1.4b.ebuild
16 deleted file mode 100644
17 index 0ded9a00d39..00000000000
18 --- a/games-action/battalion/battalion-1.4b.ebuild
19 +++ /dev/null
20 @@ -1,69 +0,0 @@
21 -# Copyright 1999-2015 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=5
25 -inherit eutils games
26 -
27 -DESCRIPTION="Be a rampaging monster and destroy the city"
28 -HOMEPAGE="http://evlweb.eecs.uic.edu/aej/AndyBattalion.html"
29 -SRC_URI="http://evlweb.eecs.uic.edu/aej/BATTALION/${PN}${PV}.tar.bz2"
30 -
31 -LICENSE="battalion HPND"
32 -SLOT="0"
33 -KEYWORDS="~x86"
34 -IUSE=""
35 -
36 -DEPEND="virtual/opengl
37 - virtual/glu
38 - x11-libs/libX11"
39 -RDEPEND=${DEPEND}
40 -
41 -S=${WORKDIR}/${PN}${PV}
42 -
43 -src_prepare() {
44 - epatch "${FILESDIR}"/${P}-warning.patch
45 - # Modify data paths
46 - sed -i \
47 - -e "s:SOUNDS/:${GAMES_DATADIR}/${PN}/SOUNDS/:" \
48 - -e "s:MUSIC/:${GAMES_DATADIR}/${PN}/MUSIC/:" \
49 - audio.c || die
50 - sed -i \
51 - -e "s:DATA/:${GAMES_DATADIR}/${PN}/DATA/:" \
52 - -e "s:/usr/tmp:${GAMES_STATEDIR}:" \
53 - battalion.c || die
54 - sed -i \
55 - -e "s:TEXTURES/:${GAMES_DATADIR}/${PN}/TEXTURES/:" \
56 - graphics.c || die
57 -
58 - # Modify Makefile and add CFLAGS
59 - sed -i \
60 - -e "s:-O2:${CFLAGS}:" \
61 - -e "/^CC/d" \
62 - Makefile || die
63 - # Only .raw sound files are used on Linux. The .au files are not needed.
64 - rm -f {SOUNDS,MUSIC}/*.au
65 -}
66 -
67 -src_compile() {
68 - emake LIBFLAGS="${LDFLAGS}"
69 -}
70 -
71 -src_install() {
72 - dogamesbin battalion
73 - insinto "${GAMES_DATADIR}"/${PN}
74 - doins -r DATA MUSIC SOUNDS TEXTURES
75 - dodoc README
76 -
77 - dodir "${GAMES_STATEDIR}"
78 - touch "${D}${GAMES_STATEDIR}"/battalion_hiscore
79 - fperms 660 "${GAMES_STATEDIR}"/battalion_hiscore
80 -
81 - prepgamesdirs
82 -}
83 -
84 -pkg_postinst() {
85 - games_pkg_postinst
86 - elog "Sound and music are not enabled by default."
87 - elog "Use the S and M keys to enable them in-game, or start the game with"
88 - elog "the -s and -m switches: battalion -s -m"
89 -}