/[gentoo-x86]/sci-geosciences/gpsd/gpsd-2.96-r1.ebuild
Gentoo

Contents of /sci-geosciences/gpsd/gpsd-2.96-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sat Mar 2 23:21:19 2013 UTC (2 months, 2 weeks ago) by hwoarang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +3 -3 lines
Move Qt dependencies to the new category

(Portage version: 2.1.11.52/cvs/Linux x86_64, signed Manifest commit with key C2BA7F3C!)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/gpsd-2.96-r1.ebuild,v 1.4 2012/08/12 08:19:50 ssuominen Exp $
4
5 EAPI=3
6
7 PYTHON_DEPEND="2:2.6"
8
9 inherit python base autotools user
10
11 DESCRIPTION="GPS daemon and library to support USB/serial GPS devices and various GPS/mapping clients."
12 HOMEPAGE="http://gpsd.berlios.de/"
13 SRC_URI="mirror://berlios/gpsd/${P}bis.tar.gz"
14
15 LICENSE="BSD"
16 SLOT="0"
17 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
18
19 GPSD_PROTOCOLS="ashtech aivdm clientdebug earthmate evermore fv18 garmin
20 garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver
21 oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip
22 tripmate tnt ubx"
23 for protocol in ${GPSD_PROTOCOLS}; do
24 IUSE_GPSD_PROTOCOLS+=" gpsd_protocols_${protocol}"
25 done
26
27 IUSE="${IUSE_GPSD_PROTOCOLS} dbus ipv6 ntp qt4 test udev"
28
29 # those harddeps are de-facto automagicall
30 RDEPEND="
31 dev-python/pygtk:2
32 sys-libs/ncurses
33 virtual/libusb:1
34 dbus? (
35 sys-apps/dbus
36 dev-libs/dbus-glib
37 )
38 ntp? ( net-misc/ntp )
39 qt4? ( dev-qt/qtgui:4 )"
40
41 DEPEND="${RDEPEND}
42 app-text/xmlto
43 =app-text/docbook-xml-dtd-4.1*
44 test? ( sys-devel/bc )"
45
46 PATCHES=(
47 "${FILESDIR}/2.95-disable-strip.patch"
48 "${FILESDIR}/${PV}-fix-ldflags.patch"
49 "${FILESDIR}/${PV}-fix-tests.patch"
50 "${FILESDIR}/${PV}-pkgconfig.patch"
51 )
52
53 pkg_setup() {
54 python_set_active_version 2
55
56 # Run the gpsd daemon as gpsd and group uucp
57 enewuser gpsd -1 -1 -1 "uucp"
58 }
59
60 src_prepare() {
61 base_src_prepare
62 eautoreconf
63 }
64
65 src_configure() {
66 local myopts
67
68 # enable specified protocols
69 for protocol in ${GPSD_PROTOCOLS}; do
70 myopts+=" $(use_enable gpsd_protocols_${protocol} ${protocol})"
71 done
72
73 if ! use qt4 ; then
74 myopts+=" --disable-libQgpsmm --disable-libgpsmm"
75 fi
76
77 # --disable-bluetooth: considered experimental -> disable
78 # Hack to make it not generate docs on the fly; xmlto is
79 # needed for man pages (xsltproc is only needed for web pages)
80 WITH_XMLTO=yes WITH_XSLTPROC=no econf \
81 --disable-dependency-tracking \
82 --disable-bluetooth \
83 --disable-static \
84 --enable-gpsd-user=gpsd \
85 --enable-gpsd-group=uucp \
86 $(use_enable dbus) \
87 $(use_enable ipv6) \
88 $(use_enable ntp ntpshm) \
89 $(use_enable ntp pps) \
90 ${myopts}
91 }
92
93 src_install() {
94 # no it can't be done using emake cause it is non-compliant
95 make DESTDIR="${D}" install || die
96
97 if use udev ; then
98 insinto /lib/udev/rules.d/
99 newins gpsd.rules 25-gpsd.rules
100 exeinto /lib/udev/
101 doexe gpsd.hotplug{,.wrapper}
102 fi
103
104 # needs this header for libQgpsmm
105 if use qt4 ; then
106 insinto /usr/include
107 doins libQgpsmm/libQgpsmm_global.h
108 fi
109
110 # no need for .la files here
111 find "${D}" -type f -name '*.la' -exec rm -f '{}' +
112
113 newconfd "${FILESDIR}"/gpsd.conf-2 gpsd || die
114 newinitd "${FILESDIR}"/gpsd.init-2 gpsd || die
115 }

  ViewVC Help
Powered by ViewVC 1.1.13