blob: 51e5999ee9329cc784158cfc6ce15ff6443d6bcf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-arcade/cdogs-sdl/cdogs-sdl-0.3.ebuild,v 1.2 2007/08/28 16:58:15 mr_bones_ Exp $
inherit eutils games
CDOGS_DATA="cdogs-data-2006-08-16"
DESCRIPTION="A port of the old DOS arcade game C-Dogs"
HOMEPAGE="http://lumaki.com/code/cdogs"
SRC_URI="http://icculus.org/${PN}/files/src/${P}.tar.bz2
http://icculus.org/${PN}/files/data/${CDOGS_DATA}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="media-libs/sdl-mixer"
S=${WORKDIR}/${P}/src
src_unpack() {
unpack ${A}
mv ${CDOGS_DATA} ${P}/data || die "Failed moving data around"
cd "${S}"
sed -i \
-e "/^CF_OPT/d" \
Makefile \
|| die "Failed patching Makefile"
}
src_compile() {
emake I_AM_CONFIGURED=yes \
SYSTEM="\"linux\"" \
STRIP=true \
DATADIR="${GAMES_DATADIR}/${PN}" \
cdogs || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" \
BINDIR="${GAMES_BINDIR}" \
DATADIR="${GAMES_DATADIR}/${PN}" \
install || die "emake install failed"
newicon ../data/cdogs_icon.png ${PN}.png
dodoc ../doc/{README,AUTHORS,ChangeLog,README_DATA,TODO,original_readme.txt}
make_desktop_entry "cdogs -fullscreen" ${PN}
prepgamesdirs
}
|