blob: 4177848ca9b9c49a02163bd21cc73585b42ac6d1 (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: initial version by Ron Simpkin doobedoobedo@quake3world.com
inherit games
DESCRIPTION="full featured educational application for children from 3 to 10"
HOMEPAGE="http://ofset.sourceforge.net/gcompris/"
SRC_URI="mirror://sourceforge/gcompris/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE="oggvorbis nls python"
DEPEND="virtual/x11
>=sys-apps/sed-4
>=gnome-base/libgnome-1.96.0
>=gnome-base/libgnomeui-1.96.0
>=gnome-base/libgnomecanvas-2.0.2
>=dev-libs/glib-2.0
=x11-libs/gtk+-2*
dev-libs/libxml2
games-board/gnuchess
sys-apps/texinfo
app-text/texi2html
python? ( dev-lang/python )
oggvorbis? ( media-libs/libogg
media-libs/libvorbis
media-libs/libao )"
src_compile() {
export GNUCHESS="${GAMES_BINDIR}/gnuchess"
local myconf=""
use oggvorbis && myconf="${myconf} --with-ogg=/usr --with-vorbis=/usr --with-ao=/usr"
use python && myconf="${myconf} --with-python=`which python`"
egamesconf ${myconf} || die
for f in `grep -Rl /usr/games/share *` ; do
sed -i \
-e "s:${GAMES_PREFIX}/share/gnome:/usr/share/gnome:g" \
-e "s:${GAMES_PREFIX}/share:${GAMES_DATADIR}:g" \
${f} || die "sed ${f} failed"
done
emake || die "emake failed"
}
src_install() {
make install DESTDIR=${D} || die "make install failed"
dodoc AUTHORS ChangeLog NEWS README THANKS TODO
mv ${D}/${GAMES_DATADIR}/{locale,gnome,pixmaps} ${D}/usr/share/
rm -rf ${D}/${GAMES_LIBDIR}/menu
if [ ! `use nls` ] ; then
rm -rf ${D}/usr/share/locale
cd ${D}/${GAMES_DATADIR}/gcompris/boards/sounds
rm -rf `find -type d -maxdepth 1 -mindepth 1 ! -name en`
fi
prepgamesdirs
}
|