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-arcade/cdogs-sdl: ChangeLog cdogs-sdl-0.4.ebuild cdogs-sdl-0.3.ebuild
Date: Thu, 26 Feb 2009 21:47:28
Message-Id: E1Lco4f-00062n-MC@stork.gentoo.org
1 mr_bones_ 09/02/26 21:47:21
2
3 Modified: ChangeLog
4 Added: cdogs-sdl-0.4.ebuild
5 Removed: cdogs-sdl-0.3.ebuild
6 Log:
7 version bump; clean old; fixes bug #260183
8 (Portage version: 2.1.6.7/cvs/Linux i686)
9
10 Revision Changes Path
11 1.3 games-arcade/cdogs-sdl/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/cdogs-sdl/ChangeLog?rev=1.3&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/cdogs-sdl/ChangeLog?rev=1.3&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/cdogs-sdl/ChangeLog?r1=1.2&r2=1.3
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/games-arcade/cdogs-sdl/ChangeLog,v
20 retrieving revision 1.2
21 retrieving revision 1.3
22 diff -u -r1.2 -r1.3
23 --- ChangeLog 28 Aug 2007 16:58:15 -0000 1.2
24 +++ ChangeLog 26 Feb 2009 21:47:21 -0000 1.3
25 @@ -1,6 +1,12 @@
26 # ChangeLog for games-arcade/cdogs-sdl
27 -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/games-arcade/cdogs-sdl/ChangeLog,v 1.2 2007/08/28 16:58:15 mr_bones_ Exp $
29 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/games-arcade/cdogs-sdl/ChangeLog,v 1.3 2009/02/26 21:47:21 mr_bones_ Exp $
31 +
32 +*cdogs-sdl-0.4 (26 Feb 2009)
33 +
34 + 26 Feb 2009; Michael Sterrett <mr_bones_@g.o>
35 + -cdogs-sdl-0.3.ebuild, +cdogs-sdl-0.4.ebuild:
36 + version bump; clean old; fixes bug #260183
37
38 28 Aug 2007; Michael Sterrett <mr_bones_@g.o> cdogs-sdl-0.3.ebuild:
39 x86 and tidy ebuild
40
41
42
43 1.1 games-arcade/cdogs-sdl/cdogs-sdl-0.4.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/cdogs-sdl/cdogs-sdl-0.4.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/cdogs-sdl/cdogs-sdl-0.4.ebuild?rev=1.1&content-type=text/plain
47
48 Index: cdogs-sdl-0.4.ebuild
49 ===================================================================
50 # Copyright 1999-2009 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/games-arcade/cdogs-sdl/cdogs-sdl-0.4.ebuild,v 1.1 2009/02/26 21:47:21 mr_bones_ Exp $
53
54 EAPI=2
55 inherit eutils games
56
57 CDOGS_DATA="cdogs-data-2007-07-06"
58 DESCRIPTION="A port of the old DOS arcade game C-Dogs"
59 HOMEPAGE="http://lumaki.com/code/cdogs"
60 SRC_URI="http://icculus.org/cdogs-sdl/files/src/${P}.tar.bz2
61 http://icculus.org/cdogs-sdl/files/data/${CDOGS_DATA}.tar.bz2"
62
63 LICENSE="GPL-2"
64 SLOT="0"
65 KEYWORDS="~amd64 ~x86"
66 IUSE=""
67
68 DEPEND="media-libs/libsdl
69 media-libs/sdl-mixer"
70
71 S=${WORKDIR}/${P}/src
72
73 src_unpack() {
74 unpack ${A}
75 mv ${CDOGS_DATA} ${P}/data || die "Failed moving data around"
76 }
77
78 src_prepare() {
79 sed -i \
80 -e "/^CF_OPT/d" \
81 -e "/^CC/d" \
82 Makefile \
83 || die "sed failed"
84 sed -i \
85 -e "/\bopen(/s/)/, 0666)/" \
86 files.c \
87 || die "sed failed"
88 }
89
90 src_compile() {
91 emake I_AM_CONFIGURED=yes \
92 SYSTEM="\"linux\"" \
93 STRIP=true \
94 DATADIR="${GAMES_DATADIR}/${PN}" \
95 cdogs || die "emake failed"
96 }
97
98 src_install() {
99 dogamesbin cdogs || die "dogamesbin failed"
100 insinto "${GAMES_DATADIR}/${PN}"
101 doins -r ../data/*
102 newicon ../data/cdogs_icon.png ${PN}.png
103 dodoc ../doc/{README,AUTHORS,ChangeLog,README_DATA,TODO,original_readme.txt}
104 make_desktop_entry "cdogs -fullscreen" C-Dogs
105 prepgamesdirs
106 }