summaryrefslogtreecommitdiff
blob: bce91d1b5737b06935e3f3644bbab32e20a64a6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="A utility to transfer tracks, routes and waypoints to and from garmin GPS devices."
HOMEPAGE="http://pc12-c714.uibk.ac.at/gpspoint/"
SRC_URI="http://pc12-c714.uibk.ac.at/gpspoint/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="dev-util/dialog"
RDEPEND="${DEPEND}"

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}/${P}-gcc41.patch"
}

src_install() {
	make DESTDIR="${D}" install || die "installation failed"
	dodoc AUTHORS NEWS README TODO
}

pkg_postinst() {
	elog
	elog "Be sure and set the GPSPORT environment variable in your shell"
	elog "or in /etc/profile.env if your gps is connected to a serial port"
	elog "other than /dev/ttyS0 (COM1)."
	elog "Alternatively you can make a link from /dev/gps to e.g. /dev/ttyS0."
	elog "gpspoints needs rw access on that device to work properly."
	elog
}