/[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.5 - (hide annotations) (download)
Sat Feb 13 05:38:42 2010 UTC (4 years, 2 months ago) by nerdboy
Branch: MAIN
Changes since 1.4: +14 -4 lines
Fixed OSM icon path (bug #304045) and libgda dep (bug #281705).
(Portage version: 2.2_rc61/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20