Gentoo Archives: gentoo-commits

From: Amy Winston <amynka@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/gpsd/
Date: Mon, 29 Feb 2016 14:36:48
Message-Id: 1456756513.7fc35b205e210936f0828ab48b4e79f719624952.amynka@gentoo
1 commit: 7fc35b205e210936f0828ab48b4e79f719624952
2 Author: Amy Winston <amynka <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 29 14:34:32 2016 +0000
4 Commit: Amy Winston <amynka <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 29 14:35:13 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7fc35b20
7
8 sci-geosciences/gpsd: Drop old
9
10 Package-Manager: portage-2.2.26
11
12 sci-geosciences/gpsd/Manifest | 6 -
13 sci-geosciences/gpsd/gpsd-2.95-r1.ebuild | 109 ------------------
14 sci-geosciences/gpsd/gpsd-2.96-r1.ebuild | 117 --------------------
15 sci-geosciences/gpsd/gpsd-3.13.ebuild | 166 ----------------------------
16 sci-geosciences/gpsd/gpsd-3.6.ebuild | 163 ---------------------------
17 sci-geosciences/gpsd/gpsd-3.7.ebuild | 168 ----------------------------
18 sci-geosciences/gpsd/gpsd-3.8.ebuild | 184 -------------------------------
19 sci-geosciences/gpsd/gpsd-3.9.ebuild | 180 ------------------------------
20 8 files changed, 1093 deletions(-)
21
22 diff --git a/sci-geosciences/gpsd/Manifest b/sci-geosciences/gpsd/Manifest
23 index ecc11bc..502bd1c 100644
24 --- a/sci-geosciences/gpsd/Manifest
25 +++ b/sci-geosciences/gpsd/Manifest
26 @@ -1,10 +1,4 @@
27 -DIST gpsd-2.95.tar.gz 1385681 SHA256 832343a53921a8371efa540ba57c91dadedda445e571c1beb97c06539ef450ae SHA512 f48dd0a2942e39de0b1d38a8979e123edbd39de05e2786419433826dfbf9de579fcb9b2c179385bc84313817a4266fd76560253b4e67e2daf419618699abbf98 WHIRLPOOL e9da24e45efee327f8849a4f52e39ebd7d2ce06a0d7372a3b11baee68129e72be62bfd4a5b0ed181cae1b693722bd551ab1337fcdce9dbfc80a091df283329ac
28 -DIST gpsd-2.96bis.tar.gz 1554605 SHA256 c6d72565bc06b802c749e69808eb7c6ee165962dc17383971c9001b5e1763690 SHA512 a6ba88b3907293d13032bb623de321b36dfc3fec25502cafa22924c4d0ff187b46f192d27effa9b4214cba3de16dd3c7c0a0fc6d5ba411e2799acb8b3e832aa4 WHIRLPOOL 0fd1471e819759f055ec389d0236c7894f107062331325cb520d60c16431339eabc616019e96270ed54f9defc34a5ed45927977e6e62a16730a0b0decf6552ed
29 DIST gpsd-3.10.tar.gz 1566622 SHA256 706fc2c1cf3dfbf87c941f543381bccc9c4dc9f8240eec407dcbf2f70b854320 SHA512 fd452185a8a9f9b8dfb2a5c2d5b6410f795d56dc46a7c216d8fcd686e43c5555a5f0421434060e9bb7afa465bb8a45a1e358108c4de42300eeb972caa334d8b6 WHIRLPOOL 52aa2285eff48f72a3e554c40bdb2b521bc36e35680a928d7ee53f3b55578d8451a573f4c75dcadc905eba7c48b41b5a317704aaf17b9699b614595560011514
30 DIST gpsd-3.11.tar.gz 1579600 SHA256 ed66c6b6b1e2b4951de2c0b2399c22f77fe9f5927ef6b948dd8eb023ff53b7ee SHA512 bf600ea99635d415916c2a3043f56e61bda023ba320a15f33cd47b375c772dbec69aa941c4729914ccd6a868488cd6bd9f35d4067af9e353def743f45636e6f4 WHIRLPOOL 12a9fde832d611d129f48919d10c4a48f7da1e664d49844d4317e3b9511dee9810884f4b23036ebf576e7870b56091767a4f6c0237a8091643abb637642ee2b8
31 -DIST gpsd-3.13.tar.gz 1382857 SHA256 d30bbe31ef9f89d2c281197c64204bcff255883462318250f913444ae00874c1 SHA512 339e752ae6a06272082e8a4f97915001aeee4deecd956ace1be862f9e3734b7663407c4a6a41ac00e7de195771da55fb26b93ec152abd8251a0d7a13cb8ad51e WHIRLPOOL 94da0e11c7a0c33f3215f5de836f8739c394a03c561933abff9ce325e4238f4d85e29f664f592e7c09ba16d35e92b5e275a75090e5600a01d983fa81f12fa3af
32 DIST gpsd-3.15.tar.gz 1410534 SHA256 81c89e271ae112313e68655ab30d227bc38fe7841ffbff0f1860b12a9d7696ea SHA512 2be83cac52b5034bca44374cf7e17917270fe50495014f424d46a171bc77b58f9c5eb8ea38fe0cff9a28a6c2b6b8e5bf17a5a141eb9243962319a1ae9da2ea04 WHIRLPOOL 323dc3336372d318ade9549ad401fa588e9abd3d01add750892fa028bf8f6837342ba76f6f85ebf715329517d314f9fe63429460ea1a639000124437f761fb8c
33 -DIST gpsd-3.6.tar.gz 1449822 SHA256 53a078dd547a17c4eeb0529a6d6eb338dac217811caf9644a0194184219494cc SHA512 a31114f68e9481d68bfb45d90286181eb47083c58a1e1cfae78b73ead36b448050b97a0b31131a58197f32adba4eeb6f798f3c4e55e928536cd68648d5860e18 WHIRLPOOL ef4f569ed32cba0e6c39726dfd6636292f38f4fe45b95035b4c20fd03eb569d12f228b468ba00e35dfd5e3bf4eda84cf3506d418cc553b55b882fa4e15277350
34 -DIST gpsd-3.7.tar.gz 1460424 SHA256 7800c478ee9d7ca7a502b0f892828561b1fbf7bc69d9d38c447c82c3628302ac SHA512 fc6edad8694a62ead2018e78ba5f3033dcc960b89fea7fbc781493b951ff8a3024cfa56a18c96cca747a3394885cdb24e5fce358e8f6a1a17fd4a3248228937f WHIRLPOOL 592908b39f248e68ceb6d2a1b14fa62401388e674aa5cdc901aa8e7caaf6fe5da742cd77530ddb00c5789e2372fdb8a46af9d946af89d6e560457c4eaa5cd92f
35 -DIST gpsd-3.8.tar.gz 1516959 SHA256 5f9add9a378a3cd1c0f641e0def49fc3f14fb700c9fca573e07d17b3e5957c23 SHA512 9df968db33346852c9779ce4670d97c77f018c3254661cc709a30b693f1a10602f5f08eb1d2c19dab46747a6f88f9d8be7464d3ea854f3bfc760cc94c3b2e57a WHIRLPOOL 64feb051b2aa637d6da978221f84f046078c29f43f1b68429cd617fb773b8b539a34948e215f18b372050b9e50c0f9c68d22f2b9ec20207899bebb9048e30270
36 DIST gpsd-3.9.tar.gz 1518775 SHA256 d9b24be838b48db5e8eba66f74edf32d1982fe0fb018c9d9a7ad1ada9f189d5a SHA512 082524a7744da5212074123ab7920fe77bfa35f99cb12a900ad7b2718ea563803f988d09d7a063d08784d790c8c7e65503daefce4e6dd6bd1bc77bf580db638f WHIRLPOOL 1d3c70bfe5b4b8dec5dc4119287afb7ca4f426041f49c43b167b9e7f85c3995bfcb3bbf777cbe479ef353f1d485e54c891e732fd6871b6dbe9874d8d3c7fa6d1
37
38 diff --git a/sci-geosciences/gpsd/gpsd-2.95-r1.ebuild b/sci-geosciences/gpsd/gpsd-2.95-r1.ebuild
39 deleted file mode 100644
40 index e920f0d..0000000
41 --- a/sci-geosciences/gpsd/gpsd-2.95-r1.ebuild
42 +++ /dev/null
43 @@ -1,109 +0,0 @@
44 -# Copyright 1999-2014 Gentoo Foundation
45 -# Distributed under the terms of the GNU General Public License v2
46 -# $Id$
47 -
48 -EAPI=3
49 -
50 -PYTHON_DEPEND="2:2.6"
51 -
52 -inherit python autotools user eutils
53 -
54 -DESCRIPTION="GPS daemon and library to support USB/serial GPS devices and various GPS/mapping clients"
55 -HOMEPAGE="http://gpsd.berlios.de/"
56 -#SRC_URI="mirror://berlios/gpsd/${P}.tar.gz"
57 -SRC_URI="mirror://gentoo/${P}.tar.gz"
58 -
59 -LICENSE="BSD"
60 -SLOT="0"
61 -KEYWORDS="amd64 arm ppc ppc64 x86"
62 -
63 -GPSD_PROTOCOLS="ashtech aivdm clientdebug earthmate evermore fv18 garmin
64 - garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver
65 - oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip
66 - tripmate tnt ubx"
67 -for protocol in ${GPSD_PROTOCOLS}; do
68 - IUSE_GPSD_PROTOCOLS+=" gpsd_protocols_${protocol}"
69 -done
70 -
71 -IUSE="${IUSE_GPSD_PROTOCOLS} dbus ipv6 ntp qt4"
72 -
73 -# those harddeps are de-facto automagicall
74 -RDEPEND="
75 - dev-python/pygtk:2
76 - sys-libs/ncurses
77 - virtual/libusb:1
78 - dbus? (
79 - sys-apps/dbus
80 - dev-libs/dbus-glib
81 - )
82 - ntp? ( net-misc/ntp )
83 - qt4? ( dev-qt/qtgui:4 )"
84 -
85 -DEPEND="${RDEPEND}
86 - app-text/xmlto
87 - =app-text/docbook-xml-dtd-4.1*"
88 -
89 -PATCHES=(
90 - "${FILESDIR}/${PV}-disable-strip.patch"
91 - "${FILESDIR}/${PV}-fix-ldflags.patch"
92 -)
93 -
94 -pkg_setup() {
95 - python_set_active_version 2
96 -
97 - # Run the gpsd daemon as gpsd and group uucp
98 - enewuser gpsd -1 -1 -1 "uucp"
99 -}
100 -
101 -src_prepare() {
102 - epatch ${PATCHES[@]}
103 - epatch_user
104 - eautoreconf
105 -}
106 -
107 -src_configure() {
108 - local myopts
109 -
110 - # enable specified protocols
111 - for protocol in ${GPSD_PROTOCOLS}; do
112 - myopts+=" $(use_enable gpsd_protocols_${protocol} ${protocol})"
113 - done
114 -
115 - if ! use qt4 ; then
116 - myopts+=" --disable-libQgpsmm --disable-libgpsmm ${myopts}"
117 - fi
118 -
119 - # --disable-bluetooth: considered experimental -> disable
120 - # --enable-static is required for tests, see bug 355071
121 - # Hack to make it not generate docs on the fly; xmlto is
122 - # needed for man pages (xsltproc is only needed for web pages)
123 - econf WITH_XMLTO=yes WITH_XSLTPROC=no \
124 - --build=${CBUILD} \
125 - --disable-dependency-tracking \
126 - --disable-bluetooth \
127 - --enable-static \
128 - --enable-gpsd-user=gpsd \
129 - --enable-gpsd-group=uucp \
130 - $(use_enable dbus) \
131 - $(use_enable ipv6) \
132 - $(use_enable ntp ntpshm) \
133 - $(use_enable ntp pps) \
134 - ${myopts}
135 -}
136 -
137 -src_install() {
138 - # no it can't be done using emake cause it is non-compliant
139 - make DESTDIR="${D}" install || die
140 -
141 - # needs this header for libQgpsmm
142 - if use qt4 ; then
143 - insinto /usr/include
144 - doins libQgpsmm/libQgpsmm_global.h
145 - fi
146 -
147 - # no need for .la files here
148 - find "${D}" -type f -name '*.la' -exec rm -f '{}' +
149 -
150 - newconfd "${FILESDIR}"/gpsd.conf-2 gpsd || die
151 - newinitd "${FILESDIR}"/gpsd.init-2 gpsd || die
152 -}
153
154 diff --git a/sci-geosciences/gpsd/gpsd-2.96-r1.ebuild b/sci-geosciences/gpsd/gpsd-2.96-r1.ebuild
155 deleted file mode 100644
156 index d87b67e..0000000
157 --- a/sci-geosciences/gpsd/gpsd-2.96-r1.ebuild
158 +++ /dev/null
159 @@ -1,117 +0,0 @@
160 -# Copyright 1999-2014 Gentoo Foundation
161 -# Distributed under the terms of the GNU General Public License v2
162 -# $Id$
163 -
164 -EAPI=3
165 -
166 -PYTHON_DEPEND="2:2.6"
167 -
168 -inherit python autotools user eutils
169 -
170 -DESCRIPTION="GPS daemon and library to support USB/serial GPS devices and various GPS/mapping clients"
171 -HOMEPAGE="http://gpsd.berlios.de/"
172 -#SRC_URI="mirror://berlios/gpsd/${P}bis.tar.gz"
173 -SRC_URI="mirror://gentoo/${P}bis.tar.gz"
174 -
175 -LICENSE="BSD"
176 -SLOT="0"
177 -KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
178 -
179 -GPSD_PROTOCOLS="ashtech aivdm clientdebug earthmate evermore fv18 garmin
180 - garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver
181 - oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip
182 - tripmate tnt ubx"
183 -for protocol in ${GPSD_PROTOCOLS}; do
184 - IUSE_GPSD_PROTOCOLS+=" gpsd_protocols_${protocol}"
185 -done
186 -
187 -IUSE="${IUSE_GPSD_PROTOCOLS} dbus ipv6 ntp qt4 test udev"
188 -
189 -# those harddeps are de-facto automagicall
190 -RDEPEND="
191 - dev-python/pygtk:2
192 - sys-libs/ncurses
193 - virtual/libusb:1
194 - dbus? (
195 - sys-apps/dbus
196 - dev-libs/dbus-glib
197 - )
198 - ntp? ( net-misc/ntp )
199 - qt4? ( dev-qt/qtgui:4 )"
200 -
201 -DEPEND="${RDEPEND}
202 - app-text/xmlto
203 - =app-text/docbook-xml-dtd-4.1*
204 - test? ( sys-devel/bc )"
205 -
206 -PATCHES=(
207 - "${FILESDIR}/2.95-disable-strip.patch"
208 - "${FILESDIR}/${PV}-fix-ldflags.patch"
209 - "${FILESDIR}/${PV}-fix-tests.patch"
210 - "${FILESDIR}/${PV}-pkgconfig.patch"
211 -)
212 -
213 -pkg_setup() {
214 - python_set_active_version 2
215 -
216 - # Run the gpsd daemon as gpsd and group uucp
217 - enewuser gpsd -1 -1 -1 "uucp"
218 -}
219 -
220 -src_prepare() {
221 - epatch ${PATCHES[@]}
222 - epatch_user
223 - eautoreconf
224 -}
225 -
226 -src_configure() {
227 - local myopts
228 -
229 - # enable specified protocols
230 - for protocol in ${GPSD_PROTOCOLS}; do
231 - myopts+=" $(use_enable gpsd_protocols_${protocol} ${protocol})"
232 - done
233 -
234 - if ! use qt4 ; then
235 - myopts+=" --disable-libQgpsmm --disable-libgpsmm"
236 - fi
237 -
238 - # --disable-bluetooth: considered experimental -> disable
239 - # Hack to make it not generate docs on the fly; xmlto is
240 - # needed for man pages (xsltproc is only needed for web pages)
241 - WITH_XMLTO=yes WITH_XSLTPROC=no econf \
242 - --disable-dependency-tracking \
243 - --disable-bluetooth \
244 - --disable-static \
245 - --enable-gpsd-user=gpsd \
246 - --enable-gpsd-group=uucp \
247 - $(use_enable dbus) \
248 - $(use_enable ipv6) \
249 - $(use_enable ntp ntpshm) \
250 - $(use_enable ntp pps) \
251 - ${myopts}
252 -}
253 -
254 -src_install() {
255 - # no it can't be done using emake cause it is non-compliant
256 - make DESTDIR="${D}" install || die
257 -
258 - if use udev ; then
259 - insinto /lib/udev/rules.d/
260 - newins gpsd.rules 25-gpsd.rules
261 - exeinto /lib/udev/
262 - doexe gpsd.hotplug{,.wrapper}
263 - fi
264 -
265 - # needs this header for libQgpsmm
266 - if use qt4 ; then
267 - insinto /usr/include
268 - doins libQgpsmm/libQgpsmm_global.h
269 - fi
270 -
271 - # no need for .la files here
272 - find "${D}" -type f -name '*.la' -exec rm -f '{}' +
273 -
274 - newconfd "${FILESDIR}"/gpsd.conf-2 gpsd || die
275 - newinitd "${FILESDIR}"/gpsd.init-2 gpsd || die
276 -}
277
278 diff --git a/sci-geosciences/gpsd/gpsd-3.13.ebuild b/sci-geosciences/gpsd/gpsd-3.13.ebuild
279 deleted file mode 100644
280 index 94c09c3..0000000
281 --- a/sci-geosciences/gpsd/gpsd-3.13.ebuild
282 +++ /dev/null
283 @@ -1,166 +0,0 @@
284 -# Copyright 1999-2015 Gentoo Foundation
285 -# Distributed under the terms of the GNU General Public License v2
286 -# $Id$
287 -
288 -EAPI="5"
289 -
290 -DISTUTILS_OPTIONAL=1
291 -PYTHON_COMPAT=( python2_7 )
292 -SCONS_MIN_VERSION="1.2.1"
293 -
294 -inherit eutils udev user multilib distutils-r1 scons-utils toolchain-funcs
295 -
296 -if [[ ${PV} == "9999" ]] ; then
297 - EGIT_REPO_URI="git://git.savannah.nongnu.org/gpsd.git"
298 - inherit git-2
299 -else
300 - SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz"
301 - KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
302 -fi
303 -
304 -DESCRIPTION="GPS daemon and library to support USB/serial GPS devices and various GPS/mapping clients"
305 -HOMEPAGE="http://catb.org/gpsd/"
306 -
307 -LICENSE="BSD"
308 -SLOT="0"
309 -
310 -GPSD_PROTOCOLS=(
311 - aivdm ashtech earthmate evermore fury fv18 garmin garmintxt
312 - geostar gpsclock itrax mtk3301 navcom nmea0183 nmea2000 ntrip
313 - oceanserver oncore passthrough rtcm104v2 rtcm104v3 sirf superstar2
314 - tnt tripmate tsip ublox
315 -)
316 -IUSE_GPSD_PROTOCOLS=${GPSD_PROTOCOLS[@]/#/gpsd_protocols_}
317 -IUSE="${IUSE_GPSD_PROTOCOLS} bluetooth cxx debug dbus ipv6 latency_timing ncurses ntp python qt4 +shm +sockets static test udev usb X"
318 -REQUIRED_USE="X? ( python )
319 - gpsd_protocols_nmea2000? ( gpsd_protocols_aivdm )
320 - python? ( ${PYTHON_REQUIRED_USE} )"
321 -
322 -RDEPEND="X? ( dev-python/pygtk:2[${PYTHON_USEDEP}] )
323 - ncurses? ( sys-libs/ncurses )
324 - bluetooth? ( net-wireless/bluez )
325 - usb? ( virtual/libusb:1 )
326 - dbus? (
327 - sys-apps/dbus
328 - dev-libs/dbus-glib
329 - )
330 - ntp? ( || ( net-misc/ntp net-misc/chrony ) )
331 - qt4? ( dev-qt/qtgui:4 )
332 - python? ( ${PYTHON_DEPS} )"
333 -DEPEND="${RDEPEND}
334 - virtual/pkgconfig
335 - test? ( sys-devel/bc )"
336 -
337 -# xml packages are for man page generation
338 -if [[ ${PV} == "9999" ]] ; then
339 - DEPEND+="
340 - app-text/xmlto
341 - =app-text/docbook-xml-dtd-4.1*"
342 -fi
343 -
344 -src_prepare() {
345 - # Make sure our list matches the source.
346 - local src_protocols=$(echo $(
347 - sed -n '/# GPS protocols/,/# Time service/{s:#.*::;s:[(",]::g;p}' "${S}"/SConstruct | awk '{print $1}' | LC_ALL=C sort
348 - ) )
349 - if [[ ${src_protocols} != ${GPSD_PROTOCOLS[*]} ]] ; then
350 - eerror "Detected protocols: ${src_protocols}"
351 - eerror "Ebuild protocols: ${GPSD_PROTOCOLS[*]}"
352 - die "please sync ebuild & source"
353 - fi
354 -
355 - epatch "${FILESDIR}"/${PN}-3.8-ldflags.patch
356 - epatch "${FILESDIR}"/${PN}-3.11-rpath.patch
357 - epatch "${FILESDIR}"/${PN}-3.13-ntpshm.patch
358 -
359 - # Avoid useless -L paths to the install dir
360 - sed -i \
361 - -e 's:\<STAGING_PREFIX\>:SYSROOT:g' \
362 - SConstruct || die
363 -
364 - use python && distutils-r1_src_prepare
365 -}
366 -
367 -python_prepare_all() {
368 - python_export_best
369 - # Extract python info out of SConstruct so we can use saner distribute
370 - pyvar() { sed -n "/^ *$1 *=/s:.*= *::p" SConstruct ; }
371 - local pybins=$(pyvar python_progs | tail -1)
372 - local pysrcs=$(sed -n '/^ *python_extensions = {/,/}/{s:^ *::;s:os[.]sep:"/":g;p}' SConstruct)
373 - local packet=$("${PYTHON}" -c "${pysrcs}; print(python_extensions['gps/packet'])")
374 - local client=$("${PYTHON}" -c "${pysrcs}; print(python_extensions['gps/clienthelpers'])")
375 - sed \
376 - -e "s|@VERSION@|$(pyvar gpsd_version)|" \
377 - -e "s|@URL@|$(pyvar website)|" \
378 - -e "s|@EMAIL@|$(pyvar devmail)|" \
379 - -e "s|@SCRIPTS@|${pybins}|" \
380 - -e "s|@GPS_PACKET_SOURCES@|${packet}|" \
381 - -e "s|@GPS_CLIENT_SOURCES@|${client}|" \
382 - -e "s|@SCRIPTS@|${pybins}|" \
383 - "${FILESDIR}"/${PN}-3.3-setup.py > setup.py || die
384 - distutils-r1_python_prepare_all
385 -}
386 -
387 -src_configure() {
388 - myesconsargs=(
389 - prefix="${EPREFIX}/usr"
390 - libdir="\$prefix/$(get_libdir)"
391 - udevdir="$(get_udevdir)"
392 - chrpath=False
393 - gpsd_user=gpsd
394 - gpsd_group=uucp
395 - nostrip=True
396 - python=False
397 - manbuild=False
398 - shared=$(usex !static True False)
399 - $(use_scons bluetooth bluez)
400 - $(use_scons cxx libgpsmm)
401 - $(use_scons debug clientdebug)
402 - $(use_scons dbus dbus_export)
403 - $(use_scons ipv6)
404 - $(use_scons latency_timing timing)
405 - $(use_scons ncurses)
406 - $(use_scons ntp ntpshm)
407 - $(use_scons ntp pps)
408 - $(use_scons shm shm_export)
409 - $(use_scons sockets socket_export)
410 - $(use_scons qt4 libQgpsmm)
411 - $(use_scons usb)
412 - )
413 -
414 - # enable specified protocols
415 - local protocol
416 - for protocol in ${GPSD_PROTOCOLS[@]} ; do
417 - myesconsargs+=( $(use_scons gpsd_protocols_${protocol} ${protocol}) )
418 - done
419 -}
420 -
421 -src_compile() {
422 - export CHRPATH=
423 - tc-export CC CXX PKG_CONFIG
424 - export SHLINKFLAGS=${LDFLAGS} LINKFLAGS=${LDFLAGS}
425 - escons
426 -
427 - use python && distutils-r1_src_compile
428 -}
429 -
430 -src_install() {
431 - DESTDIR="${D}" escons install $(usex udev udev-install "")
432 -
433 - newconfd "${FILESDIR}"/gpsd.conf-2 gpsd
434 - newinitd "${FILESDIR}"/gpsd.init-2 gpsd
435 -
436 - if use python ; then
437 - distutils-r1_src_install
438 - # Delete all X related packages if user doesn't want them
439 - if ! use X ; then
440 - rm "${ED%/}"/usr/bin/xgps* || die
441 - fi
442 - fi
443 -}
444 -
445 -pkg_preinst() {
446 - # Run the gpsd daemon as gpsd and group uucp; create it here
447 - # as it doesn't seem to be needed during compile/install ...
448 - enewuser gpsd -1 -1 -1 "uucp"
449 -}
450
451 diff --git a/sci-geosciences/gpsd/gpsd-3.6.ebuild b/sci-geosciences/gpsd/gpsd-3.6.ebuild
452 deleted file mode 100644
453 index 2e3655e..0000000
454 --- a/sci-geosciences/gpsd/gpsd-3.6.ebuild
455 +++ /dev/null
456 @@ -1,163 +0,0 @@
457 -# Copyright 1999-2014 Gentoo Foundation
458 -# Distributed under the terms of the GNU General Public License v2
459 -# $Id$
460 -
461 -EAPI="4"
462 -
463 -PYTHON_DEPEND="python? 2:2.6"
464 -RESTRICT_PYTHON_ABIS="3.*"
465 -SUPPORT_PYTHON_ABIS="1"
466 -SCONS_MIN_VERSION="1.2.1"
467 -
468 -inherit eutils user multilib distutils scons-utils toolchain-funcs
469 -
470 -if [[ ${PV} == "9999" ]] ; then
471 - EGIT_REPO_URI="git://git.savannah.nongnu.org/gpsd.git"
472 - inherit git-2
473 -else
474 - SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz"
475 - KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
476 -fi
477 -
478 -DESCRIPTION="GPS daemon and library to support USB/serial GPS devices and various GPS/mapping clients"
479 -HOMEPAGE="http://catb.org/gpsd/"
480 -
481 -LICENSE="BSD"
482 -SLOT="0"
483 -
484 -GPSD_PROTOCOLS=(
485 - ashtech aivdm clientdebug earthmate evermore fv18 garmin
486 - garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver
487 - oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip
488 - tripmate tnt ubx
489 -)
490 -IUSE_GPSD_PROTOCOLS=${GPSD_PROTOCOLS[@]/#/gpsd_protocols_}
491 -IUSE="${IUSE_GPSD_PROTOCOLS} bluetooth cxx debug dbus ipv6 ncurses ntp python qt4 +shm +sockets test udev usb X"
492 -REQUIRED_USE="X? ( python )"
493 -
494 -RDEPEND="X? ( dev-python/pygtk:2 )
495 - ncurses? ( sys-libs/ncurses )
496 - bluetooth? ( net-wireless/bluez )
497 - usb? ( virtual/libusb:1 )
498 - dbus? (
499 - sys-apps/dbus
500 - dev-libs/dbus-glib
501 - )
502 - ntp? ( || ( net-misc/ntp net-misc/chrony ) )
503 - qt4? ( dev-qt/qtgui:4 )"
504 -DEPEND="${RDEPEND}
505 - test? ( sys-devel/bc )"
506 -
507 -# xml packages are for man page generation
508 -if [[ ${PV} == "9999" ]] ; then
509 - DEPEND+="
510 - app-text/xmlto
511 - =app-text/docbook-xml-dtd-4.1*"
512 -fi
513 -
514 -pkg_setup() {
515 - use python && python_pkg_setup
516 -}
517 -
518 -src_prepare() {
519 - epatch "${FILESDIR}"/${PN}-3.3-ldflags.patch
520 - epatch "${FILESDIR}"/${PN}-3.4-always-install-man-pages.patch
521 - epatch "${FILESDIR}"/${PN}-3.4-no-man-gen.patch
522 - epatch "${FILESDIR}"/${PN}-3.6-debug.patch
523 - epatch "${FILESDIR}"/${PN}-3.6-rpath.patch
524 -
525 - # Avoid useless -L paths to the install dir
526 - sed -i \
527 - -e '/^env.Prepend(LIBPATH=.installdir(.libdir.).)$/d' \
528 - -e 's:\<STAGING_PREFIX\>:SYSROOT:g' \
529 - SConstruct || die
530 -
531 - # Extract python info out of SConstruct so we can use saner distribute
532 - if use python ; then
533 - pyvar() { sed -n "/^ *$1 *=/s:.*= *::p" SConstruct ; }
534 - local pybins=$(pyvar python_progs)
535 - local pysrcs=$(sed -n '/^ *python_extensions = {/,/}/{s:^ *::;s:os[.]sep:"/":g;p}' SConstruct)
536 - local packet=$(python -c "${pysrcs}; print(python_extensions['gps/packet'])")
537 - local client=$(python -c "${pysrcs}; print(python_extensions['gps/clienthelpers'])")
538 - sed \
539 - -e "s|@VERSION@|$(pyvar gpsd_version)|" \
540 - -e "s|@URL@|$(pyvar website)|" \
541 - -e "s|@EMAIL@|$(pyvar devmail)|" \
542 - -e "s|@SCRIPTS@|${pybins}|" \
543 - -e "s|@GPS_PACKET_SOURCES@|${packet}|" \
544 - -e "s|@GPS_CLIENT_SOURCES@|${client}|" \
545 - -e "s|@SCRIPTS@|$(pyvar python_progs)|" \
546 - "${FILESDIR}"/${PN}-3.3-setup.py > setup.py || die
547 - distutils_src_prepare
548 - fi
549 -}
550 -
551 -src_configure() {
552 - myesconsargs=(
553 - prefix="${EPREFIX}/usr"
554 - libdir="\$prefix/$(get_libdir)"
555 - chrpath=False
556 - gpsd_user=gpsd
557 - gpsd_group=uucp
558 - strip=False
559 - python=False
560 - $(use_scons bluetooth bluez)
561 - $(use_scons cxx libgpsmm)
562 - $(use_scons debug)
563 - $(use_scons dbus dbus_export)
564 - $(use_scons ipv6)
565 - $(use_scons ncurses)
566 - $(use_scons ntp ntpshm)
567 - $(use_scons ntp pps)
568 - $(use_scons shm shm_export)
569 - $(use_scons sockets socket_export)
570 - $(use_scons qt4 libQgpsmm)
571 - $(use_scons usb)
572 - )
573 -
574 - # enable specified protocols
575 - local protocol
576 - for protocol in ${GPSD_PROTOCOLS[@]} ; do
577 - myesconsargs+=( $(use_scons gpsd_protocols_${protocol} ${protocol}) )
578 - done
579 -}
580 -
581 -src_compile() {
582 - tc-export CC CXX PKG_CONFIG
583 - export SHLINKFLAGS=${LDFLAGS} LINKFLAGS=${LDFLAGS}
584 - escons
585 -
586 - use python && distutils_src_compile
587 -}
588 -
589 -src_install() {
590 - DESTDIR="${D}" escons install $(usex udev udev-install "")
591 -
592 - newconfd "${FILESDIR}"/gpsd.conf-2 gpsd
593 - newinitd "${FILESDIR}"/gpsd.init-2 gpsd
594 -
595 - if use python ; then
596 - distutils_src_install
597 - # Delete all X related packages if user doesn't want them
598 - if ! use X ; then
599 - local p
600 - for p in $(grep -Il 'import .*pygtk' *) ; do
601 - find "${D}"/usr/bin -name "${p}*" -delete
602 - done
603 - fi
604 - fi
605 -}
606 -
607 -pkg_preinst() {
608 - # Run the gpsd daemon as gpsd and group uucp; create it here
609 - # as it doesn't seem to be needed during compile/install ...
610 - enewuser gpsd -1 -1 -1 "uucp"
611 -}
612 -
613 -pkg_postinst() {
614 - use python && distutils_pkg_postinst
615 -}
616 -
617 -pkg_postrm() {
618 - use python && distutils_pkg_postrm
619 -}
620
621 diff --git a/sci-geosciences/gpsd/gpsd-3.7.ebuild b/sci-geosciences/gpsd/gpsd-3.7.ebuild
622 deleted file mode 100644
623 index d6dd080..0000000
624 --- a/sci-geosciences/gpsd/gpsd-3.7.ebuild
625 +++ /dev/null
626 @@ -1,168 +0,0 @@
627 -# Copyright 1999-2014 Gentoo Foundation
628 -# Distributed under the terms of the GNU General Public License v2
629 -# $Id$
630 -
631 -EAPI="4"
632 -
633 -PYTHON_DEPEND="python? 2:2.6"
634 -RESTRICT_PYTHON_ABIS="3.*"
635 -SUPPORT_PYTHON_ABIS="1"
636 -SCONS_MIN_VERSION="1.2.1"
637 -
638 -inherit eutils udev user multilib distutils scons-utils toolchain-funcs
639 -
640 -if [[ ${PV} == "9999" ]] ; then
641 - EGIT_REPO_URI="git://git.savannah.nongnu.org/gpsd.git"
642 - inherit git-2
643 -else
644 - SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz"
645 - KEYWORDS="amd64 arm ppc ppc64 x86"
646 -fi
647 -
648 -DESCRIPTION="GPS daemon and library to support USB/serial GPS devices and various GPS/mapping clients"
649 -HOMEPAGE="http://catb.org/gpsd/"
650 -
651 -LICENSE="BSD"
652 -SLOT="0"
653 -
654 -GPSD_PROTOCOLS=(
655 - ashtech aivdm clientdebug earthmate evermore fv18 garmin
656 - garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver
657 - oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip
658 - tripmate tnt ubx
659 -)
660 -IUSE_GPSD_PROTOCOLS=${GPSD_PROTOCOLS[@]/#/gpsd_protocols_}
661 -IUSE="${IUSE_GPSD_PROTOCOLS} bluetooth cxx debug dbus ipv6 ncurses ntp python qt4 +shm +sockets test udev usb X"
662 -REQUIRED_USE="X? ( python )"
663 -
664 -RDEPEND="X? ( dev-python/pygtk:2 )
665 - ncurses? ( sys-libs/ncurses )
666 - bluetooth? ( net-wireless/bluez )
667 - usb? ( virtual/libusb:1 )
668 - dbus? (
669 - sys-apps/dbus
670 - dev-libs/dbus-glib
671 - )
672 - ntp? ( || ( net-misc/ntp net-misc/chrony ) )
673 - qt4? ( dev-qt/qtgui:4 )"
674 -DEPEND="${RDEPEND}
675 - virtual/pkgconfig
676 - test? ( sys-devel/bc )"
677 -
678 -# xml packages are for man page generation
679 -if [[ ${PV} == "9999" ]] ; then
680 - DEPEND+="
681 - app-text/xmlto
682 - =app-text/docbook-xml-dtd-4.1*"
683 -fi
684 -
685 -pkg_setup() {
686 - use python && python_pkg_setup
687 -}
688 -
689 -src_prepare() {
690 - epatch "${FILESDIR}"/${PN}-3.3-ldflags.patch
691 - epatch "${FILESDIR}"/${PN}-3.4-always-install-man-pages.patch
692 - epatch "${FILESDIR}"/${PN}-3.4-no-man-gen.patch
693 - epatch "${FILESDIR}"/${PN}-3.7-rpath.patch
694 - epatch "${FILESDIR}"/${PN}-3.7-gps_regress.patch #441760
695 - epatch "${FILESDIR}"/${PN}-3.7-no-export-t.patch #463850
696 -
697 - # Avoid useless -L paths to the install dir
698 - sed -i \
699 - -e '/^env.Prepend(LIBPATH=.installdir(.libdir.).)$/d' \
700 - -e 's:\<STAGING_PREFIX\>:SYSROOT:g' \
701 - SConstruct || die
702 -
703 - # Extract python info out of SConstruct so we can use saner distribute
704 - if use python ; then
705 - pyvar() { sed -n "/^ *$1 *=/s:.*= *::p" SConstruct ; }
706 - local pybins=$(pyvar python_progs)
707 - local pysrcs=$(sed -n '/^ *python_extensions = {/,/}/{s:^ *::;s:os[.]sep:"/":g;p}' SConstruct)
708 - local packet=$(python -c "${pysrcs}; print(python_extensions['gps/packet'])")
709 - local client=$(python -c "${pysrcs}; print(python_extensions['gps/clienthelpers'])")
710 - sed \
711 - -e "s|@VERSION@|$(pyvar gpsd_version)|" \
712 - -e "s|@URL@|$(pyvar website)|" \
713 - -e "s|@EMAIL@|$(pyvar devmail)|" \
714 - -e "s|@SCRIPTS@|${pybins}|" \
715 - -e "s|@GPS_PACKET_SOURCES@|${packet}|" \
716 - -e "s|@GPS_CLIENT_SOURCES@|${client}|" \
717 - -e "s|@SCRIPTS@|$(pyvar python_progs)|" \
718 - "${FILESDIR}"/${PN}-3.3-setup.py > setup.py || die
719 - distutils_src_prepare
720 - fi
721 -
722 - sed -i -e "s:/lib/udev:$(get_udevdir):" gpsd.rules SConstruct || die
723 -}
724 -
725 -src_configure() {
726 - myesconsargs=(
727 - prefix="${EPREFIX}/usr"
728 - libdir="\$prefix/$(get_libdir)"
729 - chrpath=False
730 - gpsd_user=gpsd
731 - gpsd_group=uucp
732 - strip=False
733 - python=False
734 - $(use_scons bluetooth bluez)
735 - $(use_scons cxx libgpsmm)
736 - $(use_scons debug)
737 - $(use_scons dbus dbus_export)
738 - $(use_scons ipv6)
739 - $(use_scons ncurses)
740 - $(use_scons ntp ntpshm)
741 - $(use_scons ntp pps)
742 - $(use_scons shm shm_export)
743 - $(use_scons sockets socket_export)
744 - $(use_scons qt4 libQgpsmm)
745 - $(use_scons usb)
746 - )
747 -
748 - # enable specified protocols
749 - local protocol
750 - for protocol in ${GPSD_PROTOCOLS[@]} ; do
751 - myesconsargs+=( $(use_scons gpsd_protocols_${protocol} ${protocol}) )
752 - done
753 -}
754 -
755 -src_compile() {
756 - export CHRPATH=
757 - tc-export CC CXX PKG_CONFIG
758 - export SHLINKFLAGS=${LDFLAGS} LINKFLAGS=${LDFLAGS}
759 - escons
760 -
761 - use python && distutils_src_compile
762 -}
763 -
764 -src_install() {
765 - DESTDIR="${D}" escons install $(usex udev udev-install "")
766 -
767 - newconfd "${FILESDIR}"/gpsd.conf-2 gpsd
768 - newinitd "${FILESDIR}"/gpsd.init-2 gpsd
769 -
770 - if use python ; then
771 - distutils_src_install
772 - # Delete all X related packages if user doesn't want them
773 - if ! use X ; then
774 - local p
775 - for p in $(grep -Il 'import .*pygtk' *) ; do
776 - find "${D}"/usr/bin -name "${p}*" -delete
777 - done
778 - fi
779 - fi
780 -}
781 -
782 -pkg_preinst() {
783 - # Run the gpsd daemon as gpsd and group uucp; create it here
784 - # as it doesn't seem to be needed during compile/install ...
785 - enewuser gpsd -1 -1 -1 "uucp"
786 -}
787 -
788 -pkg_postinst() {
789 - use python && distutils_pkg_postinst
790 -}
791 -
792 -pkg_postrm() {
793 - use python && distutils_pkg_postrm
794 -}
795
796 diff --git a/sci-geosciences/gpsd/gpsd-3.8.ebuild b/sci-geosciences/gpsd/gpsd-3.8.ebuild
797 deleted file mode 100644
798 index 6fa713d..0000000
799 --- a/sci-geosciences/gpsd/gpsd-3.8.ebuild
800 +++ /dev/null
801 @@ -1,184 +0,0 @@
802 -# Copyright 1999-2014 Gentoo Foundation
803 -# Distributed under the terms of the GNU General Public License v2
804 -# $Id$
805 -
806 -EAPI="4"
807 -
808 -PYTHON_DEPEND="python? 2:2.6"
809 -RESTRICT_PYTHON_ABIS="3.*"
810 -SUPPORT_PYTHON_ABIS="1"
811 -SCONS_MIN_VERSION="1.2.1"
812 -
813 -inherit eutils udev user multilib distutils scons-utils toolchain-funcs
814 -
815 -if [[ ${PV} == "9999" ]] ; then
816 - EGIT_REPO_URI="git://git.savannah.nongnu.org/gpsd.git"
817 - inherit git-2
818 -else
819 - SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz"
820 - KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
821 -fi
822 -
823 -DESCRIPTION="GPS daemon and library to support USB/serial GPS devices and various GPS/mapping clients"
824 -HOMEPAGE="http://catb.org/gpsd/"
825 -
826 -LICENSE="BSD"
827 -SLOT="0"
828 -
829 -GPSD_PROTOCOLS=(
830 - aivdm ashtech earthmate evermore fury fv18 garmin garmintxt
831 - geostar gpsclock itrax mtk3301 navcom nmea nmea2000 ntrip
832 - oceanserver oncore rtcm104v2 rtcm104v3 sirf superstar2 tnt
833 - tripmate tsip ubx
834 -)
835 -IUSE_GPSD_PROTOCOLS=${GPSD_PROTOCOLS[@]/#/gpsd_protocols_}
836 -IUSE="${IUSE_GPSD_PROTOCOLS} bluetooth cxx debug dbus ipv6 latency_timing ncurses ntp python qt4 +shm +sockets test udev usb X"
837 -REQUIRED_USE="X? ( python )
838 - gpsd_protocols_nmea2000? ( gpsd_protocols_aivdm )"
839 -
840 -RDEPEND="X? ( dev-python/pygtk:2 )
841 - ncurses? ( sys-libs/ncurses )
842 - bluetooth? ( net-wireless/bluez )
843 - usb? ( virtual/libusb:1 )
844 - dbus? (
845 - sys-apps/dbus
846 - dev-libs/dbus-glib
847 - )
848 - ntp? ( || ( net-misc/ntp net-misc/chrony ) )
849 - qt4? ( dev-qt/qtgui:4 )"
850 -DEPEND="${RDEPEND}
851 - virtual/pkgconfig
852 - test? ( sys-devel/bc )"
853 -
854 -# xml packages are for man page generation
855 -if [[ ${PV} == "9999" ]] ; then
856 - DEPEND+="
857 - app-text/xmlto
858 - =app-text/docbook-xml-dtd-4.1*"
859 -fi
860 -
861 -pkg_setup() {
862 - use python && python_pkg_setup
863 -}
864 -
865 -src_unpack() {
866 - default
867 -
868 - # Make sure our list matches the source.
869 - local src_protocols=$(echo $(
870 - sed -n '/GPS protocols/,/Time service/{s:#.*::;s:[(",]::g;p}' "${S}"/SConstruct | awk '{print $1}' | LC_ALL=C sort
871 - ) )
872 - if [[ ${src_protocols} != ${GPSD_PROTOCOLS[*]} ]] ; then
873 - eerror "Detected protocols: ${src_protocols}"
874 - eerror "Ebuild protocols: ${GPSD_PROTOCOLS[*]}"
875 - die "please sync ebuild & source"
876 - fi
877 -}
878 -
879 -src_prepare() {
880 - epatch "${FILESDIR}"/${PN}-3.8-ldflags.patch
881 - epatch "${FILESDIR}"/${PN}-3.8-libgps.patch
882 - epatch "${FILESDIR}"/${PN}-3.8-udev.patch
883 - epatch "${FILESDIR}"/${PN}-3.4-no-man-gen.patch
884 - epatch "${FILESDIR}"/${PN}-3.7-rpath.patch
885 - epatch "${FILESDIR}"/${PN}-3.7-gps_regress.patch #441760
886 - epatch "${FILESDIR}"/${PN}-3.8-no-export-t.patch #463850
887 -
888 - # Avoid useless -L paths to the install dir
889 - sed -i \
890 - -e '/^env.Prepend(LIBPATH=.installdir(.libdir.).)$/d' \
891 - -e 's:\<STAGING_PREFIX\>:SYSROOT:g' \
892 - SConstruct || die
893 -
894 - # Extract python info out of SConstruct so we can use saner distribute
895 - if use python ; then
896 - pyvar() { sed -n "/^ *$1 *=/s:.*= *::p" SConstruct ; }
897 - local pybins=$(pyvar python_progs)
898 - local pysrcs=$(sed -n '/^ *python_extensions = {/,/}/{s:^ *::;s:os[.]sep:"/":g;p}' SConstruct)
899 - local packet=$(python -c "${pysrcs}; print(python_extensions['gps/packet'])")
900 - local client=$(python -c "${pysrcs}; print(python_extensions['gps/clienthelpers'])")
901 - sed \
902 - -e "s|@VERSION@|$(pyvar gpsd_version)|" \
903 - -e "s|@URL@|$(pyvar website)|" \
904 - -e "s|@EMAIL@|$(pyvar devmail)|" \
905 - -e "s|@SCRIPTS@|${pybins}|" \
906 - -e "s|@GPS_PACKET_SOURCES@|${packet}|" \
907 - -e "s|@GPS_CLIENT_SOURCES@|${client}|" \
908 - -e "s|@SCRIPTS@|$(pyvar python_progs)|" \
909 - "${FILESDIR}"/${PN}-3.3-setup.py > setup.py || die
910 - distutils_src_prepare
911 - fi
912 -}
913 -
914 -src_configure() {
915 - myesconsargs=(
916 - prefix="${EPREFIX}/usr"
917 - libdir="\$prefix/$(get_libdir)"
918 - udevdir="$(get_udevdir)"
919 - chrpath=False
920 - gpsd_user=gpsd
921 - gpsd_group=uucp
922 - strip=False
923 - python=False
924 - $(use_scons bluetooth bluez)
925 - $(use_scons cxx libgpsmm)
926 - $(use_scons debug clientdebug)
927 - $(use_scons dbus dbus_export)
928 - $(use_scons ipv6)
929 - $(use_scons latency_timing timing)
930 - $(use_scons ncurses)
931 - $(use_scons ntp ntpshm)
932 - $(use_scons ntp pps)
933 - $(use_scons shm shm_export)
934 - $(use_scons sockets socket_export)
935 - $(use_scons qt4 libQgpsmm)
936 - $(use_scons usb)
937 - )
938 -
939 - # enable specified protocols
940 - local protocol
941 - for protocol in ${GPSD_PROTOCOLS[@]} ; do
942 - myesconsargs+=( $(use_scons gpsd_protocols_${protocol} ${protocol}) )
943 - done
944 -}
945 -
946 -src_compile() {
947 - export CHRPATH=
948 - tc-export CC CXX PKG_CONFIG
949 - export SHLINKFLAGS=${LDFLAGS} LINKFLAGS=${LDFLAGS}
950 - escons
951 -
952 - use python && distutils_src_compile
953 -}
954 -
955 -src_install() {
956 - DESTDIR="${D}" escons install $(usex udev udev-install "")
957 -
958 - newconfd "${FILESDIR}"/gpsd.conf-2 gpsd
959 - newinitd "${FILESDIR}"/gpsd.init-2 gpsd
960 -
961 - if use python ; then
962 - distutils_src_install
963 - # Delete all X related packages if user doesn't want them
964 - if ! use X ; then
965 - local p
966 - for p in $(grep -Il 'import .*pygtk' *) ; do
967 - find "${D}"/usr/bin -name "${p}*" -delete
968 - done
969 - fi
970 - fi
971 -}
972 -
973 -pkg_preinst() {
974 - # Run the gpsd daemon as gpsd and group uucp; create it here
975 - # as it doesn't seem to be needed during compile/install ...
976 - enewuser gpsd -1 -1 -1 "uucp"
977 -}
978 -
979 -pkg_postinst() {
980 - use python && distutils_pkg_postinst
981 -}
982 -
983 -pkg_postrm() {
984 - use python && distutils_pkg_postrm
985 -}
986
987 diff --git a/sci-geosciences/gpsd/gpsd-3.9.ebuild b/sci-geosciences/gpsd/gpsd-3.9.ebuild
988 deleted file mode 100644
989 index 9e251de..0000000
990 --- a/sci-geosciences/gpsd/gpsd-3.9.ebuild
991 +++ /dev/null
992 @@ -1,180 +0,0 @@
993 -# Copyright 1999-2014 Gentoo Foundation
994 -# Distributed under the terms of the GNU General Public License v2
995 -# $Id$
996 -
997 -EAPI="4"
998 -
999 -PYTHON_DEPEND="python? 2:2.6"
1000 -RESTRICT_PYTHON_ABIS="3.*"
1001 -SUPPORT_PYTHON_ABIS="1"
1002 -SCONS_MIN_VERSION="1.2.1"
1003 -
1004 -inherit eutils udev user multilib distutils scons-utils toolchain-funcs
1005 -
1006 -if [[ ${PV} == "9999" ]] ; then
1007 - EGIT_REPO_URI="git://git.savannah.nongnu.org/gpsd.git"
1008 - inherit git-2
1009 -else
1010 - SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz"
1011 - KEYWORDS="amd64 arm ppc ppc64 x86"
1012 -fi
1013 -
1014 -DESCRIPTION="GPS daemon and library to support USB/serial GPS devices and various GPS/mapping clients"
1015 -HOMEPAGE="http://catb.org/gpsd/"
1016 -
1017 -LICENSE="BSD"
1018 -SLOT="0"
1019 -
1020 -GPSD_PROTOCOLS=(
1021 - aivdm ashtech earthmate evermore fury fv18 garmin garmintxt
1022 - geostar gpsclock itrax mtk3301 navcom nmea nmea2000 ntrip
1023 - oceanserver oncore rtcm104v2 rtcm104v3 sirf superstar2 tnt
1024 - tripmate tsip ubx
1025 -)
1026 -IUSE_GPSD_PROTOCOLS=${GPSD_PROTOCOLS[@]/#/gpsd_protocols_}
1027 -IUSE="${IUSE_GPSD_PROTOCOLS} bluetooth cxx debug dbus ipv6 latency_timing ncurses ntp python qt4 +shm +sockets test udev usb X"
1028 -REQUIRED_USE="X? ( python )
1029 - gpsd_protocols_nmea2000? ( gpsd_protocols_aivdm )"
1030 -
1031 -RDEPEND="X? ( dev-python/pygtk:2 )
1032 - ncurses? ( sys-libs/ncurses )
1033 - bluetooth? ( net-wireless/bluez )
1034 - usb? ( virtual/libusb:1 )
1035 - dbus? (
1036 - sys-apps/dbus
1037 - dev-libs/dbus-glib
1038 - )
1039 - ntp? ( || ( net-misc/ntp net-misc/chrony ) )
1040 - qt4? ( dev-qt/qtgui:4 )"
1041 -DEPEND="${RDEPEND}
1042 - virtual/pkgconfig
1043 - test? ( sys-devel/bc )"
1044 -
1045 -# xml packages are for man page generation
1046 -if [[ ${PV} == "9999" ]] ; then
1047 - DEPEND+="
1048 - app-text/xmlto
1049 - =app-text/docbook-xml-dtd-4.1*"
1050 -fi
1051 -
1052 -pkg_setup() {
1053 - use python && python_pkg_setup
1054 -}
1055 -
1056 -src_unpack() {
1057 - default
1058 -
1059 - # Make sure our list matches the source.
1060 - local src_protocols=$(echo $(
1061 - sed -n '/GPS protocols/,/Time service/{s:#.*::;s:[(",]::g;p}' "${S}"/SConstruct | awk '{print $1}' | LC_ALL=C sort
1062 - ) )
1063 - if [[ ${src_protocols} != ${GPSD_PROTOCOLS[*]} ]] ; then
1064 - eerror "Detected protocols: ${src_protocols}"
1065 - eerror "Ebuild protocols: ${GPSD_PROTOCOLS[*]}"
1066 - die "please sync ebuild & source"
1067 - fi
1068 -}
1069 -
1070 -src_prepare() {
1071 - epatch "${FILESDIR}"/${PN}-3.8-ldflags.patch
1072 - epatch "${FILESDIR}"/${PN}-3.4-no-man-gen.patch
1073 - epatch "${FILESDIR}"/${PN}-3.7-rpath.patch
1074 -
1075 - # Avoid useless -L paths to the install dir
1076 - sed -i \
1077 - -e '/^env.Prepend(LIBPATH=.installdir(.libdir.).)$/d' \
1078 - -e 's:\<STAGING_PREFIX\>:SYSROOT:g' \
1079 - SConstruct || die
1080 -
1081 - # Extract python info out of SConstruct so we can use saner distribute
1082 - if use python ; then
1083 - pyvar() { sed -n "/^ *$1 *=/s:.*= *::p" SConstruct ; }
1084 - local pybins=$(pyvar python_progs)
1085 - local pysrcs=$(sed -n '/^ *python_extensions = {/,/}/{s:^ *::;s:os[.]sep:"/":g;p}' SConstruct)
1086 - local packet=$(python -c "${pysrcs}; print(python_extensions['gps/packet'])")
1087 - local client=$(python -c "${pysrcs}; print(python_extensions['gps/clienthelpers'])")
1088 - sed \
1089 - -e "s|@VERSION@|$(pyvar gpsd_version)|" \
1090 - -e "s|@URL@|$(pyvar website)|" \
1091 - -e "s|@EMAIL@|$(pyvar devmail)|" \
1092 - -e "s|@SCRIPTS@|${pybins}|" \
1093 - -e "s|@GPS_PACKET_SOURCES@|${packet}|" \
1094 - -e "s|@GPS_CLIENT_SOURCES@|${client}|" \
1095 - -e "s|@SCRIPTS@|$(pyvar python_progs)|" \
1096 - "${FILESDIR}"/${PN}-3.3-setup.py > setup.py || die
1097 - distutils_src_prepare
1098 - fi
1099 -}
1100 -
1101 -src_configure() {
1102 - myesconsargs=(
1103 - prefix="${EPREFIX}/usr"
1104 - libdir="\$prefix/$(get_libdir)"
1105 - udevdir="$(get_udevdir)"
1106 - chrpath=False
1107 - gpsd_user=gpsd
1108 - gpsd_group=uucp
1109 - strip=False
1110 - python=False
1111 - $(use_scons bluetooth bluez)
1112 - $(use_scons cxx libgpsmm)
1113 - $(use_scons debug clientdebug)
1114 - $(use_scons dbus dbus_export)
1115 - $(use_scons ipv6)
1116 - $(use_scons latency_timing timing)
1117 - $(use_scons ncurses)
1118 - $(use_scons ntp ntpshm)
1119 - $(use_scons ntp pps)
1120 - $(use_scons shm shm_export)
1121 - $(use_scons sockets socket_export)
1122 - $(use_scons qt4 libQgpsmm)
1123 - $(use_scons usb)
1124 - )
1125 -
1126 - # enable specified protocols
1127 - local protocol
1128 - for protocol in ${GPSD_PROTOCOLS[@]} ; do
1129 - myesconsargs+=( $(use_scons gpsd_protocols_${protocol} ${protocol}) )
1130 - done
1131 -}
1132 -
1133 -src_compile() {
1134 - export CHRPATH=
1135 - tc-export CC CXX PKG_CONFIG
1136 - export SHLINKFLAGS=${LDFLAGS} LINKFLAGS=${LDFLAGS}
1137 - escons
1138 -
1139 - use python && distutils_src_compile
1140 -}
1141 -
1142 -src_install() {
1143 - DESTDIR="${D}" escons install $(usex udev udev-install "")
1144 -
1145 - newconfd "${FILESDIR}"/gpsd.conf-2 gpsd
1146 - newinitd "${FILESDIR}"/gpsd.init-2 gpsd
1147 -
1148 - if use python ; then
1149 - distutils_src_install
1150 - # Delete all X related packages if user doesn't want them
1151 - if ! use X ; then
1152 - local p
1153 - for p in $(grep -Il 'import .*pygtk' *) ; do
1154 - find "${D}"/usr/bin -name "${p}*" -delete
1155 - done
1156 - fi
1157 - fi
1158 -}
1159 -
1160 -pkg_preinst() {
1161 - # Run the gpsd daemon as gpsd and group uucp; create it here
1162 - # as it doesn't seem to be needed during compile/install ...
1163 - enewuser gpsd -1 -1 -1 "uucp"
1164 -}
1165 -
1166 -pkg_postinst() {
1167 - use python && distutils_pkg_postinst
1168 -}
1169 -
1170 -pkg_postrm() {
1171 - use python && distutils_pkg_postrm
1172 -}