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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Oct 23 04:46:57 2008 UTC (5 years, 5 months ago) by nerdboy
Branch: MAIN
Changes since 1.2: +10 -6 lines
Updated with fix for bug #238959 and mysql example config
(Portage version: 2.2_rc12/cvs/Linux 2.6.26.5 x86_64)

1 # Copyright 1999-2008 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_pre5.ebuild,v 1.2 2008/09/28 22:39:56 mr_bones_ Exp $
4
5 inherit cmake-utils eutils fdo-mime
6
7 DESCRIPTION="GPS navigation system with NMEA and Garmin support, zoomable map display, waypoints, etc."
8 HOMEPAGE="http://www.gpsdrive.de/"
9 SRC_URI="${HOMEPAGE}/packages/${P/_/}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13
14 S=${WORKDIR}/${P/_/}
15
16 KEYWORDS="~amd64 ~ppc ~x86"
17 # submit bug for ppc64
18
19 IUSE="dbus debug doc gdal mapnik scripts"
20
21 COMMON_DEP=">=x11-libs/gtk+-2.8.12
22 >=media-libs/libart_lgpl-2.3.17
23 >=media-libs/fontconfig-2.2.3
24 >=x11-libs/libXcursor-1.1.2
25 >=dev-libs/atk-1.10.3
26 >=dev-libs/libpcre-4.2
27 >=dev-libs/boost-1.33.1
28 >=gnome-extra/libgda-3.0.1
29 >=x11-libs/pango-1.10.1
30 >=dev-libs/glib-2.8.5
31 >=x11-libs/cairo-1.0.2
32 dbus? ( sys-apps/dbus )
33 mapnik? ( >=sci-geosciences/mapnik-0.5 )
34 gdal? ( sci-libs/gdal )"
35
36 DEPEND="${COMMON_DEP}
37 >=dev-util/cmake-2.4.4
38 sys-devel/gettext
39 dev-util/pkgconfig"
40
41 RDEPEND="${COMMON_DEP}
42 dev-perl/libwww-perl
43 dev-perl/DBI
44 sci-geosciences/gpsd
45 media-fonts/dejavu"
46
47 src_unpack() {
48 unpack ${A}
49 cd "${S}"
50 # The utils won't build without some extra functions that
51 # aren't implemented yet AFAICT; temporarily disabled.
52 epatch "${FILESDIR}"/${PN}-drawmarkers-remove.patch
53 # Update mapnik font path...
54 use mapnik && ( sed -i -e "s:truetype/ttf-dejavu:dejavu:g" \
55 tests/{gpsdriverc,gpsdriverc-in,gpsdriverc-pre} \
56 src/gpsdrive_config.c || die "sed failed" )
57 # Fix desktop file...
58 sed -i -e "s:gpsicon:/usr/share/gpsdrive/pixmaps/gpsicon.png:g" \
59 -e "s:Graphics;Network;Geography:Application;Geography;GPS:g" \
60 data/gpsdrive.desktop || die "sed failed"
61 }
62
63 src_compile() {
64 local mycmakeargs="${mycmakeargs}
65 $(cmake-utils_use_with scripts SCRIPTS)
66 $(cmake-utils_use_with mapnik MAPNIK)
67 $(cmake-utils_use_with dbus DBUS)
68 $(cmake-utils_use_with gdal GDAL)"
69 MAKEOPTS="-j1" cmake-utils_src_compile
70 }
71
72 src_install() {
73 cmake-utils_src_install
74 dodoc AUTHORS Changelog NEWS README
75 newdoc data/mysql/my.cnf my.cnf.example
76 if use mapnik ; then
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
81 use doc && dodoc \
82 Documentation/{FAQ.gpsdrive,CREDITS,GPS-receivers,LEEME,NMEA.txt,TODO,README*}
83 }
84
85 pkg_postinst() {
86 fdo-mime_desktop_database_update
87 elog
88 elog "Be sure to see the README files in /usr/share/doc/${PF}"
89 elog "for information on using Kismet with gpsdrive. The MySQL"
90 elog "config is installed as an example, but using it with"
91 elog "gpsdrive is up to you. Additional scripts are still"
92 elog "shipped in the source package."
93 elog
94 elog "This version also now depends on the gpsd package, and"
95 elog "specific devices are supported there. Start gpsd first,"
96 elog "otherwise gpsdrive will only run in simulation mode (which"
97 elog "is handy for downloading maps for another location, but"
98 elog "not much else)."
99 elog
100 }
101
102 pkg_postrm() {
103 fdo-mime_desktop_database_update
104 }

  ViewVC Help
Powered by ViewVC 1.1.20