48 lines
1.3 KiB
Bash
48 lines
1.3 KiB
Bash
# Copyright 1999-2011 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/games-kids/tuxtype/tuxtype-1.8.1.ebuild,v 1.9 2011/12/08 17:54:59 mr_bones_ Exp $
|
|
|
|
EAPI=2
|
|
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 )"
|
|
|
|
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 "fixing Makefile paths"
|
|
}
|
|
|
|
src_configure() {
|
|
egamesconf \
|
|
--disable-dependency-tracking \
|
|
--docdir=/usr/share/doc/${PF} \
|
|
--localedir=/usr/share/locale \
|
|
$(use_with svg rsvg)
|
|
}
|
|
|
|
src_install() {
|
|
emake DESTDIR="${D}" install || die "emake install failed"
|
|
prepalldocs
|
|
rm -f "${D}"/usr/share/doc/${PF}/{COPYING,INSTALL,ABOUT-NLS}*
|
|
doicon ${PN}.ico
|
|
make_desktop_entry ${PN} TuxTyping /usr/share/pixmaps/${PN}.ico
|
|
prepgamesdirs
|
|
}
|