1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils gnome2-utils games
9 DESCRIPTION="Educational arcade game where you have to solve maths problems"
10 HOMEPAGE="http://tux4kids.alioth.debian.org/tuxmath/"
11 SRC_URI="mirror://sourceforge/tuxmath/${MY_PN}-${PV}.tar.gz"
13 LICENSE="GPL-2 OFL-1.1"
18 RDEPEND="dev-games/t4k-common[svg?]
22 media-libs/sdl-image[jpeg,png]
23 media-libs/sdl-mixer[mod]
25 nls? ( virtual/libintl )
32 nls? ( sys-devel/gettext )"
34 S=${WORKDIR}/${MY_PN}-${PV}
41 -e '/strncat/s/)/ - 1)/' \
47 --disable-dependency-tracking \
48 --localedir=/usr/share/locale \
50 $(usex svg "" "--without-rsvg")
54 emake DESTDIR="${D}" install || die "install failed"
55 doicon -s scalable data/images/icons/${PN}.svg
56 make_desktop_entry ${PN} "TuxMath"
57 dodoc doc/{README,TODO,changelog}
68 gnome2_icon_cache_update
72 gnome2_icon_cache_update