/[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.5 - (show annotations) (download)
Mon Nov 16 09:27:25 2009 UTC (4 years, 10 months ago) by nerdboy
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Updated depends in latest and removed unecessary rev (see bug #293065).
(Portage version: 2.2_rc47/cvs/Linux 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.4 2008/12/07 20:38:20 nerdboy 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 cmake-utils_src_configure
70 cmake-utils_src_make -j1
71 }
72
73 src_install() {
74 cmake-utils_src_install
75 dodoc AUTHORS ChangeLog NEWS README
76 newdoc data/mysql/my.cnf my.cnf.example
77 if use mapnik ; then
78 dodoc Documentation/install-mapnik-osm.txt
79 else
80 rm -f "${D}"usr/bin/{gpsdrive_mapnik_gentiles.py,gpsdrive-update-mapnik-poitypes.pl}
81 fi
82 use doc && dodoc \
83 Documentation/{FAQ.gpsdrive,CREDITS,GPS-receivers,LEEME,NMEA.txt,TODO,README*}
84 }
85
86 pkg_postinst() {
87 fdo-mime_desktop_database_update
88 elog
89 elog "Be sure to see the README files in /usr/share/doc/${PF}"
90 elog "for information on using Kismet with gpsdrive. The MySQL"
91 elog "config is installed as an example, but using it with"
92 elog "gpsdrive is up to you. Additional scripts are still"
93 elog "shipped in the source package."
94 elog
95 elog "This version also now depends on the gpsd package, and"
96 elog "specific devices are supported there. Start gpsd first,"
97 elog "otherwise gpsdrive will only run in simulation mode (which"
98 elog "is handy for downloading maps for another location, but"
99 elog "not much else)."
100 elog
101 }
102
103 pkg_postrm() {
104 fdo-mime_desktop_database_update
105 }

  ViewVC Help
Powered by ViewVC 1.1.20