blob: b2e916f49e99b8900b993e3e37f021be7ab17d1f (
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
|
# Copyright 1999-2007 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.10 2007/04/09 21:28:09 welp Exp $
inherit eutils toolchain-funcs games
MY_P="${PN}-2001.09.07-0102"
DESCRIPTION="Educational arcade game where you have to solve math problems"
HOMEPAGE="http://www.newbreedsoftware.com/tuxmath/"
SRC_URI="mirror://sourceforge/tuxmath/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86 ~x86-fbsd"
IUSE=""
DEPEND="media-libs/libsdl
media-libs/sdl-image
media-libs/sdl-mixer"
S=${WORKDIR}/${PN}
src_unpack() {
unpack ${A}
cd "${S}"
rm -rf $(find -name CVS -o -name .xvpics -type d)
rm -f docs/COPYING.txt
sed -i \
-e '/strip/d' \
-e "1i CC=$(tc-getCC)" \
-e "s/-O2/${CFLAGS}/" \
-e "s:\$(DATA_PREFIX):${GAMES_DATADIR}/${PN}:" \
Makefile \
|| die "sed failed"
}
src_install() {
dogamesbin ${PN} || die "dogamesbin failed"
insinto "${GAMES_DATADIR}"/${PN}
doins -r data/{images,sounds} || die "doins failed"
newicon data/images/icon.png ${PN}.png
make_desktop_entry ${PN} "Tux Math"
dodoc docs/*.txt
prepgamesdirs
}
|