blob: 3070740265bf47a3b8416a33158b415b1cc03fac (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils games
DESCRIPTION="A free cross-platform pipe connecting game"
HOMEPAGE="http://home.gna.org/vodovod/"
SRC_URI="http://download.gna.org/${PN}/${P}-src.tar.gz"
S=${WORKDIR}/${P}-src
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="media-libs/libsdl
media-libs/sdl-mixer
media-libs/sdl-image"
RDEPEND=${DEPEND}
src_unpack() {
unpack ${A}
cd "${S}"
sed -e 's:"\(data/[^"]*\)":"'${GAMES_DATADIR}'/'${PN}'/\1":g' -i *.cpp || die
epatch "${FILESDIR}/${P}-gcc4.3.patch"
}
src_install() {
dogamesbin "${PN}" || die "dogamesbin failed"
insinto "${GAMES_DATADIR}/${PN}/data"
doins data/* || die "doins failed"
#doicon ${DISTDIR}/${PN}.png
make_desktop_entry ${PN} "Vodovod"
prepgamesdirs
}
|