Gentoo Archives: gentoo-commits

From: "Alfredo Tupone (tupone)" <tupone@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-arcade/nibbles: ChangeLog nibbles-0.0.4.ebuild
Date: Mon, 02 Feb 2009 11:41:37
Message-Id: E1LTxBG-0003nX-JV@stork.gentoo.org
1 tupone 09/02/02 11:41:34
2
3 Modified: ChangeLog nibbles-0.0.4.ebuild
4 Log:
5 Fix --as-needed bug #247304
6 (Portage version: 2.1.6.4/cvs/Linux 2.6.27-gentoo-r8 x86_64)
7
8 Revision Changes Path
9 1.13 games-arcade/nibbles/ChangeLog
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/nibbles/ChangeLog?rev=1.13&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/nibbles/ChangeLog?rev=1.13&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/nibbles/ChangeLog?r1=1.12&r2=1.13
14
15 Index: ChangeLog
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/games-arcade/nibbles/ChangeLog,v
18 retrieving revision 1.12
19 retrieving revision 1.13
20 diff -u -r1.12 -r1.13
21 --- ChangeLog 20 Mar 2008 00:40:14 -0000 1.12
22 +++ ChangeLog 2 Feb 2009 11:41:34 -0000 1.13
23 @@ -1,6 +1,10 @@
24 # ChangeLog for games-arcade/nibbles
25 -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
26 -# $Header: /var/cvsroot/gentoo-x86/games-arcade/nibbles/ChangeLog,v 1.12 2008/03/20 00:40:14 nyhm Exp $
27 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
28 +# $Header: /var/cvsroot/gentoo-x86/games-arcade/nibbles/ChangeLog,v 1.13 2009/02/02 11:41:34 tupone Exp $
29 +
30 + 02 Feb 2009; Alfredo Tupone <tupone@g.o>
31 + +files/nibbles-0.0.4-as-needed.patch, nibbles-0.0.4.ebuild:
32 + Fix --as-needed bug #247304 by flameeyes@g.o
33
34 20 Mar 2008; Tristan Heaven <nyhm@g.o> nibbles-0.0.4.ebuild:
35 Add ~amd64 keyword
36
37
38
39 1.12 games-arcade/nibbles/nibbles-0.0.4.ebuild
40
41 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/nibbles/nibbles-0.0.4.ebuild?rev=1.12&view=markup
42 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/nibbles/nibbles-0.0.4.ebuild?rev=1.12&content-type=text/plain
43 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/nibbles/nibbles-0.0.4.ebuild?r1=1.11&r2=1.12
44
45 Index: nibbles-0.0.4.ebuild
46 ===================================================================
47 RCS file: /var/cvsroot/gentoo-x86/games-arcade/nibbles/nibbles-0.0.4.ebuild,v
48 retrieving revision 1.11
49 retrieving revision 1.12
50 diff -u -r1.11 -r1.12
51 --- nibbles-0.0.4.ebuild 20 Mar 2008 00:40:14 -0000 1.11
52 +++ nibbles-0.0.4.ebuild 2 Feb 2009 11:41:34 -0000 1.12
53 @@ -1,8 +1,9 @@
54 -# Copyright 1999-2008 Gentoo Foundation
55 +# Copyright 1999-2009 Gentoo Foundation
56 # Distributed under the terms of the GNU General Public License v2
57 -# $Header: /var/cvsroot/gentoo-x86/games-arcade/nibbles/nibbles-0.0.4.ebuild,v 1.11 2008/03/20 00:40:14 nyhm Exp $
58 +# $Header: /var/cvsroot/gentoo-x86/games-arcade/nibbles/nibbles-0.0.4.ebuild,v 1.12 2009/02/02 11:41:34 tupone Exp $
59
60 -inherit games
61 +EAPI=2
62 +inherit eutils games
63
64 MY_P=${PN}-v${PV}
65 DESCRIPTION="An ncurses-based Nibbles clone"
66 @@ -18,10 +19,7 @@
67
68 S="${WORKDIR}/${MY_P}"
69
70 -src_unpack() {
71 - unpack ${A}
72 - cd "${S}"
73 -
74 +src_prepare() {
75 sed -i \
76 -e "s#/usr/local/games/nibbles.levels#${GAMES_DATADIR}/${PN}#" \
77 nibbles.h \
78 @@ -31,11 +29,7 @@
79 -e "s#/var/lib/games/nibbles.score#${GAMES_STATEDIR}/nibbles.scores#" \
80 scoring.h \
81 || die "sed failed"
82 - sed -i \
83 - -e '/c.o:/d' \
84 - -e '/CC.*-c/d' \
85 - -e '/^CC/d' Makefile \
86 - || die "sed failed"
87 + epatch "${FILESDIR}"/${P}-as-needed.patch
88 }
89
90 src_install() {