1 |
vapier 13/11/23 04:25:42 |
2 |
|
3 |
Modified: gpsd-9999.ebuild ChangeLog |
4 |
Added: gpsd-3.10.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
|
8 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key FB7C4156) |
9 |
|
10 |
Revision Changes Path |
11 |
1.15 sci-geosciences/gpsd/gpsd-9999.ebuild |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/gpsd/gpsd-9999.ebuild?rev=1.15&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/gpsd/gpsd-9999.ebuild?rev=1.15&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/gpsd/gpsd-9999.ebuild?r1=1.14&r2=1.15 |
16 |
|
17 |
Index: gpsd-9999.ebuild |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/gpsd-9999.ebuild,v |
20 |
retrieving revision 1.14 |
21 |
retrieving revision 1.15 |
22 |
diff -u -r1.14 -r1.15 |
23 |
--- gpsd-9999.ebuild 27 Aug 2013 17:59:55 -0000 1.14 |
24 |
+++ gpsd-9999.ebuild 23 Nov 2013 04:25:41 -0000 1.15 |
25 |
@@ -1,6 +1,6 @@ |
26 |
# Copyright 1999-2013 Gentoo Foundation |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/gpsd-9999.ebuild,v 1.14 2013/08/27 17:59:55 floppym Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/gpsd-9999.ebuild,v 1.15 2013/11/23 04:25:41 vapier Exp $ |
30 |
|
31 |
EAPI="5" |
32 |
|
33 |
@@ -28,10 +28,10 @@ |
34 |
aivdm ashtech earthmate evermore fury fv18 garmin garmintxt |
35 |
geostar gpsclock itrax mtk3301 navcom nmea nmea2000 ntrip |
36 |
oceanserver oncore rtcm104v2 rtcm104v3 sirf superstar2 tnt |
37 |
- tripmate tsip ubx |
38 |
+ tripmate tsip ublox |
39 |
) |
40 |
IUSE_GPSD_PROTOCOLS=${GPSD_PROTOCOLS[@]/#/gpsd_protocols_} |
41 |
-IUSE="${IUSE_GPSD_PROTOCOLS} bluetooth cxx debug dbus ipv6 latency_timing ncurses ntp python qt4 +shm +sockets test udev usb X" |
42 |
+IUSE="${IUSE_GPSD_PROTOCOLS} bluetooth cxx debug dbus ipv6 latency_timing ncurses ntp python qt4 +shm +sockets static test udev usb X" |
43 |
REQUIRED_USE="X? ( python ) |
44 |
gpsd_protocols_nmea2000? ( gpsd_protocols_aivdm ) |
45 |
python? ( ${PYTHON_REQUIRED_USE} )" |
46 |
@@ -70,15 +70,10 @@ |
47 |
fi |
48 |
|
49 |
epatch "${FILESDIR}"/${PN}-3.8-ldflags.patch |
50 |
- epatch "${FILESDIR}"/${PN}-3.8-libgps.patch |
51 |
- epatch "${FILESDIR}"/${PN}-3.8-udev.patch |
52 |
- epatch "${FILESDIR}"/${PN}-3.4-no-man-gen.patch |
53 |
- epatch "${FILESDIR}"/${PN}-3.7-rpath.patch |
54 |
- epatch "${FILESDIR}"/${PN}-3.7-gps_regress.patch #441760 |
55 |
+ epatch "${FILESDIR}"/${PN}-3.10-rpath.patch |
56 |
|
57 |
# Avoid useless -L paths to the install dir |
58 |
sed -i \ |
59 |
- -e '/^env.Prepend(LIBPATH=.installdir(.libdir.).)$/d' \ |
60 |
-e 's:\<STAGING_PREFIX\>:SYSROOT:g' \ |
61 |
SConstruct || die |
62 |
|
63 |
@@ -115,6 +110,8 @@ |
64 |
gpsd_group=uucp |
65 |
strip=False |
66 |
python=False |
67 |
+ manbuild=False |
68 |
+ shared=$(usex !static True False) |
69 |
$(use_scons bluetooth bluez) |
70 |
$(use_scons cxx libgpsmm) |
71 |
$(use_scons debug clientdebug) |
72 |
|
73 |
|
74 |
|
75 |
1.116 sci-geosciences/gpsd/ChangeLog |
76 |
|
77 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/gpsd/ChangeLog?rev=1.116&view=markup |
78 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/gpsd/ChangeLog?rev=1.116&content-type=text/plain |
79 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/gpsd/ChangeLog?r1=1.115&r2=1.116 |
80 |
|
81 |
Index: ChangeLog |
82 |
=================================================================== |
83 |
RCS file: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/ChangeLog,v |
84 |
retrieving revision 1.115 |
85 |
retrieving revision 1.116 |
86 |
diff -u -r1.115 -r1.116 |
87 |
--- ChangeLog 1 Nov 2013 13:49:22 -0000 1.115 |
88 |
+++ ChangeLog 23 Nov 2013 04:25:41 -0000 1.116 |
89 |
@@ -1,6 +1,13 @@ |
90 |
# ChangeLog for sci-geosciences/gpsd |
91 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
92 |
-# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/ChangeLog,v 1.115 2013/11/01 13:49:22 ago Exp $ |
93 |
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/ChangeLog,v 1.116 2013/11/23 04:25:41 vapier Exp $ |
94 |
+ |
95 |
+*gpsd-3.10 (23 Nov 2013) |
96 |
+ |
97 |
+ 23 Nov 2013; Mike Frysinger <vapier@g.o> +files/gpsd-3.10-dbus.patch, |
98 |
+ +files/gpsd-3.10-rpath.patch, +files/gpsd-3.10-udev-install.patch, |
99 |
+ +gpsd-3.10.ebuild, gpsd-9999.ebuild: |
100 |
+ Version bump. |
101 |
|
102 |
01 Nov 2013; Agostino Sarubbo <ago@g.o> gpsd-3.9-r1.ebuild: |
103 |
Stable for x86, wrt bug #486298 |
104 |
|
105 |
|
106 |
|
107 |
1.1 sci-geosciences/gpsd/gpsd-3.10.ebuild |
108 |
|
109 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/gpsd/gpsd-3.10.ebuild?rev=1.1&view=markup |
110 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/gpsd/gpsd-3.10.ebuild?rev=1.1&content-type=text/plain |
111 |
|
112 |
Index: gpsd-3.10.ebuild |
113 |
=================================================================== |
114 |
# Copyright 1999-2013 Gentoo Foundation |
115 |
# Distributed under the terms of the GNU General Public License v2 |
116 |
# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/gpsd-3.10.ebuild,v 1.1 2013/11/23 04:25:41 vapier Exp $ |
117 |
|
118 |
EAPI="5" |
119 |
|
120 |
DISTUTILS_OPTIONAL=1 |
121 |
PYTHON_COMPAT=( python{2_6,2_7} ) |
122 |
SCONS_MIN_VERSION="1.2.1" |
123 |
|
124 |
inherit eutils udev user multilib distutils-r1 scons-utils toolchain-funcs |
125 |
|
126 |
if [[ ${PV} == "9999" ]] ; then |
127 |
EGIT_REPO_URI="git://git.savannah.nongnu.org/gpsd.git" |
128 |
inherit git-2 |
129 |
else |
130 |
SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz" |
131 |
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" |
132 |
fi |
133 |
|
134 |
DESCRIPTION="GPS daemon and library to support USB/serial GPS devices and various GPS/mapping clients" |
135 |
HOMEPAGE="http://catb.org/gpsd/" |
136 |
|
137 |
LICENSE="BSD" |
138 |
SLOT="0" |
139 |
|
140 |
GPSD_PROTOCOLS=( |
141 |
aivdm ashtech earthmate evermore fury fv18 garmin garmintxt |
142 |
geostar gpsclock itrax mtk3301 navcom nmea nmea2000 ntrip |
143 |
oceanserver oncore rtcm104v2 rtcm104v3 sirf superstar2 tnt |
144 |
tripmate tsip ublox |
145 |
) |
146 |
IUSE_GPSD_PROTOCOLS=${GPSD_PROTOCOLS[@]/#/gpsd_protocols_} |
147 |
IUSE="${IUSE_GPSD_PROTOCOLS} bluetooth cxx debug dbus ipv6 latency_timing ncurses ntp python qt4 +shm +sockets static test udev usb X" |
148 |
REQUIRED_USE="X? ( python ) |
149 |
gpsd_protocols_nmea2000? ( gpsd_protocols_aivdm ) |
150 |
python? ( ${PYTHON_REQUIRED_USE} )" |
151 |
|
152 |
RDEPEND="X? ( dev-python/pygtk:2[${PYTHON_USEDEP}] ) |
153 |
ncurses? ( sys-libs/ncurses ) |
154 |
bluetooth? ( net-wireless/bluez ) |
155 |
usb? ( virtual/libusb:1 ) |
156 |
dbus? ( |
157 |
sys-apps/dbus |
158 |
dev-libs/dbus-glib |
159 |
) |
160 |
ntp? ( || ( net-misc/ntp net-misc/chrony ) ) |
161 |
qt4? ( dev-qt/qtgui:4 ) |
162 |
python? ( ${PYTHON_DEPS} )" |
163 |
DEPEND="${RDEPEND} |
164 |
virtual/pkgconfig |
165 |
test? ( sys-devel/bc )" |
166 |
|
167 |
# xml packages are for man page generation |
168 |
if [[ ${PV} == "9999" ]] ; then |
169 |
DEPEND+=" |
170 |
app-text/xmlto |
171 |
=app-text/docbook-xml-dtd-4.1*" |
172 |
fi |
173 |
|
174 |
src_prepare() { |
175 |
# Make sure our list matches the source. |
176 |
local src_protocols=$(echo $( |
177 |
sed -n '/GPS protocols/,/Time service/{s:#.*::;s:[(",]::g;p}' "${S}"/SConstruct | awk '{print $1}' | LC_ALL=C sort |
178 |
) ) |
179 |
if [[ ${src_protocols} != ${GPSD_PROTOCOLS[*]} ]] ; then |
180 |
eerror "Detected protocols: ${src_protocols}" |
181 |
eerror "Ebuild protocols: ${GPSD_PROTOCOLS[*]}" |
182 |
die "please sync ebuild & source" |
183 |
fi |
184 |
|
185 |
epatch "${FILESDIR}"/${PN}-3.8-ldflags.patch |
186 |
epatch "${FILESDIR}"/${PN}-3.10-rpath.patch |
187 |
epatch "${FILESDIR}"/${PN}-3.10-dbus.patch |
188 |
epatch "${FILESDIR}"/${PN}-3.10-udev-install.patch |
189 |
|
190 |
# Avoid useless -L paths to the install dir |
191 |
sed -i \ |
192 |
-e 's:\<STAGING_PREFIX\>:SYSROOT:g' \ |
193 |
SConstruct || die |
194 |
|
195 |
use python && distutils-r1_src_prepare |
196 |
} |
197 |
|
198 |
python_prepare_all() { |
199 |
python_export_best |
200 |
# Extract python info out of SConstruct so we can use saner distribute |
201 |
pyvar() { sed -n "/^ *$1 *=/s:.*= *::p" SConstruct ; } |
202 |
local pybins=$(pyvar python_progs) |
203 |
local pysrcs=$(sed -n '/^ *python_extensions = {/,/}/{s:^ *::;s:os[.]sep:"/":g;p}' SConstruct) |
204 |
local packet=$("${PYTHON}" -c "${pysrcs}; print(python_extensions['gps/packet'])") |
205 |
local client=$("${PYTHON}" -c "${pysrcs}; print(python_extensions['gps/clienthelpers'])") |
206 |
sed \ |
207 |
-e "s|@VERSION@|$(pyvar gpsd_version)|" \ |
208 |
-e "s|@URL@|$(pyvar website)|" \ |
209 |
-e "s|@EMAIL@|$(pyvar devmail)|" \ |
210 |
-e "s|@SCRIPTS@|${pybins}|" \ |
211 |
-e "s|@GPS_PACKET_SOURCES@|${packet}|" \ |
212 |
-e "s|@GPS_CLIENT_SOURCES@|${client}|" \ |
213 |
-e "s|@SCRIPTS@|$(pyvar python_progs)|" \ |
214 |
"${FILESDIR}"/${PN}-3.3-setup.py > setup.py || die |
215 |
distutils-r1_python_prepare_all |
216 |
} |
217 |
|
218 |
src_configure() { |
219 |
myesconsargs=( |
220 |
prefix="${EPREFIX}/usr" |
221 |
libdir="\$prefix/$(get_libdir)" |
222 |
udevdir="$(udev_get_udevdir)" |
223 |
chrpath=False |
224 |
gpsd_user=gpsd |
225 |
gpsd_group=uucp |
226 |
strip=False |
227 |
python=False |
228 |
manbuild=False |
229 |
shared=$(usex !static True False) |
230 |
$(use_scons bluetooth bluez) |
231 |
$(use_scons cxx libgpsmm) |
232 |
$(use_scons debug clientdebug) |
233 |
$(use_scons dbus dbus_export) |
234 |
$(use_scons ipv6) |
235 |
$(use_scons latency_timing timing) |
236 |
$(use_scons ncurses) |
237 |
$(use_scons ntp ntpshm) |
238 |
$(use_scons ntp pps) |
239 |
$(use_scons shm shm_export) |
240 |
$(use_scons sockets socket_export) |
241 |
$(use_scons qt4 libQgpsmm) |
242 |
$(use_scons usb) |
243 |
) |
244 |
|
245 |
# enable specified protocols |
246 |
local protocol |
247 |
for protocol in ${GPSD_PROTOCOLS[@]} ; do |
248 |
myesconsargs+=( $(use_scons gpsd_protocols_${protocol} ${protocol}) ) |
249 |
done |
250 |
} |
251 |
|
252 |
src_compile() { |
253 |
export CHRPATH= |
254 |
tc-export CC CXX PKG_CONFIG |
255 |
export SHLINKFLAGS=${LDFLAGS} LINKFLAGS=${LDFLAGS} |
256 |
escons |
257 |
|
258 |
use python && distutils-r1_src_compile |
259 |
} |
260 |
|
261 |
src_install() { |
262 |
DESTDIR="${D}" escons install $(usex udev udev-install "") |
263 |
|
264 |
newconfd "${FILESDIR}"/gpsd.conf-2 gpsd |
265 |
newinitd "${FILESDIR}"/gpsd.init-2 gpsd |
266 |
|
267 |
if use python ; then |
268 |
distutils-r1_src_install |
269 |
# Delete all X related packages if user doesn't want them |
270 |
if ! use X ; then |
271 |
rm "${ED%/}"/usr/bin/xgps* || die |
272 |
fi |
273 |
fi |
274 |
} |
275 |
|
276 |
pkg_preinst() { |
277 |
# Run the gpsd daemon as gpsd and group uucp; create it here |
278 |
# as it doesn't seem to be needed during compile/install ... |
279 |
enewuser gpsd -1 -1 -1 "uucp" |
280 |
} |