Gentoo Archives: gentoo-commits

From: "Steve Arnold (nerdboy)" <nerdboy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-geosciences/gpsd: metadata.xml ChangeLog gpsd-2.38.ebuild
Date: Mon, 23 Mar 2009 03:25:42
Message-Id: E1LlanD-0006ei-S4@stork.gentoo.org
1 nerdboy 09/03/23 03:25:39
2
3 Modified: metadata.xml ChangeLog
4 Added: gpsd-2.38.ebuild
5 Log:
6 Updated new version with less hacky work-arounds and updated USE flags.
7 (Portage version: 2.2_rc25/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.4 sci-geosciences/gpsd/metadata.xml
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/gpsd/metadata.xml?rev=1.4&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/gpsd/metadata.xml?rev=1.4&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/gpsd/metadata.xml?r1=1.3&r2=1.4
15
16 Index: metadata.xml
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/metadata.xml,v
19 retrieving revision 1.3
20 retrieving revision 1.4
21 diff -u -r1.3 -r1.4
22 --- metadata.xml 6 Aug 2008 17:56:52 -0000 1.3
23 +++ metadata.xml 23 Mar 2009 03:25:39 -0000 1.4
24 @@ -6,13 +6,17 @@
25 <email>nerdboy@g.o</email>
26 <name>Steve Arnold</name>
27 </maintainer>
28 -<longdescription>Unbundled GPS daemon and library to support USB/serial GPS devices and various GPS/mapping clients, such as GPSDrive, kismet, and pygps.
29 +<longdescription>Unbundled GPS daemon and library to support USB and serial
30 + GPS devices and various GPS/mapping clients, such as GPSDrive, kismet, and
31 + pygps.
32 </longdescription>
33 <use>
34 + <flag name='garmin'>Enable support for Garmin simple text protocol</flag>
35 <flag name='italk'>Enable iTalk protocol support</flag>
36 <flag name='itrax'>Enable iTrax hardware support</flag>
37 <flag name='ntp'>Enable <pkg>net-misc/ntp</pkg> shared memory interface
38 - for GPS time</flag>
39 - <flag name='tntc'>Enable True North Technologies support</flag>
40 + and PPS kernel support for GPS time</flag>
41 + <flag name='ocean'>Enable OceanServer support</flag>
42 + <flag name='tntc'>Enable True North Technologies digital compass support</flag>
43 </use>
44 </pkgmetadata>
45
46
47
48 1.37 sci-geosciences/gpsd/ChangeLog
49
50 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/gpsd/ChangeLog?rev=1.37&view=markup
51 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/gpsd/ChangeLog?rev=1.37&content-type=text/plain
52 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/gpsd/ChangeLog?r1=1.36&r2=1.37
53
54 Index: ChangeLog
55 ===================================================================
56 RCS file: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/ChangeLog,v
57 retrieving revision 1.36
58 retrieving revision 1.37
59 diff -u -r1.36 -r1.37
60 --- ChangeLog 21 Dec 2008 17:56:11 -0000 1.36
61 +++ ChangeLog 23 Mar 2009 03:25:39 -0000 1.37
62 @@ -1,6 +1,14 @@
63 # ChangeLog for sci-geosciences/gpsd
64 -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
65 -# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/ChangeLog,v 1.36 2008/12/21 17:56:11 nerdboy Exp $
66 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
67 +# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/ChangeLog,v 1.37 2009/03/23 03:25:39 nerdboy Exp $
68 +
69 +*gpsd-2.38 (23 Mar 2009)
70 +
71 + 23 Mar 2009; Steve Arnold <nerdboy@g.o> metadata.xml,
72 + +gpsd-2.38.ebuild:
73 + Updated new version with less hacky work-arounds and updated USE flags.
74 + Everything should be linked and instaleld correctly now (see bugs #250757
75 + and #246757).
76
77 21 Dec 2008; Steve Arnold <nerdboy@g.o> gpsd-2.36.ebuild,
78 gpsd-2.37.ebuild:
79
80
81
82 1.1 sci-geosciences/gpsd/gpsd-2.38.ebuild
83
84 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/gpsd/gpsd-2.38.ebuild?rev=1.1&view=markup
85 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/gpsd/gpsd-2.38.ebuild?rev=1.1&content-type=text/plain
86
87 Index: gpsd-2.38.ebuild
88 ===================================================================
89 # Copyright 1999-2009 Gentoo Foundation
90 # Distributed under the terms of the GNU General Public License v2
91 # $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/gpsd-2.38.ebuild,v 1.1 2009/03/23 03:25:39 nerdboy Exp $
92
93 inherit autotools eutils distutils flag-o-matic
94
95 DESCRIPTION="GPS daemon and library to support USB/serial GPS devices and various GPS/mapping clients."
96 HOMEPAGE="http://gpsd.berlios.de/"
97 SRC_URI="mirror://berlios/gpsd/${P}.tar.gz"
98
99 LICENSE="BSD"
100 SLOT="0"
101 KEYWORDS="~arm ~amd64 ~ppc ~ppc64 ~sparc ~x86"
102
103 IUSE="dbus garmin minimal ntp ocean python tntc usb X"
104
105 RDEPEND="X? (
106 x11-libs/libXmu
107 x11-libs/libXext
108 x11-libs/libXp
109 x11-libs/libX11
110 x11-libs/libXt
111 x11-libs/libSM
112 x11-libs/libICE
113 x11-libs/libXpm
114 x11-libs/libXaw
115 )
116 python? ( dev-lang/python )
117
118 dbus? ( >=sys-apps/dbus-0.94
119 >=dev-libs/glib-2.6
120 dev-libs/dbus-glib )
121 ntp? ( net-misc/ntp )
122 usb? ( virtual/dev-manager )"
123
124 DEPEND="${RDEPEND}
125 X? (
126 x11-proto/xproto
127 x11-proto/xextproto
128 )
129 !minimal? (
130 dev-libs/libxslt
131 sys-libs/ncurses
132 )"
133
134 src_unpack() {
135 unpack ${A}
136 cd "${S}"
137 # add -lm to setup.py again (see bug #250757)
138 sed -i \
139 -e "s:, gpspacket_sources:, gpspacket_sources, libraries=['m']:g" \
140 -e "s:geoid.c\"]:geoid.c\"], libraries=['m']:g" \
141 setup.py || die "sed 1 failed"
142 # fix Garmin text struct
143 sed -i -e "s:RTCM2_PACKET;:RTCM2_PACKET,:g" \
144 drivers.c || die "sed 2 failed"
145 # add missing include file (see bug #162361)
146 sed -i -e "s:gps.h libgpsmm.h:gps.h libgpsmm.h gpsd_config.h:g" \
147 Makefile.am || die "sed 3 failed"
148
149 eautoreconf
150 }
151
152 src_compile() {
153
154 local my_conf="--enable-shared --with-pic --enable-static \
155 --disable-fast-install"
156 # --enable-superstar2 is missing a header file
157
158 use python && distutils_python_version
159
160 if use ntp; then
161 my_conf="${my_conf} --enable-ntpshm --enable-pps"
162 else
163 my_conf="${my_conf} --disable-ntpshm --disable-pps"
164 fi
165
166 if use minimal; then
167 local max_clients="5"
168 local max_devices="2"
169 if ! use ntp; then
170 my_conf="${my_conf} --disable-pps --disable-ntpshm"
171 fi
172 my_conf="${my_conf} --enable-squelch --without-x \
173 --enable-max-devices=${max_devices} \
174 --enable-max-clients=${max_clients}"
175
176 WITH_XSLTPROC=no WITH_XMLTO=no econf ${my_conf} \
177 $(use_enable dbus) $(use_enable ocean oceanserver) \
178 $(use_enable tntc tnt) $(use_enable python) \
179 $(use_enable garmin garmintxt) || die "econf failed"
180 else
181 econf ${my_conf} $(use_enable dbus) $(use_enable tntc tnt) \
182 $(use_enable ocean oceanserver) $(use_enable python) \
183 $(use_enable garmin garmintxt) $(use_with X x) \
184 || die "econf failed"
185 fi
186
187 # still needs an explicit linkage with the math lib (bug #250757)
188 append-ldflags -Wl,-z,-defs -Wl,--no-undefined
189
190 emake || die "emake failed"
191 }
192
193 src_install() {
194
195 make DESTDIR="${D}" install || die "make install failed"
196
197 if use usb ; then
198 insinto /etc/hotplug/usb
199 doins gpsd.usermap
200 exeinto /etc/hotplug/usb
201 doexe gpsd.hotplug
202 insinto /etc/udev/rules.d
203 doins "${FILESDIR}"/99-gpsd-usb.rules
204 keepdir /var/run/usb # needed for REMOVER
205 else
206 newconfd "${FILESDIR}"/gpsd.conf gpsd
207 newinitd "${FILESDIR}"/gpsd.init gpsd
208 fi
209
210 if use X && ! use minimal ; then
211 insinto /etc/X11/app-defaults
212 newins xgps.ad Xgps
213 newins xgpsspeed.ad Xgpsspeed
214 else
215 rm "${D}usr/share/man/man1/xgpsspeed.1.bz2" \
216 "${D}usr/share/man/man1/xgps.1.bz2"
217 fi
218
219 use python && distutils_src_install
220
221 dodoc INSTALL README TODO
222
223 # add missing dgpsip-servers and capabilities files
224 insinto /usr/share/${PN}
225 doins dgpsip-servers gpscap.ini
226
227 if use minimal; then
228 doman gpsctl.1 sirfmon.1 gpsd.8 gps.1 cgps.1 cgpxlogger.1 gpspipe.1
229 use python && doman gpsprof.1
230 else
231 diropts "-m0644"
232 dobin logextract
233 use python && dobin striplog
234 fi
235 }
236
237 pkg_postinst() {
238 elog ""
239 elog "This version of gpsd has broken support for the SuperStarII"
240 elog "chipset which is currently disabled."
241 elog ""
242 elog "Other than the above, all default devices are enabled, and all"
243 elog "optional devices and formats are controlled via USE flags."
244 elog ""
245 elog "Recent versions of udev (>=udev-115 or so) should have correct"
246 elog "usb device detection and startup of gpsd (ie, without hotplug)."
247 elog ""
248 elog "Certain GPS devices also require the corresponding kernel options"
249 elog "to be enabled, such as USB_SERIAL_GARMIN, or a USB serial driver"
250 elog "for an adapter such as those that come with Deluo GPS units (eg,"
251 elog "USB_SERIAL_PL2303). Straight serial devices should always work,"
252 elog "even without udev/hotplug support."
253 elog ""
254 elog "Note: the supplied gpsd udev rules are now device-specific, so"
255 elog "if your device isn't detected correctly, please use lsusb or"
256 elog "another suitable tool to determine the proper device IDs and"
257 elog "use the commented rules to fill in the blanks for your device."
258 elog ""
259 elog "Please see this post about the new capabilities database:"
260 elog ""
261 elog "http://lists.berlios.de/pipermail/gpsd-dev/2009-January/006333.html"
262 elog ""
263 elog "on current hardware, adding new hardware, etc. Read the above"
264 elog "and the INSTALL doc for more information on supported hardware,"
265 elog "and make sure udev has the right group permissions set on the"
266 elog "devices if using USB (it should Do The Right Thing (TM))..."
267 elog ""
268 }