1 |
commit: 09d6e2d07c08302b659c937a808fd656979137f6 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 4 06:30:28 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 4 07:27:44 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09d6e2d0 |
7 |
|
8 |
sci-geosciences/gpsd: Drop 3.17-r2 |
9 |
|
10 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.50, Repoman-2.3.11 |
12 |
|
13 |
sci-geosciences/gpsd/gpsd-3.17-r2.ebuild | 168 ------------------------------- |
14 |
1 file changed, 168 deletions(-) |
15 |
|
16 |
diff --git a/sci-geosciences/gpsd/gpsd-3.17-r2.ebuild b/sci-geosciences/gpsd/gpsd-3.17-r2.ebuild |
17 |
deleted file mode 100644 |
18 |
index d8f331c91ab..00000000000 |
19 |
--- a/sci-geosciences/gpsd/gpsd-3.17-r2.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,168 +0,0 @@ |
22 |
-# Copyright 1999-2018 Gentoo Foundation |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=5 |
26 |
- |
27 |
-DISTUTILS_OPTIONAL=1 |
28 |
-PYTHON_COMPAT=( python2_7 ) |
29 |
-SCONS_MIN_VERSION="1.2.1" |
30 |
- |
31 |
-inherit eutils udev user multilib distutils-r1 scons-utils toolchain-funcs |
32 |
- |
33 |
-if [[ ${PV} == "9999" ]] ; then |
34 |
- EGIT_REPO_URI="git://git.savannah.nongnu.org/gpsd.git" |
35 |
- inherit git-2 |
36 |
-else |
37 |
- SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz" |
38 |
- KEYWORDS="amd64 arm ~ppc ~ppc64 x86" |
39 |
-fi |
40 |
- |
41 |
-DESCRIPTION="GPS daemon and library for USB/serial GPS devices and GPS/mapping clients" |
42 |
-HOMEPAGE="http://catb.org/gpsd/" |
43 |
- |
44 |
-LICENSE="BSD" |
45 |
-SLOT="0/23" |
46 |
- |
47 |
-GPSD_PROTOCOLS=( |
48 |
- aivdm ashtech earthmate evermore fury fv18 garmin garmintxt geostar |
49 |
- gpsclock isync itrax mtk3301 navcom nmea0183 nmea2000 ntrip oceanserver |
50 |
- oncore passthrough rtcm104v2 rtcm104v3 sirf skytraq superstar2 tnt |
51 |
- tripmate tsip ublox |
52 |
-) |
53 |
-IUSE_GPSD_PROTOCOLS=${GPSD_PROTOCOLS[@]/#/gpsd_protocols_} |
54 |
-IUSE="${IUSE_GPSD_PROTOCOLS} bluetooth dbus debug ipv6 latency_timing ncurses ntp python qt5 +shm +sockets static test udev usb X" |
55 |
-REQUIRED_USE="X? ( python ) |
56 |
- gpsd_protocols_nmea2000? ( gpsd_protocols_aivdm ) |
57 |
- python? ( ${PYTHON_REQUIRED_USE} )" |
58 |
- |
59 |
-RDEPEND=" |
60 |
- >=net-misc/pps-tools-0.0.20120407 |
61 |
- bluetooth? ( net-wireless/bluez ) |
62 |
- dbus? ( |
63 |
- sys-apps/dbus |
64 |
- dev-libs/dbus-glib |
65 |
- ) |
66 |
- ncurses? ( sys-libs/ncurses:= ) |
67 |
- ntp? ( || ( |
68 |
- net-misc/ntp |
69 |
- net-misc/chrony |
70 |
- ) ) |
71 |
- qt5? ( |
72 |
- dev-qt/qtcore:5 |
73 |
- dev-qt/qtnetwork:5 |
74 |
- ) |
75 |
- python? ( ${PYTHON_DEPS} ) |
76 |
- usb? ( virtual/libusb:1 ) |
77 |
- X? ( dev-python/pygobject:3[cairo,${PYTHON_USEDEP}] )" |
78 |
-DEPEND="${RDEPEND} |
79 |
- virtual/pkgconfig |
80 |
- test? ( sys-devel/bc )" |
81 |
- |
82 |
-# xml packages are for man page generation |
83 |
-if [[ ${PV} == *9999* ]] ; then |
84 |
- DEPEND+=" |
85 |
- app-text/xmlto |
86 |
- =app-text/docbook-xml-dtd-4.1*" |
87 |
-fi |
88 |
- |
89 |
-src_prepare() { |
90 |
- # Make sure our list matches the source. |
91 |
- local src_protocols=$(echo $( |
92 |
- sed -n '/# GPS protocols/,/# Time service/{s:#.*::;s:[(",]::g;p}' "${S}"/SConstruct | awk '{print $1}' | LC_ALL=C sort |
93 |
- ) ) |
94 |
- if [[ ${src_protocols} != ${GPSD_PROTOCOLS[*]} ]] ; then |
95 |
- eerror "Detected protocols: ${src_protocols}" |
96 |
- eerror "Ebuild protocols: ${GPSD_PROTOCOLS[*]}" |
97 |
- die "please sync ebuild & source" |
98 |
- fi |
99 |
- |
100 |
- epatch "${FILESDIR}"/${P}-do_not_rm_library.patch |
101 |
- |
102 |
- # Avoid useless -L paths to the install dir |
103 |
- sed -i \ |
104 |
- -e 's:\<STAGING_PREFIX\>:SYSROOT:g' \ |
105 |
- SConstruct || die |
106 |
- |
107 |
- use python && distutils-r1_src_prepare |
108 |
-} |
109 |
- |
110 |
-python_prepare_all() { |
111 |
- python_export_best |
112 |
- # Extract python info out of SConstruct so we can use saner distribute |
113 |
- pyvar() { sed -n "/^ *$1 *=/s:.*= *::p" SConstruct ; } |
114 |
- local pybins=$(pyvar python_progs | tail -1) |
115 |
- local pysrcs=$(sed -n '/^ *python_extensions = {/,/}/{s:^ *::;s:os[.]sep:"/":g;p}' SConstruct) |
116 |
- local packet=$("${PYTHON}" -c "${pysrcs}; print(python_extensions['gps/packet'])") |
117 |
- local client=$("${PYTHON}" -c "${pysrcs}; print(python_extensions['gps/clienthelpers'])") |
118 |
- sed \ |
119 |
- -e "s|@VERSION@|$(pyvar gpsd_version)|" \ |
120 |
- -e "s|@URL@|$(pyvar website)|" \ |
121 |
- -e "s|@EMAIL@|$(pyvar devmail)|" \ |
122 |
- -e "s|@SCRIPTS@|${pybins}|" \ |
123 |
- -e "s|@GPS_PACKET_SOURCES@|${packet}|" \ |
124 |
- -e "s|@GPS_CLIENT_SOURCES@|${client}|" \ |
125 |
- -e "s|@SCRIPTS@|${pybins}|" \ |
126 |
- "${FILESDIR}"/${PN}-3.3-setup.py > setup.py || die |
127 |
- distutils-r1_python_prepare_all |
128 |
-} |
129 |
- |
130 |
-src_configure() { |
131 |
- myesconsargs=( |
132 |
- prefix="${EPREFIX}/usr" |
133 |
- libdir="\$prefix/$(get_libdir)" |
134 |
- udevdir="$(get_udevdir)" |
135 |
- chrpath=False |
136 |
- gpsd_user=gpsd |
137 |
- gpsd_group=uucp |
138 |
- nostrip=True |
139 |
- libgpsmm=True |
140 |
- manbuild=False |
141 |
- shared=$(usex !static True False) |
142 |
- $(use_scons bluetooth bluez) |
143 |
- $(use_scons debug clientdebug) |
144 |
- $(use_scons dbus dbus_export) |
145 |
- $(use_scons ipv6) |
146 |
- $(use_scons latency_timing timing) |
147 |
- $(use_scons ncurses) |
148 |
- $(use_scons ntp ntpshm) |
149 |
- $(use_scons ntp pps) |
150 |
- $(use_scons X python) |
151 |
- $(use_scons qt5 libQgpsmm) |
152 |
- $(use_scons shm shm_export) |
153 |
- $(use_scons sockets socket_export) |
154 |
- $(use_scons usb) |
155 |
- ) |
156 |
- |
157 |
- use X && myesconsargs+=( xgps=1 ) |
158 |
- use qt5 && myesconsargs+=( qt_versioned=5 ) |
159 |
- |
160 |
- # enable specified protocols |
161 |
- local protocol |
162 |
- for protocol in ${GPSD_PROTOCOLS[@]} ; do |
163 |
- myesconsargs+=( $(use_scons gpsd_protocols_${protocol} ${protocol}) ) |
164 |
- done |
165 |
-} |
166 |
- |
167 |
-src_compile() { |
168 |
- export CHRPATH= |
169 |
- tc-export CC CXX PKG_CONFIG |
170 |
- export SHLINKFLAGS=${LDFLAGS} LINKFLAGS=${LDFLAGS} |
171 |
- escons |
172 |
- |
173 |
- use python && distutils-r1_src_compile |
174 |
-} |
175 |
- |
176 |
-src_install() { |
177 |
- DESTDIR="${D}" escons install $(usex udev udev-install "") |
178 |
- |
179 |
- newconfd "${FILESDIR}"/gpsd.conf-2 gpsd |
180 |
- newinitd "${FILESDIR}"/gpsd.init-2 gpsd |
181 |
- |
182 |
- use python && distutils-r1_src_install |
183 |
-} |
184 |
- |
185 |
-pkg_preinst() { |
186 |
- # Run the gpsd daemon as gpsd and group uucp; create it here |
187 |
- # as it doesn't seem to be needed during compile/install ... |
188 |
- enewuser gpsd -1 -1 -1 "uucp" |
189 |
-} |