/[gentoo-x86]/app-misc/gpsdrive/gpsdrive-2.10_pre7.ebuild
Gentoo

Contents of /app-misc/gpsdrive/gpsdrive-2.10_pre7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Aug 22 23:39:36 2009 UTC (5 years, 6 months ago) by nerdboy
Branch: MAIN
Changes since 1.1: +12 -6 lines
Updated einfo, icon, and desktop file; more testing with gpsd and osm.
(Portage version: 2.2_rc33/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-misc/gpsdrive/gpsdrive-2.10_pre7.ebuild,v 1.1 2009/06/24 08:05:08 tupone Exp $
4 EAPI=2
5
6 inherit cmake-utils eutils fdo-mime
7
8 DESCRIPTION="GPS navigation system with NMEA and Garmin support, zoomable map display, waypoints, etc."
9 HOMEPAGE="http://www.gpsdrive.de/"
10 SRC_URI="${HOMEPAGE}/packages/${P/_/}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14
15 S=${WORKDIR}/${P/_/}
16
17 KEYWORDS="~amd64 ~ppc ~x86"
18 # submit bug for ppc64
19
20 IUSE="dbus debug libgda gdal mapnik scripts speech"
21
22 COMMON_DEP="sci-geosciences/gpsd
23 net-misc/curl
24 dev-libs/libxml2
25 dev-db/sqlite:3
26 x11-libs/gtk+:2
27 dbus? ( dev-libs/dbus-glib )
28 gdal? ( sci-libs/gdal )
29 mapnik? ( sci-geosciences/mapnik )
30 libgda? ( =gnome-extra/libgda-3.0*[postgres] )
31 speech? ( app-accessibility/speech-dispatcher )"
32
33 DEPEND="${COMMON_DEP}
34 dev-util/pkgconfig"
35
36 RDEPEND="${COMMON_DEP}
37 sci-geosciences/openstreetmap-icons
38 sci-geosciences/mapnik-world-boundaries
39 media-fonts/dejavu"
40
41 src_prepare() {
42 # Update mapnik font path...
43 sed -i \
44 -e "s:truetype/ttf-dejavu:dejavu:g" \
45 -e "s:mapnik/0.5:mapnik:g" \
46 tests/gpsdriverc-in \
47 src/gpsdrive_config.c || die "sed failed"
48 # Fix desktop file...
49 sed -i -e "s:gpsicon:/usr/share/icons/gpsdrive.png:g" \
50 -e "s:Graphics;Network;Geography:Education;Science;Geography;GPS:g" \
51 data/gpsdrive.desktop || die "sed failed"
52 }
53
54 src_configure() {
55 local mycmakeargs="${mycmakeargs}
56 $(cmake-utils_use_with scripts SCRIPTS)
57 $(cmake-utils_use_with mapnik MAPNIK)
58 $(cmake-utils_use_with dbus DBUS)
59 $(cmake-utils_use_with libgda GDA3)
60 $(cmake-utils_use_with speech SPEECH)
61 $(cmake-utils_use_with gdal GDAL)"
62 cmake-utils_src_configure
63 }
64
65 src_install() {
66 cmake-utils_src_install
67 dodoc AUTHORS ChangeLog README \
68 Documentation/{CREDITS.i18n,FAQ.gpsdrive,FAQ.gpsdrive.fr,LEEME} \
69 Documentation/{LISEZMOI,NMEA.txt,LISEZMOI.kismet,TODO} \
70 Documentation/README.{Bluetooth,lib_map,nasamaps,tracks,kismet}
71 if use mapnik ; then
72 dodoc Documentation/install-mapnik-osm.txt
73 else
74 rm -f "${D}"usr/bin/gpsdrive_mapnik_gentiles.py
75 rm -f "${D}"usr/share/gpsdrive/osm-template.xml
76 fi
77 if use scripts ; then
78 dodoc Documentation/README.gpspoint2gspdrive
79 if ! use gdal ; then
80 rm -f "${D}"usr/bin/{gdal_slice,nasaconv}.sh
81 fi
82 else
83 rm -f "${D}"usr/share/man/man1/gpsd_nmea.sh.1
84 fi
85 }
86
87 pkg_postinst() {
88 fdo-mime_desktop_database_update
89 elog
90 elog "Be sure to see the README files in /usr/share/doc/${PF}"
91 elog "for information on using Kismet with gpsdrive."
92 elog
93 if use mapnik ; then
94 elog "Using mapnik to render online maps requires you to load"
95 elog "data into the postgis database. Follow the instructions"
96 elog "on http://wiki.openstreetmap.org/index.php/Mapnik"
97 fi
98 elog
99 elog "This version also now depends on the gpsd package, and"
100 elog "specific devices are supported there. Start gpsd first,"
101 elog "otherwise gpsdrive will only run in simulation mode (which"
102 elog "is handy for downloading maps for another location, but"
103 elog "not much else)."
104 elog
105 elog "openstreetmap-icons now installs to a more appropriate"
106 elog "location, so if you have trouble starting gpsdrive, you"
107 elog "should probably update your ~/.gpsdrive/gpsdriverc file"
108 elog "and change the path to the geoinfofile to reflect this:"
109 elog " geoinfofile = /usr/share/osm/geoinfo.db"
110 elog
111 }
112
113 pkg_postrm() {
114 fdo-mime_desktop_database_update
115 }

  ViewVC Help
Powered by ViewVC 1.1.20