forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tuxtype-1.8.1.ebuild
47 lines (39 loc) · 1.13 KB
/
tuxtype-1.8.1.ebuild
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
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit eutils games
DESCRIPTION="Typing tutorial with lots of eye-candy"
HOMEPAGE="http://alioth.debian.org/projects/tux4kids/"
SRC_URI="http://alioth.debian.org/frs/download.php/3270/tuxtype_w_fonts-${PV}.tar.gz"
LICENSE="GPL-2 OFL-1.1"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE="svg"
DEPEND="media-libs/libsdl[video]
media-libs/sdl-pango
media-libs/sdl-mixer
media-libs/sdl-image
media-libs/sdl-ttf
svg? ( gnome-base/librsvg )"
RDEPEND=${DEPEND}
S=${WORKDIR}/tuxtype_w_fonts-${PV}
src_prepare() {
sed -i \
-e 's:$(prefix)/share:'${GAMES_DATADIR}':g' \
-e 's:$(prefix)/doc/$(PACKAGE):/usr/share/doc/'${PF}':g' \
$(find -name Makefile.in) || die
}
src_configure() {
egamesconf \
--docdir=/usr/share/doc/${PF} \
--localedir=/usr/share/locale \
$(use_with svg rsvg)
}
src_install() {
default
rm -f "${D}"/usr/share/doc/${PF}/{COPYING,INSTALL,ABOUT-NLS}*
doicon ${PN}.ico
make_desktop_entry ${PN} TuxTyping /usr/share/pixmaps/${PN}.ico
keepdir "${GAMES_SYSCONFDIR}/${PN}" "${GAMES_STATEDIR}/${PN}/words"
prepgamesdirs
}