1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 )
7 PYTHON_REQ_USE="sqlite,threads"
9 inherit autotools eutils python-single-r1
11 DESCRIPTION="full featured educational application for children from 2 to 10"
12 HOMEPAGE="http://gcompris.net/"
13 SRC_URI="http://gcompris.net/download/${P}.tar.bz2"
17 KEYWORDS="~amd64 ~ppc ~x86"
19 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
21 RDEPEND="x11-libs/gtk+:2
22 gnome-base/librsvg[gtk(+)]
24 media-libs/gstreamer:0.10
25 media-libs/gst-plugins-good:0.10
26 media-plugins/gst-plugins-alsa:0.10
27 media-plugins/gst-plugins-ogg:0.10
28 media-plugins/gst-plugins-vorbis:0.10 )
35 dev-python/pygtk[${PYTHON_USEDEP}]
40 gnome-base/gnome-common
46 sci-electronics/gnucap"
49 "${FILESDIR}"/${P}-build.patch
53 python-single-r1_pkg_setup
59 # Drop DEPRECATED flags, bug #387817
60 sed -i -e 's:-D[A-Z_]*DISABLE_DEPRECATED:$(NULL):g' \
61 src/gcompris/Makefile.am || die
63 cp /usr/share/gettext/config.rpath .
67 -e 's#^itlocaledir =.*$#itlocaledir = @localedir@#' \
68 po/Makefile.in.in || die
74 gcompris-edit.desktop.in || die
78 GNUCHESS="/usr/bin/gcompris-gnuchess" \
80 --datarootdir="/usr/share" \
81 --datadir="/usr/share" \
82 --localedir=/usr/share/locale \
83 --infodir=/usr/share/info \
84 --with-python="${PYTHON}" \
85 $(use_enable !gstreamer sdlmixer) \
87 --enable-py-build-only
92 prune_libtool_files --modules