# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ ECVS_SERVER="navit.cvs.sourceforge.net:/cvsroot/navit" ECVS_MODULE="navit" ECVS_USER="anonymous" ECVS_PASS="" ECVS_TOP_DIR="${DISTDIR}/cvs-src/${PN}" inherit cvs eutils S=${WORKDIR}/${ECVS_MODULE} DESCRIPTION="Navit is an open-source car navigation system with routing engine." HOMEPAGE="http://navit.sf.net" SRC_URI="" LICENSE="GPL" SLOT="0" KEYWORDS="~x86" IUSE="gps speechd" DEPEND="gnome-base/orbit" RDEPEND="gps? (>=sci-geosciences/gpsd-2.34)" src_compile() { einfo "Running autogen" ./autogen.sh || die "autogen failed" einfo "Running configure" econf || die "configure failed" einfo "Fine. Now building." make || die "make failed" } src_install () { einfo "Build successfull, now installing to /usr/share/navit" # dodir /usr/share/navit # For plugins 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 doins src/navit fperms a+x /usr/local/bin/navit } 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 :)" }