blob: 1ff69a114af11b8e6bb2f795bcae83a9a49966d2 (
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-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/fish-fillets/fish-fillets-0.6.0.ebuild,v 1.3 2005/04/18 15:33:37 mr_bones_ Exp $
inherit eutils games
CS_PV="0.6.0"
DATA_PV="0.6.1"
DESCRIPTION="Underwater puzzle game - find a safe way out"
HOMEPAGE="http://fillets.sf.net"
SRC_URI="mirror://sourceforge/fillets/fillets-ng-${PV}.tar.gz
mirror://sourceforge/fillets/fillets-ng-data-${DATA_PV}.tar.gz
nls? ( mirror://sourceforge/fillets/fillets-ng-data-cs-${CS_PV}.tar.gz )"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ppc x86"
IUSE="nls"
DEPEND=">=media-libs/libsdl-1.2
>=media-libs/sdl-mixer-1.2.5
>=media-libs/sdl-image-1.2.2
media-libs/sdl-ttf
>=dev-lang/lua-5"
S=${WORKDIR}/fillets-ng-${PV}
src_compile() {
CPPFLAGS="-DSYSTEM_DATA_DIR=\"\\\"${GAMES_DATADIR}/${PN}\\\"\"" \
egamesconf \
--with-lua="/usr" || die
emake || die "emake failed"
}
src_install() {
make DESTDIR="${D}" install || die "make install failed"
dodoc AUTHORS ChangeLog NEWS README TODO
dodir "${GAMES_DATADIR}/${PN}"
cd ../fillets-ng-data-${DATA_PV}
cp -r font music sound doc images script "${D}${GAMES_DATADIR}/${PN}" \
|| die "cp failed"
newicon images/icon.png fillets.png
make_desktop_entry fillets FishFillets fillets.png
if use nls ; then
cd ../fillets-ng-data-cs-${CS_PV}
cp -r sound "${D}${GAMES_DATADIR}/${PN}" \
|| die "cp failed"
fi
prepgamesdirs
}
|