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

Diff of /app-misc/gpsdrive/gpsdrive-2.10_pre5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.2 Revision 1.3
1# Copyright 1999-2008 Gentoo Foundation 1# Copyright 1999-2008 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/app-misc/gpsdrive/Attic/gpsdrive-2.10_pre5.ebuild,v 1.2 2008/09/28 22:39:56 mr_bones_ Exp $ 3# $Header: /var/cvsroot/gentoo-x86/app-misc/gpsdrive/Attic/gpsdrive-2.10_pre5.ebuild,v 1.3 2008/10/23 04:46:57 nerdboy Exp $
4 4
5inherit cmake-utils eutils fdo-mime 5inherit cmake-utils eutils fdo-mime
6 6
7DESCRIPTION="GPS navigation system with NMEA and Garmin support, zoomable map display, waypoints, etc." 7DESCRIPTION="GPS navigation system with NMEA and Garmin support, zoomable map display, waypoints, etc."
8HOMEPAGE="http://www.gpsdrive.de/" 8HOMEPAGE="http://www.gpsdrive.de/"
49 cd "${S}" 49 cd "${S}"
50 # The utils won't build without some extra functions that 50 # The utils won't build without some extra functions that
51 # aren't implemented yet AFAICT; temporarily disabled. 51 # aren't implemented yet AFAICT; temporarily disabled.
52 epatch "${FILESDIR}"/${PN}-drawmarkers-remove.patch 52 epatch "${FILESDIR}"/${PN}-drawmarkers-remove.patch
53 # Update mapnik font path... 53 # Update mapnik font path...
54 use mapnik && sed -i -e "s:truetype/ttf-dejavu:dejavu:g" \ 54 use mapnik && ( sed -i -e "s:truetype/ttf-dejavu:dejavu:g" \
55 tests/{gpsdriverc,gpsdriverc-in,gpsdriverc-pre} \ 55 tests/{gpsdriverc,gpsdriverc-in,gpsdriverc-pre} \
56 src/gpsdrive_config.c || die "sed failed" 56 src/gpsdrive_config.c || die "sed failed" )
57 # Fix desktop file... 57 # Fix desktop file...
58 sed -i -e "s:gpsicon:/usr/share/gpsdrive/pixmaps/gpsicon.png:g" \ 58 sed -i -e "s:gpsicon:/usr/share/gpsdrive/pixmaps/gpsicon.png:g" \
59 -e "s:Graphics;Network;Geography:Application;Geography;GPS:g" \ 59 -e "s:Graphics;Network;Geography:Application;Geography;GPS:g" \
60 data/gpsdrive.desktop || die "sed failed" 60 data/gpsdrive.desktop || die "sed failed"
61} 61}
71 71
72src_install() { 72src_install() {
73 cmake-utils_src_install 73 cmake-utils_src_install
74 dodoc AUTHORS Changelog NEWS README 74 dodoc AUTHORS Changelog NEWS README
75 newdoc data/mysql/my.cnf my.cnf.example 75 newdoc data/mysql/my.cnf my.cnf.example
76 if use mapnik ; then
76 use mapnik && dodoc Documentation/install-mapnik-osm.txt 77 dodoc Documentation/install-mapnik-osm.txt
78 else
79 rm -f "${D}"usr/bin/{gpsdrive_mapnik_gentiles.py,gpsdrive-update-mapnik-poitypes.pl}
80 fi
77 use doc && dodoc \ 81 use doc && dodoc \
78 Documentation/{FAQ.gpsdrive,CREDITS,GPS-receivers,LEEME,NMEA.txt,TODO,README*} 82 Documentation/{FAQ.gpsdrive,CREDITS,GPS-receivers,LEEME,NMEA.txt,TODO,README*}
79} 83}
80 84
81pkg_postinst() { 85pkg_postinst() {
88 elog "shipped in the source package." 92 elog "shipped in the source package."
89 elog 93 elog
90 elog "This version also now depends on the gpsd package, and" 94 elog "This version also now depends on the gpsd package, and"
91 elog "specific devices are supported there. Start gpsd first," 95 elog "specific devices are supported there. Start gpsd first,"
92 elog "otherwise gpsdrive will only run in simulation mode (which" 96 elog "otherwise gpsdrive will only run in simulation mode (which"
93 elog "is sometimes handy for downloading maps for another" 97 elog "is handy for downloading maps for another location, but"
94 elog "location)." 98 elog "not much else)."
95 elog 99 elog
96} 100}
97 101
98pkg_postrm() { 102pkg_postrm() {
99 fdo-mime_desktop_database_update 103 fdo-mime_desktop_database_update

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20