blob: daf40fdb76b2df9798b109cfdf9490e6d80c7744 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-simulation/cultivation/cultivation-7.ebuild,v 1.2 2007/05/19 21:17:02 tupone Exp $
inherit eutils flag-o-matic games
MY_P=Cultivation_${PV}_UnixSource
DESCRIPTION="A game about the interactions within a gardening community."
HOMEPAGE="http://cultivation.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
LICENSE="public-domain"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="virtual/glut
media-libs/pablio"
S="${WORKDIR}/${MY_P}/game2/gameSource"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}"-gentoo.patch
sed -i -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \
../../minorGems/util/TranslationManager.cpp \
features.cpp \
game.cpp || die "Changing data path failed"
}
src_compile() {
cd ..
platformSelection=1 ./configure
cd gameSource
emake || die "emake failed"
}
src_install() {
dogamesbin Cultivation || die "Installing binary failed"
insinto "${GAMES_DATADIR}/${PN}"
doins -r features.txt font.tga language.txt languages \
|| die "doins languages failed"
cd ../documentation
dodoc how_to_*.txt changeLog.txt
prepgamesdirs
}
|