From: | "Tristan Heaven (nyhm)" <nyhm@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in games-arcade/amphetamine: amphetamine-0.8.10.ebuild |
Date: | Fri, 02 Nov 2007 21:57:23 |
Message-Id: | E1Io4Vu-0001oT-Sg@stork.gentoo.org |
1 | nyhm 07/11/02 21:57:14 |
2 | |
3 | Modified: amphetamine-0.8.10.ebuild |
4 | Log: |
5 | patching goes in src_unpack |
6 | (Portage version: 2.1.3.16) |
7 | |
8 | Revision Changes Path |
9 | 1.5 games-arcade/amphetamine/amphetamine-0.8.10.ebuild |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/amphetamine/amphetamine-0.8.10.ebuild?rev=1.5&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/amphetamine/amphetamine-0.8.10.ebuild?rev=1.5&content-type=text/plain |
13 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/amphetamine/amphetamine-0.8.10.ebuild?r1=1.4&r2=1.5 |
14 | |
15 | Index: amphetamine-0.8.10.ebuild |
16 | =================================================================== |
17 | RCS file: /var/cvsroot/gentoo-x86/games-arcade/amphetamine/amphetamine-0.8.10.ebuild,v |
18 | retrieving revision 1.4 |
19 | retrieving revision 1.5 |
20 | diff -u -r1.4 -r1.5 |
21 | --- amphetamine-0.8.10.ebuild 2 Nov 2007 21:23:52 -0000 1.4 |
22 | +++ amphetamine-0.8.10.ebuild 2 Nov 2007 21:57:14 -0000 1.5 |
23 | @@ -1,10 +1,10 @@ |
24 | # Copyright 1999-2007 Gentoo Foundation |
25 | # Distributed under the terms of the GNU General Public License v2 |
26 | -# $Header: /var/cvsroot/gentoo-x86/games-arcade/amphetamine/amphetamine-0.8.10.ebuild,v 1.4 2007/11/02 21:23:52 drac Exp $ |
27 | +# $Header: /var/cvsroot/gentoo-x86/games-arcade/amphetamine/amphetamine-0.8.10.ebuild,v 1.5 2007/11/02 21:57:14 nyhm Exp $ |
28 | |
29 | -inherit eutils games toolchain-funcs |
30 | +inherit eutils toolchain-funcs games |
31 | |
32 | -DESCRIPTION="a cool Jump'n Run game offering some unique visual effects." |
33 | +DESCRIPTION="a cool Jump'n Run game offering some unique visual effects" |
34 | HOMEPAGE="http://n.ethz.ch/student/loehrerl/amph/amph.html" |
35 | SRC_URI="http://n.ethz.ch/student/loehrerl/amph/files/${P}.tar.bz2 |
36 | http://n.ethz.ch/student/loehrerl/amph/files/${PN}-data-0.8.6.tar.bz2" |
37 | @@ -17,22 +17,28 @@ |
38 | DEPEND="media-libs/libsdl |
39 | x11-libs/libXpm" |
40 | |
41 | -src_compile() { |
42 | - epatch "${FILESDIR}"/${P}-gentoo.patch |
43 | - epatch "${FILESDIR}"/020_assumed_sizeof_long.diff |
44 | - sed -i -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" Makefile |
45 | - emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" || die "emake failed." |
46 | +src_unpack() { |
47 | + unpack ${A} |
48 | + cd "${S}" |
49 | + epatch "${FILESDIR}"/${P}-64bit.patch |
50 | + sed -i \ |
51 | + -e "/^INSTALL_DIR /s:=.*:= ${GAMES_DATADIR}/${PN}:" \ |
52 | + -e "/^CFLAGS /s:$: ${CFLAGS}:" \ |
53 | + -e "/^CXXFLAGS /s:-O9.*:${CXXFLAGS}:" \ |
54 | + -e "/^DEPENDFLAGS /s:-g ::" \ |
55 | + -e "/^LINKER /s:$: ${LDFLAGS}:" \ |
56 | + -e "s:gcc:$(tc-getCC):" \ |
57 | + -e "s:g++:$(tc-getCXX):" \ |
58 | + Makefile \ |
59 | + || die "sed failed" |
60 | } |
61 | |
62 | src_install() { |
63 | - newgamesbin amph ${PN} |
64 | - |
65 | + newgamesbin amph ${PN} || die "newgamesbin failed" |
66 | insinto "${GAMES_DATADIR}"/${PN} |
67 | - doins -r ../amph/* || die "doins failed." |
68 | - |
69 | - dodoc BUGS ChangeLog NEWS README || die "dodoc failed." |
70 | + doins -r ../amph/* || die "doins failed" |
71 | newicon amph.xpm ${PN}.xpm |
72 | make_desktop_entry ${PN} Amphetamine ${PN} |
73 | - |
74 | + dodoc BUGS ChangeLog NEWS README |
75 | prepgamesdirs |
76 | } |
77 | |
78 | |
79 | |
80 | -- |
81 | gentoo-commits@g.o mailing list |