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