/[gentoo-x86]/games-kids/gcompris/gcompris-3.2.ebuild
Gentoo

Contents of /games-kids/gcompris/gcompris-3.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sun Oct 31 05:14:26 2004 UTC (13 years, 3 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
old

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-kids/gcompris/gcompris-3.2.ebuild,v 1.8 2004/06/24 22:51:13 agriffis Exp $
4
5 inherit games
6
7 DESCRIPTION="full featured educational application for children from 3 to 10"
8 HOMEPAGE="http://ofset.sourceforge.net/gcompris/"
9 SRC_URI="mirror://sourceforge/gcompris/${P}.tgz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="x86"
14 IUSE="oggvorbis nls python"
15
16 DEPEND="virtual/x11
17 >=sys-apps/sed-4
18 >=gnome-base/libgnome-1.96.0
19 >=gnome-base/libgnomeui-1.96.0
20 >=gnome-base/libgnomecanvas-2.0.2
21 >=dev-libs/glib-2.0
22 =x11-libs/gtk+-2*
23 dev-libs/libxml2
24 games-board/gnuchess
25 sys-apps/texinfo
26 app-text/texi2html
27 python? ( dev-lang/python )
28 oggvorbis? ( media-libs/libogg
29 media-libs/libvorbis
30 media-libs/libao )"
31
32 src_compile() {
33 export GNUCHESS="${GAMES_BINDIR}/gnuchess"
34
35 local myconf=""
36 use oggvorbis && myconf="${myconf} --with-ogg=/usr --with-vorbis=/usr --with-ao=/usr"
37 use python && myconf="${myconf} --with-python=`which python`"
38 egamesconf ${myconf} || die
39
40 for f in `grep -Rl /usr/games/share *` ; do
41 sed -i \
42 -e "s:${GAMES_PREFIX}/share/gnome:/usr/share/gnome:g" \
43 -e "s:${GAMES_PREFIX}/share:${GAMES_DATADIR}:g" \
44 ${f} || die "sed ${f} failed"
45 done
46
47 emake || die "emake failed"
48 }
49
50 src_install() {
51 make install DESTDIR=${D} || die "make install failed"
52 dodoc AUTHORS ChangeLog NEWS README THANKS TODO
53 mv ${D}/${GAMES_DATADIR}/{locale,gnome,pixmaps} ${D}/usr/share/
54 rm -rf ${D}/${GAMES_LIBDIR}/menu
55 if ! use nls ; then
56 rm -rf ${D}/usr/share/locale
57 cd ${D}/${GAMES_DATADIR}/gcompris/boards/sounds
58 rm -rf `find -type d -maxdepth 1 -mindepth 1 ! -name en`
59 fi
60 prepgamesdirs
61 }

  ViewVC Help
Powered by ViewVC 1.1.20