/[gentoo-x86]/games-arcade/defendguin/defendguin-0.0.12.ebuild
Gentoo

Diff of /games-arcade/defendguin/defendguin-0.0.12.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.5 Revision 1.6
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/games-arcade/defendguin/defendguin-0.0.12.ebuild,v 1.5 2010/08/12 04:32:45 josejx Exp $ 3# $Header: /var/cvsroot/gentoo-x86/games-arcade/defendguin/defendguin-0.0.12.ebuild,v 1.6 2012/09/05 07:13:37 mr_bones_ Exp $
4 4
5EAPI=2 5EAPI=2
6inherit eutils games 6inherit eutils games
7 7
8DESCRIPTION="A clone of the arcade game Defender, but with a Linux theme" 8DESCRIPTION="A clone of the arcade game Defender, but with a Linux theme"
12LICENSE="GPL-2" 12LICENSE="GPL-2"
13SLOT="0" 13SLOT="0"
14KEYWORDS="amd64 ppc ~sparc x86 ~x86-fbsd" 14KEYWORDS="amd64 ppc ~sparc x86 ~x86-fbsd"
15IUSE="" 15IUSE=""
16 16
17DEPEND="media-libs/sdl-mixer[mikmod] 17DEPEND="media-libs/sdl-mixer[mod]
18 media-libs/libsdl[video]" 18 media-libs/libsdl[video]"
19 19
20src_prepare() { 20src_prepare() {
21 sed -i \ 21 sed -i \
22 -e "s:\$(DATA_PREFIX):${GAMES_DATADIR}/${PN}/:" \ 22 -e "s:\$(DATA_PREFIX):${GAMES_DATADIR}/${PN}/:" \
23 -e '/^CFLAGS=.*-O2/d' \ 23 -e '/^CFLAGS=.*-O2/d' \
24 -e '/^CFLAGS=/s:=:+= $(LDFLAGS) :' \ 24 -e '/^CFLAGS=/s:=:+= $(LDFLAGS) :' \
25 Makefile \ 25 Makefile \
26 || die "sed failed" 26 || die
27 rm -f data/images/*.sh 27 rm -f data/images/*.sh
28} 28}
29 29
30src_install() { 30src_install() {
31 dogamesbin ${PN} || die "dogamesbin failed" 31 dogamesbin ${PN} || die
32 insinto "${GAMES_DATADIR}"/${PN} 32 insinto "${GAMES_DATADIR}"/${PN}
33 doins -r ./data/* || die "doins failed" 33 doins -r ./data/* || die
34 newicon data/images/ufo/ufo0.bmp ${PN}.bmp 34 newicon data/images/ufo/ufo0.bmp ${PN}.bmp
35 make_desktop_entry ${PN} Defendguin /usr/share/pixmaps/${PN}.bmp 35 make_desktop_entry ${PN} Defendguin /usr/share/pixmaps/${PN}.bmp
36 doman src/${PN}.6 36 doman src/${PN}.6
37 dodoc docs/{AUTHORS,CHANGES,README,TODO}.txt 37 dodoc docs/{AUTHORS,CHANGES,README,TODO}.txt
38 prepgamesdirs 38 prepgamesdirs

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20