summaryrefslogtreecommitdiff
blob: 9434cf9d01fa81e5129e55740be5157355d5d8b6 (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-kids/tuxmath/tuxmath-20010907.ebuild,v 1.6 2004/08/30 23:40:32 dholm Exp $

inherit games

MY_P="${PN}-2001.09.07-0102"
DESCRIPTION="Educational arcade game where you have to solve math problems"
SRC_URI="mirror://sourceforge/tuxmath/${MY_P}.tar.gz"
HOMEPAGE="http://www.newbreedsoftware.com/tuxmath/"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ~amd64 ~ppc"
IUSE=""

DEPEND=">=media-libs/libsdl-1.1.5
	>=media-libs/sdl-image-1.2.2
	>=media-libs/sdl-mixer-1.2.4"

S="${WORKDIR}/${PN}"

src_compile() {
	emake \
		DATA_PREFIX=${GAMES_DATADIR}/${PN} \
		BIN_PREFIX=${GAMES_BINDIR} \
		|| die "emake failed"
}

src_install() {
	find -name CVS -type d -exec rm -rf '{}' \;

	dogamesbin tuxmath || die "dogamesbin failed"

	dodir "${GAMES_DATADIR}/${PN}"
	cp -r data/{images,sounds} "${D}/${GAMES_DATADIR}/${PN}/" \
		|| die "cp failed"

	dodoc docs/*.txt
	prepgamesdirs
}