# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-misc/gpsdrive/gpsdrive-2.09.ebuild,v 1.8 2005/04/06 19:31:42 luckyduck Exp $ DESCRIPTION="displays GPS position on a map" HOMEPAGE="http://gpsdrive.kraftvoll.at" SRC_URI="http://gpsdrive.kraftvoll.at/gpsdrive-2.10pre2.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ppc amd64" IUSE="nls garmin teleatlas nogpsd nofriendsd" DEPEND="sys-devel/gettext >=x11-libs/gtk+-2.0 >=dev-libs/libpcre-4.2" src_compile() { #FIXME! cd /var/tmp/portage/gpsdrive-2.10_pre2/work/gpsdrive-2.10pre2 local myconf="" use !nls && myconf="${myconf} --disable-nls" use !garmin && myconf="${myconf} --disable-garmin" use teleatlas && myconf="${myconf} --enable-teleatlas" econf ${myconf} || die "configure failed" emake || die "make failed" } src_install() { #FIXME! cd /var/tmp/portage/gpsdrive-2.10_pre2/work/gpsdrive-2.10pre2 #Fix bad doc install code sed -i "s/^EXTRA_DIST.*$//" Makefile sed -i "s/^pkgdata_DATA.*$//" Makefile dodoc TODO GPS-receivers LEEME depcomp LISEZMOI README.FreeBSD README.gpspoint2gspdrive FAQ.gpsdrive FAQ.gpsdrive.fr README.SQL create.sql NMEA.txt wp2sql README.kismet LISEZMOI.FreeBSD LISEZMOI.kismet LISEZMOI.SQL CREDITS gpsdrive.desktop README.nasamaps einstall || die "make install failed" #Bad but works =) if use nogpsd; then echo ${D}/usr/bin/gpsd rm ${D}/usr/bin/gpsd fi if use nofriendsd; then rm ${D}/usr/bin/friendsd2 fi }