summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Arnold <nerdboy@gentoo.org>2010-10-18 09:09:30 +0000
committerSteve Arnold <nerdboy@gentoo.org>2010-10-18 09:09:30 +0000
commitd553acc66ac4d0287f00b6616165b75d562c350a (patch)
tree72896b34d9ea54637787a615130e348d06152b39 /app-misc/gpsdrive
parentKeyworded for ~ppc (tested on G4 ibook). (diff)
downloadgentoo-2-d553acc66ac4d0287f00b6616165b75d562c350a.tar.gz
gentoo-2-d553acc66ac4d0287f00b6616165b75d562c350a.tar.bz2
gentoo-2-d553acc66ac4d0287f00b6616165b75d562c350a.zip
Updated to new version for new gpsd, mapnik, and boost support.
(Portage version: 2.2_rc97/cvs/Linux x86_64)
Diffstat (limited to 'app-misc/gpsdrive')
-rw-r--r--app-misc/gpsdrive/ChangeLog9
-rw-r--r--app-misc/gpsdrive/files/gpsdrive-2.11_DefineOptions_gpsd.patch9
-rw-r--r--app-misc/gpsdrive/gpsdrive-2.11.ebuild140
3 files changed, 157 insertions, 1 deletions
diff --git a/app-misc/gpsdrive/ChangeLog b/app-misc/gpsdrive/ChangeLog
index 6be05115e23c..66f4122eedd8 100644
--- a/app-misc/gpsdrive/ChangeLog
+++ b/app-misc/gpsdrive/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-misc/gpsdrive
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/gpsdrive/ChangeLog,v 1.39 2010/04/09 12:14:23 tupone Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/gpsdrive/ChangeLog,v 1.40 2010/10/18 09:09:30 nerdboy Exp $
+
+*gpsdrive-2.11 (18 Oct 2010)
+
+ 18 Oct 2010; Steve Arnold <nerdboy@gentoo.org> +gpsdrive-2.11.ebuild,
+ +files/gpsdrive-2.11_DefineOptions_gpsd.patch:
+ Updated to new version for new gpsd and boost support. Tested with
+ boost-1.42, gpsd-2.95, and mapnik-0.7.1 (and USB/PL2303 gps device).
09 Apr 2010; Tupone Alfredo <tupone@gentoo.org>
gpsdrive-2.10_pre7-r1.ebuild:
diff --git a/app-misc/gpsdrive/files/gpsdrive-2.11_DefineOptions_gpsd.patch b/app-misc/gpsdrive/files/gpsdrive-2.11_DefineOptions_gpsd.patch
new file mode 100644
index 000000000000..e5da5c0ac53b
--- /dev/null
+++ b/app-misc/gpsdrive/files/gpsdrive-2.11_DefineOptions_gpsd.patch
@@ -0,0 +1,9 @@
+--- DefineOptions.cmake_orig 2010-06-24 21:53:32.000000000 +0200
++++ DefineOptions.cmake 2010-10-10 18:23:33.000000000 +0200
+@@ -10,5 +10,5 @@
+ option(WITH_KISMET "Build with kismet support" ON)
+ option(DEBUG "Build with debug -D support" ON)
+ option(WITH_NAVIGATION "Build with routing support" OFF)
+-option(LIBGPS_OLD "Build with old libgps version (<2.90)" ON)
++option(LIBGPS_OLD "Build with old libgps version (<2.90)" OFF)
+
diff --git a/app-misc/gpsdrive/gpsdrive-2.11.ebuild b/app-misc/gpsdrive/gpsdrive-2.11.ebuild
new file mode 100644
index 000000000000..f94477111c62
--- /dev/null
+++ b/app-misc/gpsdrive/gpsdrive-2.11.ebuild
@@ -0,0 +1,140 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/gpsdrive/gpsdrive-2.11.ebuild,v 1.1 2010/10/18 09:09:30 nerdboy Exp $
+
+EAPI=2
+
+inherit cmake-utils eutils fdo-mime versionator
+
+DESCRIPTION="GPS navigation system with NMEA and Garmin support, zoomable map display, waypoints, etc."
+HOMEPAGE="http://www.gpsdrive.de/"
+SRC_URI="${HOMEPAGE}/packages/${P/_/}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+S=${WORKDIR}/${P/_/}
+
+KEYWORDS="~amd64 ~ppc ~x86"
+# submit bug for ppc64
+
+IUSE="dbus -debug -kismet libgda gdal mapnik scripts -speech"
+
+COMMON_DEP=">=sci-geosciences/gpsd-2.94
+ net-misc/curl
+ dev-libs/libxml2
+ dev-db/sqlite:3
+ x11-libs/gtk+:2
+ dbus? ( dev-libs/dbus-glib )
+ gdal? ( sci-libs/gdal )
+ kismet? ( net-wireless/kismet )
+ mapnik? ( >=sci-geosciences/mapnik-0.7.0 )
+ libgda? ( =gnome-extra/libgda-3.0*[postgres] )
+ speech? ( >=app-accessibility/speech-dispatcher-0.6.7 )"
+
+DEPEND="${COMMON_DEP}
+ >=dev-util/cmake-2.8.0
+ dev-util/pkgconfig"
+
+RDEPEND="${COMMON_DEP}
+ sci-geosciences/openstreetmap-icons
+ sci-geosciences/mapnik-world-boundaries
+ media-fonts/dejavu"
+
+src_prepare() {
+ # Get rid of the package's FindBoost.
+ rm "${S}"/cmake/Modules/FindBoost.cmake
+
+ # Update mapnik font path...
+ sed -i \
+ -e "s:truetype/ttf-dejavu:dejavu:g" \
+ -e "s:mapnik/0.5:mapnik:g" \
+ tests/gpsdriverc-in \
+ src/gpsdrive_config.c || die "sed failed"
+
+ # update OSM icon paths
+ sed -i \
+ -e "s|icons/map-icons|osm|g" \
+ cmake/Modules/DefineInstallationPaths.cmake \
+ scripts/osm/perl_lib/Geo/Gpsdrive/DB_Defaults.pm \
+ scripts/osm/perl_lib/Geo/Gpsdrive/OSM.pm \
+ src/icons.c \
+ || die "sed failed"
+
+ # Fix desktop file...
+ sed -i -e "s:gpsicon:/usr/share/icons/gpsdrive.png:g" \
+ -e "s:Graphics;Network;Geography:Education;Science;Geography;GPS:g" \
+ data/gpsdrive.desktop || die "sed failed"
+
+ epatch "${FILESDIR}"/gpsdrive-2.11_DefineOptions_gpsd.patch
+}
+
+src_configure() {
+ cat >> cmake/Modules/DefineProjectDefaults.cmake <<- _EOF_
+
+ # set policy for new linker paths
+ cmake_policy(SET CMP0003 NEW) # or cmake_policy(VERSION 2.6)
+ _EOF_
+
+ local mycmakeargs="${mycmakeargs}
+ $(cmake-utils_use_with scripts SCRIPTS)
+ $(cmake-utils_use_with mapnik MAPNIK)
+ $(cmake-utils_use_with kismet KISMET)
+ $(cmake-utils_use_with dbus DBUS)
+ $(cmake-utils_use_with libgda GDA3)
+ $(cmake-utils_use_with speech SPEECH)
+ $(cmake-utils_use_with gdal GDAL)"
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ dodoc AUTHORS ChangeLog README \
+ Documentation/{CREDITS.i18n,FAQ.gpsdrive,FAQ.gpsdrive.fr,LEEME} \
+ Documentation/{LISEZMOI,NMEA.txt,LISEZMOI.kismet,TODO} \
+ Documentation/README.{Bluetooth,lib_map,nasamaps,tracks,kismet}
+ if use mapnik ; then
+ dodoc Documentation/install-mapnik-osm.txt
+ else
+ rm -f "${D}"usr/bin/gpsdrive_mapnik_gentiles.py
+ rm -f "${D}"usr/share/gpsdrive/osm-template.xml
+ fi
+ if use scripts ; then
+ dodoc Documentation/README.gpspoint2gspdrive
+ if ! use gdal ; then
+ rm -f "${D}"usr/bin/{gdal_slice,nasaconv}.sh
+ fi
+ else
+ rm -f "${D}"usr/share/man/man1/gpsd_nmea.sh.1
+ fi
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ elog
+ elog "Be sure to see the README files in /usr/share/doc/${PF}"
+ elog "for information on using Kismet with gpsdrive."
+ elog
+ if use mapnik ; then
+ elog "Using mapnik to render online maps requires you to load"
+ elog "data into the postgis database. Follow the instructions"
+ elog "on http://wiki.openstreetmap.org/index.php/Mapnik"
+ fi
+ elog
+ elog "This version also now depends on the gpsd package, and"
+ elog "specific devices are supported there. Start gpsd first,"
+ elog "otherwise gpsdrive will only run in simulation mode (which"
+ elog "is handy for downloading maps for another location, but"
+ elog "not much else)."
+ elog
+ elog "openstreetmap-icons now installs to a more appropriate"
+ elog "location, so if you have trouble starting gpsdrive, you"
+ elog "should probably update your ~/.gpsdrive/gpsdriverc file"
+ elog "and change the path to the geoinfofile to reflect this:"
+ elog " geoinfofile = /usr/share/osm/geoinfo.db"
+ elog
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+}