/[gentoo-x86]/games-rpg/adonthell/adonthell-0.3.5.ebuild
Gentoo

Contents of /games-rpg/adonthell/adonthell-0.3.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Fri Apr 13 19:22:44 2012 UTC (2 years, 2 months ago) by ulm
Branch: MAIN
Changes since 1.6: +5 -3 lines
Move EAPI assignment to top of ebuild, bug 411875.

(Portage version: 2.1.10.56/cvs/Linux x86_64)

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-rpg/adonthell/adonthell-0.3.5.ebuild,v 1.6 2011/04/18 07:16:37 tupone Exp $
4
5 EAPI=2
6 PYTHON_DEPEND="2"
7
8 inherit autotools eutils python games
9
10 DESCRIPTION="roleplaying game engine"
11 HOMEPAGE="http://adonthell.linuxgames.com/"
12 SRC_URI="http://savannah.nongnu.org/download/${PN}/${PN}-src-${PV}.tar.gz"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="~amd64 ppc x86"
17 IUSE="doc nls"
18
19 RDEPEND="media-libs/sdl-ttf
20 media-libs/sdl-mixer[vorbis]
21 media-libs/libsdl[X,video,audio]
22 sys-libs/zlib
23 media-libs/freetype
24 media-libs/libogg
25 media-libs/libvorbis
26 nls? ( virtual/libintl )"
27 DEPEND="${RDEPEND}
28 dev-lang/swig
29 doc? (
30 media-gfx/graphviz
31 app-doc/doxygen
32 )
33 nls? ( sys-devel/gettext )"
34
35 S=${WORKDIR}/${PN}-${PV/a/}
36
37 pkg_setup() {
38 python_set_active_version 2
39 games_pkg_setup
40 }
41
42 src_prepare() {
43 epatch \
44 "${FILESDIR}"/${P}-configure.in.patch \
45 "${FILESDIR}"/${P}-glibc-2.10.patch \
46 "${FILESDIR}"/${P}-gcc46.patch
47 sed -i \
48 -e "/AC_PATH_PROGS/s:python:$(PYTHON):" \
49 configure.in || die "sed failed"
50 rm -f ac{local,include}.m4
51 eautoreconf
52 }
53
54 src_configure() {
55 egamesconf \
56 --disable-dependency-tracking \
57 --disable-py-debug \
58 $(use_enable nls) \
59 $(use_enable doc)
60 }
61
62 src_install() {
63 emake DESTDIR="${D}" install || die
64 keepdir "${GAMES_DATADIR}"/${PN}/games
65 dodoc AUTHORS ChangeLog FULLSCREEN.howto NEWBIE NEWS README
66 prepgamesdirs
67 }

  ViewVC Help
Powered by ViewVC 1.1.20