blob: dcf218b469000255658c3d7f1fec39d28853ad7d (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/gpsd-2.95.ebuild,v 1.4 2010/10/18 09:03:11 nerdboy Exp $
EAPI=3
PYTHON_DEPEND="2:2.6"
inherit python base autotools
DESCRIPTION="GPS daemon and library to support USB/serial GPS devices and various GPS/mapping clients."
HOMEPAGE="http://gpsd.berlios.de/"
SRC_URI="mirror://berlios/gpsd/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
GPSD_PROTOCOLS="ashtech aivdm clientdebug earthmate evermore fv18 garmin
garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver
oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip
tripmate tnt ubx"
for protocol in ${GPSD_PROTOCOLS}; do
IUSE_GPSD_PROTOCOLS+=" gpsd_protocols_${protocol}"
done
IUSE="${IUSE_GPSD_PROTOCOLS} dbus ipv6 ntp qt4"
# those harddeps are de-facto automagicall
RDEPEND="
dev-python/pygtk
sys-libs/ncurses
virtual/libusb:1
dbus? (
sys-apps/dbus
dev-libs/dbus-glib
)
ntp? ( net-misc/ntp )
qt4? ( x11-libs/qt-gui )
"
DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}/${PV}-disable-strip.patch"
"${FILESDIR}/${PV}-fix-ldflags.patch"
)
pkg_setup() {
python_set_active_version 2
# Run the gpsd daemon as gpsd and group uucp
enewuser gpsd -1 -1 -1 "uucp"
}
src_prepare() {
base_src_prepare
eautoreconf
}
src_configure() {
local myopts
# enable specified protocols
for protocol in ${GPSD_PROTOCOLS}; do
myopts+=" $(use_enable gpsd_protocols_${protocol} ${protocol})"
done
# --disable-bluetooth: considered experimental -> disable
# hack to make it not generate docs on the fly
WITH_XSLTPROC=no WITH_XMLTO=no \
econf \
--disable-dependency-tracking \
--disable-bluetooth \
--disable-static \
--enable-libgpsmm \
--enable-gpsd-user=gpsd \
--enable-gpsd-group=uucp \
$(use_enable dbus) \
$(use_enable ipv6) \
$(use_enable ntp ntpshm) \
$(use_enable ntp pps) \
$(use_enable qt4 libQgpsmm) \
${myopts}
}
src_install() {
# no it can't be done using emake cause it is non-compliant
make DESTDIR="${D}" install || die
# no need for .la files here
find "${D}" -type f -name '*.la' -exec rm -f '{}' +
newconfd "${FILESDIR}"/gpsd.conf-2 gpsd || die
newinitd "${FILESDIR}"/gpsd.init-2 gpsd || die
}
|