| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/games-kids/gcompris/gcompris-12.05.ebuild,v 1.7 2012/11/07 20:14:51 tetromino Exp $
|
| 4 |
|
| 5 |
EAPI=2
|
| 6 |
PYTHON_DEPEND="2:2.6"
|
| 7 |
PYTHON_USE_WITH="sqlite threads"
|
| 8 |
|
| 9 |
inherit autotools eutils python games
|
| 10 |
|
| 11 |
DESCRIPTION="full featured educational application for children from 2 to 10"
|
| 12 |
HOMEPAGE="http://gcompris.net/"
|
| 13 |
SRC_URI="mirror://sourceforge/gcompris/${P}.tar.bz2"
|
| 14 |
|
| 15 |
LICENSE="GPL-3"
|
| 16 |
SLOT="0"
|
| 17 |
KEYWORDS="amd64 ppc x86"
|
| 18 |
IUSE="gnet"
|
| 19 |
|
| 20 |
RDEPEND="x11-libs/gtk+:2
|
| 21 |
gnome-base/librsvg[gtk]
|
| 22 |
media-libs/gstreamer:0.10
|
| 23 |
media-libs/gst-plugins-good:0.10
|
| 24 |
media-plugins/gst-plugins-ogg:0.10
|
| 25 |
media-plugins/gst-plugins-alsa:0.10
|
| 26 |
media-plugins/gst-plugins-vorbis:0.10
|
| 27 |
media-libs/sdl-mixer
|
| 28 |
media-libs/libsdl
|
| 29 |
dev-libs/libxml2
|
| 30 |
dev-libs/popt
|
| 31 |
virtual/libintl
|
| 32 |
games-board/gnuchess
|
| 33 |
dev-db/sqlite:3
|
| 34 |
gnet? ( net-libs/gnet:2 )
|
| 35 |
dev-python/pygtk"
|
| 36 |
DEPEND="${RDEPEND}
|
| 37 |
gnome-base/gnome-common
|
| 38 |
dev-perl/XML-Parser
|
| 39 |
sys-devel/gettext
|
| 40 |
sys-apps/texinfo
|
| 41 |
app-text/texi2html
|
| 42 |
virtual/pkgconfig"
|
| 43 |
RDEPEND="${RDEPEND}
|
| 44 |
media-gfx/tuxpaint
|
| 45 |
sci-electronics/gnucap"
|
| 46 |
|
| 47 |
pkg_setup() {
|
| 48 |
python_set_active_version 2
|
| 49 |
python_pkg_setup
|
| 50 |
games_pkg_setup
|
| 51 |
}
|
| 52 |
|
| 53 |
src_prepare() {
|
| 54 |
# Drop DEPRECATED flags, bug #387817
|
| 55 |
sed -i -e 's:-D[A-Z_]*DISABLE_DEPRECATED:$(NULL):g' \
|
| 56 |
src/gcompris/Makefile.am src/gcompris/Makefile.in \
|
| 57 |
src/goocanvas/src/Makefile.am src/goocanvas/src/Makefile.in \
|
| 58 |
|| die
|
| 59 |
|
| 60 |
epatch "${FILESDIR}"/${P}-build.patch
|
| 61 |
cp /usr/share/gettext/config.rpath .
|
| 62 |
eautoreconf
|
| 63 |
sed -i \
|
| 64 |
-e 's#^itlocaledir =.*$#itlocaledir = @localedir@#' \
|
| 65 |
po/Makefile.in.in || die
|
| 66 |
|
| 67 |
# Fix desktop files
|
| 68 |
sed -i '/Encoding/d' gcompris.desktop.in || die
|
| 69 |
sed -i '/Encoding/d' gcompris-edit.desktop.in || die
|
| 70 |
}
|
| 71 |
|
| 72 |
src_configure() {
|
| 73 |
GNUCHESS="${GAMES_BINDIR}"/gnuchess \
|
| 74 |
egamesconf \
|
| 75 |
--disable-dependency-tracking \
|
| 76 |
--datarootdir="${GAMES_DATADIR}" \
|
| 77 |
--datadir="${GAMES_DATADIR}" \
|
| 78 |
--localedir=/usr/share/locale \
|
| 79 |
--infodir=/usr/share/info \
|
| 80 |
--with-python="$(PYTHON -a)" \
|
| 81 |
$(use_enable gnet) \
|
| 82 |
--enable-sqlite \
|
| 83 |
--enable-py-build-only
|
| 84 |
}
|
| 85 |
|
| 86 |
src_compile() {
|
| 87 |
emake -j1 || die "emake failed"
|
| 88 |
}
|
| 89 |
|
| 90 |
src_install() {
|
| 91 |
emake DESTDIR="${D}" install || die "emake install failed"
|
| 92 |
find "${D}" -name '*.la' -exec rm -f '{}' +
|
| 93 |
dodoc AUTHORS ChangeLog NEWS README THANKS TODO
|
| 94 |
prepgamesdirs
|
| 95 |
}
|