/[gentoo-x86]/app-misc/gpsdrive/gpsdrive-2.09-r1.ebuild
Gentoo

Contents of /app-misc/gpsdrive/gpsdrive-2.09-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Fri Jun 17 09:22:22 2011 UTC (3 years, 6 months ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Fix building with gpsd-2.96. Fixes bug #369005

(Portage version: 2.2.0_alpha38/cvs/Linux x86_64)

1 # Copyright 1999-2011 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.09-r1.ebuild,v 1.4 2011/03/30 11:08:48 angelos Exp $
4
5 WANT_AUTOMAKE=1.7
6 WANT_AUTOCONF=2.5
7
8 EAPI=1
9 inherit autotools
10
11 DESCRIPTION="GPS navigation system with NMEA and Garmin support, zoomable map display, waypoints, etc."
12 HOMEPAGE="http://www.gpsdrive.de/"
13 SRC_URI="${HOMEPAGE}/gpsdrive.tar/${P}.tar.gz"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="~amd64 ~ppc ~x86"
18 IUSE="garmin mysql"
19
20 RDEPEND=">=x11-libs/gtk+-2.8.12:2
21 >=dev-libs/libpcre-4.2
22 mysql? ( dev-db/mysql )"
23 DEPEND="${RDEPEND}
24 dev-util/pkgconfig
25 sys-devel/gettext"
26
27 src_unpack() {
28 unpack ${A}
29 cd "${S}"
30
31 epatch "${FILESDIR}"/${P}-configure.patch
32 sed -i -e "s:^EXTRA_DIST.*$::" Makefile.am \
33 -e "s:^pkgdata_DATA.*$::" Makefile.am
34
35 eautoreconf
36 }
37
38 src_compile() {
39 econf \
40 --enable-shared --enable-static $(use_enable garmin) \
41 || die "econf failed"
42
43 emake || die "emake failed"
44 }
45
46 src_install() {
47 emake DESTDIR="${D}" install || die "emake install failed"
48 dodoc AUTHORS create.sql CREDITS Changelog FAQ* GPS-receivers NMEA.txt \
49 README* TODO wp2sql
50 }
51
52 pkg_postinst() {
53 if use mysql; then
54 echo -e "\n"
55 elog "Be sure to see the README.SQL file in /usr/share/doc/${PF}"
56 elog "for information on using MySQL with gpsdrive.\n"
57 fi
58 }

  ViewVC Help
Powered by ViewVC 1.1.20