Gentoo Archives: gentoo-commits

From: "Steve Arnold (nerdboy)" <nerdboy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-misc/gpsdrive: ChangeLog gpsdrive-2.11-r1.ebuild gpsdrive-2.11.ebuild
Date: Sat, 30 Oct 2010 01:12:13
Message-Id: 20101030011200.CBB1A20051@flycatcher.gentoo.org
1 nerdboy 10/10/30 01:12:00
2
3 Modified: ChangeLog
4 Added: gpsdrive-2.11-r1.ebuild
5 Removed: gpsdrive-2.11.ebuild
6 Log:
7 Updated with new cmake directive to address bug 341693.
8
9 (Portage version: 2.2_rc99/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.41 app-misc/gpsdrive/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/gpsdrive/ChangeLog?rev=1.41&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/gpsdrive/ChangeLog?rev=1.41&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/gpsdrive/ChangeLog?r1=1.40&r2=1.41
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/app-misc/gpsdrive/ChangeLog,v
21 retrieving revision 1.40
22 retrieving revision 1.41
23 diff -u -r1.40 -r1.41
24 --- ChangeLog 18 Oct 2010 09:09:30 -0000 1.40
25 +++ ChangeLog 30 Oct 2010 01:12:00 -0000 1.41
26 @@ -1,6 +1,13 @@
27 # ChangeLog for app-misc/gpsdrive
28 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/app-misc/gpsdrive/ChangeLog,v 1.40 2010/10/18 09:09:30 nerdboy Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/app-misc/gpsdrive/ChangeLog,v 1.41 2010/10/30 01:12:00 nerdboy Exp $
31 +
32 +*gpsdrive-2.11-r1 (30 Oct 2010)
33 +
34 + 30 Oct 2010; Steve Arnold <nerdboy@g.o> -gpsdrive-2.11.ebuild,
35 + +gpsdrive-2.11-r1.ebuild:
36 + Updated with new cmake directive to address bug #341693. Updated deps
37 + to latest documented versions.
38
39 *gpsdrive-2.11 (18 Oct 2010)
40
41
42
43
44 1.1 app-misc/gpsdrive/gpsdrive-2.11-r1.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/gpsdrive/gpsdrive-2.11-r1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/gpsdrive/gpsdrive-2.11-r1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: gpsdrive-2.11-r1.ebuild
50 ===================================================================
51 # Copyright 1999-2010 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/app-misc/gpsdrive/gpsdrive-2.11-r1.ebuild,v 1.1 2010/10/30 01:12:00 nerdboy Exp $
54
55 EAPI=2
56
57 inherit cmake-utils eutils fdo-mime versionator
58
59 DESCRIPTION="GPS navigation system with NMEA and Garmin support, zoomable map display, waypoints, etc."
60 HOMEPAGE="http://www.gpsdrive.de/"
61 SRC_URI="${HOMEPAGE}/packages/${P/_/}.tar.gz"
62
63 LICENSE="GPL-2"
64 SLOT="0"
65
66 S=${WORKDIR}/${P/_/}
67
68 KEYWORDS="~amd64 ~ppc ~x86"
69 # submit bug for ppc64
70
71 IUSE="dbus -debug -kismet libgda gdal mapnik scripts -speech"
72
73 COMMON_DEP=">=sci-geosciences/gpsd-2.94
74 net-misc/curl
75 dev-libs/libxml2
76 dev-db/sqlite:3
77 x11-libs/gtk+:2
78 dbus? ( dev-libs/dbus-glib )
79 gdal? ( sci-libs/gdal )
80 kismet? ( net-wireless/kismet )
81 mapnik? ( >=sci-geosciences/mapnik-0.7.0[postgres]
82 >=dev-db/postgis-1.5.2 )
83 libgda? ( =gnome-extra/libgda-3.0*[postgres] )
84 speech? ( >=app-accessibility/speech-dispatcher-0.6.7 )"
85
86 DEPEND="${COMMON_DEP}
87 >=dev-util/cmake-2.8.0
88 dev-util/pkgconfig"
89
90 RDEPEND="${COMMON_DEP}
91 sci-geosciences/openstreetmap-icons
92 sci-geosciences/mapnik-world-boundaries
93 media-fonts/dejavu"
94
95 src_prepare() {
96 # Get rid of the package's FindBoost.
97 rm "${S}"/cmake/Modules/FindBoost.cmake
98
99 # Update mapnik font path...
100 sed -i \
101 -e "s:truetype/ttf-dejavu:dejavu:g" \
102 -e "s:mapnik/0.5:mapnik:g" \
103 tests/gpsdriverc-in \
104 src/gpsdrive_config.c || die "sed failed"
105
106 # update OSM icon paths
107 sed -i \
108 -e "s|icons/map-icons|osm|g" \
109 cmake/Modules/DefineInstallationPaths.cmake \
110 scripts/osm/perl_lib/Geo/Gpsdrive/DB_Defaults.pm \
111 scripts/osm/perl_lib/Geo/Gpsdrive/OSM.pm \
112 src/icons.c \
113 || die "sed failed"
114
115 # Fix desktop file...
116 sed -i -e "s:gpsicon:/usr/share/icons/gpsdrive.png:g" \
117 -e "s:Graphics;Network;Geography:Education;Science;Geography;GPS:g" \
118 data/gpsdrive.desktop || die "sed failed"
119
120 epatch "${FILESDIR}"/gpsdrive-2.11_DefineOptions_gpsd.patch
121 }
122
123 src_configure() {
124 cat >> cmake/Modules/DefineProjectDefaults.cmake <<- _EOF_
125
126 # set policy for new linker paths
127 cmake_policy(SET CMP0003 NEW) # or cmake_policy(VERSION 2.6)
128 _EOF_
129
130 local mycmakeargs="${mycmakeargs}
131 $(cmake-utils_use_with scripts SCRIPTS)
132 $(cmake-utils_use_with mapnik MAPNIK)
133 $(cmake-utils_use_with mapnik POSTGIS)
134 $(cmake-utils_use_with kismet KISMET)
135 $(cmake-utils_use_with dbus DBUS)
136 $(cmake-utils_use_with libgda GDA3)
137 $(cmake-utils_use_with speech SPEECH)
138 $(cmake-utils_use_with gdal GDAL)"
139 cmake-utils_src_configure
140 }
141
142 src_install() {
143 cmake-utils_src_install
144 dodoc AUTHORS ChangeLog README \
145 Documentation/{CREDITS.i18n,FAQ.gpsdrive,FAQ.gpsdrive.fr,LEEME} \
146 Documentation/{LISEZMOI,NMEA.txt,LISEZMOI.kismet,TODO} \
147 Documentation/README.{Bluetooth,lib_map,nasamaps,tracks,kismet}
148 if use mapnik ; then
149 dodoc Documentation/install-mapnik-osm.txt
150 else
151 rm -f "${D}"usr/bin/gpsdrive_mapnik_gentiles.py
152 rm -f "${D}"usr/share/gpsdrive/osm-template.xml
153 fi
154 if use scripts ; then
155 dodoc Documentation/README.gpspoint2gspdrive
156 if ! use gdal ; then
157 rm -f "${D}"usr/bin/{gdal_slice,nasaconv}.sh
158 fi
159 else
160 rm -f "${D}"usr/share/man/man1/gpsd_nmea.sh.1
161 fi
162 }
163
164 pkg_postinst() {
165 fdo-mime_desktop_database_update
166 elog
167 elog "Be sure to see the README files in /usr/share/doc/${PF}"
168 elog "for information on using Kismet with gpsdrive."
169 elog
170 if use mapnik ; then
171 elog "Using mapnik to render online maps requires you to load"
172 elog "data into the postgis database. Follow the instructions"
173 elog "on http://wiki.openstreetmap.org/index.php/Mapnik"
174 fi
175 elog
176 elog "This version also now depends on the gpsd package, and"
177 elog "specific devices are supported there. Start gpsd first,"
178 elog "otherwise gpsdrive will only run in simulation mode (which"
179 elog "is handy for downloading maps for another location, but"
180 elog "not much else)."
181 elog
182 elog "openstreetmap-icons now installs to a more appropriate"
183 elog "location, so if you have trouble starting gpsdrive, you"
184 elog "should probably update your ~/.gpsdrive/gpsdriverc file"
185 elog "and change the path to the geoinfofile to reflect this:"
186 elog " geoinfofile = /usr/share/osm/geoinfo.db"
187 elog
188 }
189
190 pkg_postrm() {
191 fdo-mime_desktop_database_update
192 }