blob: 62043bc439264d6f3a03c669f51db766948dd6be (
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
62
63
64
65
66
67
68
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-kids/gcompris/gcompris-4.2-r1.ebuild,v 1.5 2004/06/03 20:55:42 agriffis Exp $
inherit games eutils
DESCRIPTION="full featured educational application for children from 3 to 10"
HOMEPAGE="http://ofset.sourceforge.net/gcompris/"
SRC_URI="mirror://sourceforge/gcompris/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE="oggvorbis python" # nls
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/libassetml
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_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${PV}-lang.patch
}
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
econf ${myconf} || die
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
}
|