# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $ inherit games DESCRIPTION="full featured educational application for children from 2 to 10" HOMEPAGE="http://ofset.sourceforge.net/gcompris/" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86" IUSE="oggvorbis python" # nls DEPEND="virtual/x11 >=sys-apps/sed-4 >=dev-libs/glib-2.0 =x11-libs/gtk+-2* >=dev-python/gnome-python-2.0 dev-libs/libxml2 media-libs/sdl-mixer games-board/gnuchess sys-apps/texinfo app-text/texi2html python? ( dev-lang/python ) oggvorbis? ( media-libs/libogg media-libs/libvorbis media-libs/libao )" dev-python/pygtk dev-python/gnome-python ECVS_SERVER="anoncvs.gnome.org:/cvs/gnome" ECVS_MODULE="gcompris" ECVS_USER="anonymous" ECVS_PASS="" inherit cvs S=${WORKDIR}/${ECVS_MODULE} src_compile() { export GNUCHESS="${GAMES_BINDIR}/gnuchess" ./autogen.sh || die "autogen.sh failed" local myconf="" use oggvorbis && myconf="${myconf} --with-ogg=/usr --with-vorbis=/usr --with-ao=/usr" use python && myconf="${myconf} --with-python=`which python`" ./configure || die "configure failed" make || die "make failed" } src_install() { make install DESTDIR=${D} || die "make install failed" dodoc AUTHORS ChangeLog NEWS README THANKS TODO }