1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools subversion
8 DESCRIPTION="An open-source car navigation system with a routing engine"
9 HOMEPAGE="http://www.navit-project.org"
15 IUSE="dbus garmin gps gtk nls python sdl speechd svg"
17 RDEPEND="dev-libs/glib:2
18 garmin? ( dev-libs/libgarmin )
19 gtk? ( x11-libs/gtk+:2
21 sdl? ( media-libs/libsdl
25 python? ( dev-lang/python )
26 dbus? ( sys-apps/dbus )
27 gps? ( sci-geosciences/gpsd )
28 speechd? ( app-accessibility/speech-dispatcher )"
33 svg? ( || ( gnome-base/librsvg media-gfx/imagemagick[png,svg] ) )"
35 ESVN_REPO_URI="http://navit.svn.sourceforge.net/svnroot/navit/trunk/navit"
38 autopoint -f || die "autopoint failed"
47 if has_version gnome-base/librsvg; then
48 myconf="--with-svg2png-use-rsvg-convert"
50 myconf="--with-svg2png-use-convert"
53 myconf="--disable-svg2png"
56 econf $(use_enable garmin) \
57 $(use_enable gps libgps) \
58 $(use_enable gtk gui-gtk) \
59 $(use_enable sdl gui-sdl) \
61 $(use_enable dbus binding-dbus) \
62 $(use_enable python binding-python) \
63 $(use_enable speechd speech-speechd) \
64 --disable-graphics-qt-painter \
70 emake DESTDIR="${D}" install || die "Install failed"
71 dodoc AUTHORS ChangeLog README || die "dodoc failed"