# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /cvsroot/navit/kportage/x11-app/navit/navit-9999.ebuild,v 1.1 2007/05/01 08:21:42 kazer_ Exp $ inherit cvs eutils ECVS_SERVER="navit.cvs.sourceforge.net:/cvsroot/navit" ECVS_MODULE="navit" ECVS_USER="anonymous" ECVS_PASS="" ECVS_BRANCH="" ECVS_TOP_DIR="${DISTDIR}/cvs-src/${PN}" S=${WORKDIR}/${ECVS_MODULE} DESCRIPTION="Navit is an open-source car navigation system with routing engine." HOMEPAGE="http://navit.sf.net" SRC_URI="" LICENSE="LGPL-2" SLOT="0" KEYWORDS="~x86" IUSE="gps speechd sdl modular_map" DEPEND="gnome-base/orbit" RDEPEND="gps? (>=sci-geosciences/gpsd-2.34) sdl? ( media-libs/libsdl media-libs/sdl-gfx media-libs/sdl-image media-libs/sdl-ttf )" #media-libs/gle may be required soon for fonts. src_unpack() { if use sdl; then export ECVS_BRANCH="sdl" fi if use modular_map; then export ECVS_BRANCH="modular_map" fi cvs_src_unpack } src_compile() { ./autogen.sh || die "autogen failed" econf || die "configure failed" make || die "make failed" } src_install () { dodir /usr/share/navit insinto /usr/local/lib doins src/fib-1.0/libfib.a src/fib-1.0/libfib.so.1 src/fib-1.0/libfib_p.a insinto /usr/local/bin if use sdl; then newbin src/navit navit-gl elif use modular_map; then newbin src/navit navit-modular dodir -p /usr/share/navit/gui/gtk insinto /usr/share/navit/gui/gtk doins src/gui/gtk/gtk.so dodir -p /usr/share/navit/graphics/gtk_drawing_area insinto /usr/share/navit/graphics/gtk_drawing_area doins src/graphics/gtk_drawing_area/gtk_drawing_area.so else dobin src/navit fi } pkg_postinst() { einfo "Good news, navit is installed :)" einfo " " einfo "Now you need some setup :" einfo " - Put your maps in /opt/reiseplaner/travel/DE.map (or symlink them)" einfo " This build use Reiseplanner maps. For more maps, check the modular_map branch in cvs" einfo " See http://navit.sf.net" einfo " " einfo " - If you have a GPS receiver, use export GPSDATA=gpsd://localhost to set your gps device." einfo " " einfo " - You can also export LC_ALL=en_US if your position is reported incorrectly." einfo " " einfo " -> Visit us on irc : irc://irc.freenode.net/navit for help or chat. <-" einfo " " einfo " Enjoy :)" if (use sdl || use modular_map); then ewarn " " ewarn "Warning : the release you choose is still quite experimental. Some features are missing" ewarn "Please give us your feedback." ewarn " Thanks :)" ewarn " " fi }