/[gentoo-x86]/app-misc/roadnav/roadnav-0.19.ebuild
Gentoo

Contents of /app-misc/roadnav/roadnav-0.19.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Feb 7 09:08:51 2010 UTC (3 years, 3 months ago) by dirtyepic
Branch: MAIN
Changes since 1.2: +2 -3 lines
Remove deprecated use of 'need-wxwidgets gtk2'.
(Portage version: 2.2_rc62/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-misc/roadnav/roadnav-0.19.ebuild,v 1.2 2010/01/30 06:06:16 dirtyepic Exp $
4
5 EAPI=2
6 WX_GTK_VER=2.8
7
8 inherit eutils wxwidgets
9
10 DESCRIPTION="Roadnav is a street map application with routing and GPS support"
11 HOMEPAGE="http://roadnav.sourceforge.net"
12 SRC_URI="mirror://sourceforge/roadnav/${P}.tar.gz"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="~x86 ~amd64"
17 IUSE="gps festival flite openstreetmap scripting"
18
19 DEPEND="x11-libs/wxGTK:2.8[X]
20 ~dev-libs/libroadnav-${PV}
21 festival? ( app-accessibility/festival )
22 flite? ( app-accessibility/flite )
23 gps? ( sci-geosciences/gpsd )"
24
25 RDEPEND="${DEPEND}"
26
27 src_prepare() {
28 epatch "${FILESDIR}"/${P}-gcc45.patch
29 }
30
31 src_configure() {
32 econf \
33 $(use_enable festival) \
34 $(use_enable flite) \
35 $(use_enable gps gpsd) \
36 $(use_enable openstreetmap) \
37 $(use_enable scripting) \
38 --with-wx-config=${WX_CONFIG} \
39 || die "econf failed"
40 }
41
42 src_install() {
43 emake DESTDIR="${D}" install || die "install failed"
44
45 # generic or empty
46 for f in NEWS COPYING INSTALL; do
47 rm -f "${D}"/usr/share/doc/${PN}/${f}
48 done
49
50 # --docdir is broken and hardcoded to ${PN}
51 mv "${D}"/usr/share/doc/${PN} "${D}"/usr/share/doc/${P}
52
53 insinto /usr/share/applications
54 doins "${S}"/roadnav.desktop
55 }
56
57 pkg_postinst() {
58 echo
59 elog "After upgrading to ${P} you will need to recompile your maps."
60 echo
61 }

  ViewVC Help
Powered by ViewVC 1.1.13