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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Dec 21 07:21:29 2011 UTC (6 years, 11 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
version bump

(Portage version: 2.1.10.41/cvs/Linux i686)

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

  ViewVC Help
Powered by ViewVC 1.1.20