/[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.4 - (hide annotations) (download)
Tue Nov 17 05:39:46 2009 UTC (5 years ago) by nerdboy
Branch: MAIN
Changes since 1.3: +3 -3 lines
Updated depends for boost and speech-dispatcher; fixes bug 293065).
(Portage version: 2.2_rc47/cvs/Linux x86_64)

1 tupone 1.1 # Copyright 1999-2009 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 nerdboy 1.3 # $Header: /var/cvsroot/gentoo-x86/app-misc/gpsdrive/gpsdrive-2.10_pre7.ebuild,v 1.2 2009/08/22 23:39:36 nerdboy Exp $
4 tupone 1.1 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 nerdboy 1.4 mapnik? ( sci-geosciences/mapnik
30     >=dev-libs/boost-1.39.0 )
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     # Fix desktop file...
50 nerdboy 1.2 sed -i -e "s:gpsicon:/usr/share/icons/gpsdrive.png:g" \
51     -e "s:Graphics;Network;Geography:Education;Science;Geography;GPS:g" \
52 tupone 1.1 data/gpsdrive.desktop || die "sed failed"
53     }
54    
55     src_configure() {
56     local mycmakeargs="${mycmakeargs}
57     $(cmake-utils_use_with scripts SCRIPTS)
58     $(cmake-utils_use_with mapnik MAPNIK)
59     $(cmake-utils_use_with dbus DBUS)
60     $(cmake-utils_use_with libgda GDA3)
61     $(cmake-utils_use_with speech SPEECH)
62     $(cmake-utils_use_with gdal GDAL)"
63     cmake-utils_src_configure
64     }
65    
66     src_install() {
67     cmake-utils_src_install
68     dodoc AUTHORS ChangeLog README \
69     Documentation/{CREDITS.i18n,FAQ.gpsdrive,FAQ.gpsdrive.fr,LEEME} \
70     Documentation/{LISEZMOI,NMEA.txt,LISEZMOI.kismet,TODO} \
71     Documentation/README.{Bluetooth,lib_map,nasamaps,tracks,kismet}
72     if use mapnik ; then
73     dodoc Documentation/install-mapnik-osm.txt
74     else
75     rm -f "${D}"usr/bin/gpsdrive_mapnik_gentiles.py
76     rm -f "${D}"usr/share/gpsdrive/osm-template.xml
77     fi
78     if use scripts ; then
79     dodoc Documentation/README.gpspoint2gspdrive
80     if ! use gdal ; then
81     rm -f "${D}"usr/bin/{gdal_slice,nasaconv}.sh
82     fi
83     else
84     rm -f "${D}"usr/share/man/man1/gpsd_nmea.sh.1
85     fi
86     }
87    
88     pkg_postinst() {
89     fdo-mime_desktop_database_update
90     elog
91     elog "Be sure to see the README files in /usr/share/doc/${PF}"
92     elog "for information on using Kismet with gpsdrive."
93     elog
94     if use mapnik ; then
95 nerdboy 1.2 elog "Using mapnik to render online maps requires you to load"
96     elog "data into the postgis database. Follow the instructions"
97 tupone 1.1 elog "on http://wiki.openstreetmap.org/index.php/Mapnik"
98     fi
99     elog
100     elog "This version also now depends on the gpsd package, and"
101     elog "specific devices are supported there. Start gpsd first,"
102     elog "otherwise gpsdrive will only run in simulation mode (which"
103     elog "is handy for downloading maps for another location, but"
104     elog "not much else)."
105     elog
106 nerdboy 1.2 elog "openstreetmap-icons now installs to a more appropriate"
107     elog "location, so if you have trouble starting gpsdrive, you"
108     elog "should probably update your ~/.gpsdrive/gpsdriverc file"
109     elog "and change the path to the geoinfofile to reflect this:"
110     elog " geoinfofile = /usr/share/osm/geoinfo.db"
111     elog
112 tupone 1.1 }
113    
114     pkg_postrm() {
115     fdo-mime_desktop_database_update
116     }

  ViewVC Help
Powered by ViewVC 1.1.20