Gentoo Archives: gentoo-commits

From: "Tristan Heaven (nyhm)" <nyhm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-puzzle/mirrormagic: mirrormagic-2.0.2-r1.ebuild ChangeLog
Date: Sat, 03 Apr 2010 18:03:48
Message-Id: E1Ny7hB-0006JX-FF@stork.gentoo.org
1 nyhm 10/04/03 18:03:45
2
3 Modified: ChangeLog
4 Added: mirrormagic-2.0.2-r1.ebuild
5 Log:
6 Patch from Debian to fix crash on amd64, bug #196500; install menu entry
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.13 games-puzzle/mirrormagic/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-puzzle/mirrormagic/ChangeLog?rev=1.13&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-puzzle/mirrormagic/ChangeLog?rev=1.13&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-puzzle/mirrormagic/ChangeLog?r1=1.12&r2=1.13
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/games-puzzle/mirrormagic/ChangeLog,v
19 retrieving revision 1.12
20 retrieving revision 1.13
21 diff -u -r1.12 -r1.13
22 --- ChangeLog 5 Dec 2008 17:32:44 -0000 1.12
23 +++ ChangeLog 3 Apr 2010 18:03:45 -0000 1.13
24 @@ -1,6 +1,13 @@
25 # ChangeLog for games-puzzle/mirrormagic
26 -# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/games-puzzle/mirrormagic/ChangeLog,v 1.12 2008/12/05 17:32:44 nyhm Exp $
28 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/games-puzzle/mirrormagic/ChangeLog,v 1.13 2010/04/03 18:03:45 nyhm Exp $
30 +
31 +*mirrormagic-2.0.2-r1 (03 Apr 2010)
32 +
33 + 03 Apr 2010; Tristan Heaven <nyhm@g.o>
34 + +mirrormagic-2.0.2-r1.ebuild, +files/mirrormagic-2.0.2-64bit.patch,
35 + +files/mirrormagic.xpm:
36 + Patch from Debian to fix crash on amd64, bug #196500; install menu entry
37
38 05 Dec 2008; Tristan Heaven <nyhm@g.o> mirrormagic-2.0.2.ebuild:
39 Respect CC and LDFLAGS, bug #244100
40
41
42
43 1.1 games-puzzle/mirrormagic/mirrormagic-2.0.2-r1.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-puzzle/mirrormagic/mirrormagic-2.0.2-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-puzzle/mirrormagic/mirrormagic-2.0.2-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: mirrormagic-2.0.2-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2010 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/games-puzzle/mirrormagic/mirrormagic-2.0.2-r1.ebuild,v 1.1 2010/04/03 18:03:45 nyhm Exp $
53
54 EAPI=2
55 inherit eutils toolchain-funcs games
56
57 DESCRIPTION="a game like Deflektor (C 64) or Mindbender (Amiga)"
58 HOMEPAGE="http://www.artsoft.org/mirrormagic/"
59 SRC_URI="http://www.artsoft.org/RELEASES/unix/${PN}/${P}.tar.gz"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~amd64 ~ppc ~x86"
64 IUSE="sdl"
65
66 RDEPEND="!sdl? ( x11-libs/libX11 )
67 sdl? (
68 media-libs/libsdl[video]
69 media-libs/sdl-mixer
70 media-libs/sdl-image
71 )"
72 DEPEND="${RDEPEND}
73 !sdl? ( x11-libs/libXt )"
74
75 src_prepare() {
76 epatch \
77 "${FILESDIR}"/${P}-gcc41.patch \
78 "${FILESDIR}"/${P}-64bit.patch
79 rm -f ${PN}
80 }
81
82 src_compile() {
83 emake \
84 -C src \
85 CC="$(tc-getCC)" \
86 AR="$(tc-getAR)" \
87 RANLIB="$(tc-getRANLIB)" \
88 OPTIONS="${CFLAGS}" \
89 EXTRA_LDFLAGS="${LDFLAGS}" \
90 RO_GAME_DIR="${GAMES_DATADIR}"/${PN} \
91 RW_GAME_DIR="${GAMES_STATEDIR}"/${PN} \
92 TARGET=$(use sdl && echo sdl || echo x11) \
93 || die "emake failed"
94 }
95
96 src_install() {
97 dogamesbin ${PN} || die "dogamesbin failed"
98 insinto "${GAMES_DATADIR}"/${PN}
99 doins -r graphics levels music sounds || die "doins failed"
100 doicon "${FILESDIR}"/${PN}.xpm
101 make_desktop_entry ${PN} "Mirror Magic II"
102 dodoc CHANGES CREDITS README TODO
103 prepgamesdirs
104 }