Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-geosciences/gpsd: gpsd-9999.ebuild gpsd-3.7.ebuild ChangeLog
Date: Wed, 01 Aug 2012 21:52:08
Message-Id: 20120801215158.485B62004B@flycatcher.gentoo.org
1 vapier 12/08/01 21:51:58
2
3 Modified: gpsd-9999.ebuild ChangeLog
4 Added: gpsd-3.7.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha120/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.5 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.5&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/gpsd/gpsd-9999.ebuild?rev=1.5&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/gpsd/gpsd-9999.ebuild?r1=1.4&r2=1.5
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.4
21 retrieving revision 1.5
22 diff -u -r1.4 -r1.5
23 --- gpsd-9999.ebuild 26 Jul 2012 15:06:26 -0000 1.4
24 +++ gpsd-9999.ebuild 1 Aug 2012 21:51:58 -0000 1.5
25 @@ -1,6 +1,6 @@
26 # Copyright 1999-2012 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.4 2012/07/26 15:06:26 kensington Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/gpsd-9999.ebuild,v 1.5 2012/08/01 21:51:58 vapier Exp $
30
31 EAPI="4"
32
33 @@ -61,10 +61,9 @@
34
35 src_prepare() {
36 epatch "${FILESDIR}"/${PN}-3.3-ldflags.patch
37 - epatch "${FILESDIR}"/${PN}-3.4-chrpath.patch
38 epatch "${FILESDIR}"/${PN}-3.4-always-install-man-pages.patch
39 - epatch "${FILESDIR}"/${PN}-3.5-clock.patch
40 epatch "${FILESDIR}"/${PN}-3.4-no-man-gen.patch
41 + epatch "${FILESDIR}"/${PN}-3.7-rpath.patch
42
43 # Avoid useless -L paths to the install dir
44 sed -i \
45 @@ -96,6 +95,7 @@
46 myesconsargs=(
47 prefix="${EPREFIX}/usr"
48 libdir="\$prefix/$(get_libdir)"
49 + chrpath=False
50 gpsd_user=gpsd
51 gpsd_group=uucp
52 strip=False
53
54
55
56 1.89 sci-geosciences/gpsd/ChangeLog
57
58 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/gpsd/ChangeLog?rev=1.89&view=markup
59 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/gpsd/ChangeLog?rev=1.89&content-type=text/plain
60 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/gpsd/ChangeLog?r1=1.88&r2=1.89
61
62 Index: ChangeLog
63 ===================================================================
64 RCS file: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/ChangeLog,v
65 retrieving revision 1.88
66 retrieving revision 1.89
67 diff -u -r1.88 -r1.89
68 --- ChangeLog 26 Jul 2012 15:06:26 -0000 1.88
69 +++ ChangeLog 1 Aug 2012 21:51:58 -0000 1.89
70 @@ -1,6 +1,12 @@
71 # ChangeLog for sci-geosciences/gpsd
72 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
73 -# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/ChangeLog,v 1.88 2012/07/26 15:06:26 kensington Exp $
74 +# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/ChangeLog,v 1.89 2012/08/01 21:51:58 vapier Exp $
75 +
76 +*gpsd-3.7 (01 Aug 2012)
77 +
78 + 01 Aug 2012; Mike Frysinger <vapier@g.o> +files/gpsd-3.7-rpath.patch,
79 + +gpsd-3.7.ebuild, gpsd-9999.ebuild:
80 + Version bump.
81
82 26 Jul 2012; Michael Palimaka <kensington@g.o> gpsd-2.95-r1.ebuild,
83 gpsd-2.96-r1.ebuild, gpsd-3.6.ebuild, gpsd-9999.ebuild:
84
85
86
87 1.1 sci-geosciences/gpsd/gpsd-3.7.ebuild
88
89 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/gpsd/gpsd-3.7.ebuild?rev=1.1&view=markup
90 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/gpsd/gpsd-3.7.ebuild?rev=1.1&content-type=text/plain
91
92 Index: gpsd-3.7.ebuild
93 ===================================================================
94 # Copyright 1999-2012 Gentoo Foundation
95 # Distributed under the terms of the GNU General Public License v2
96 # $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/gpsd-3.7.ebuild,v 1.1 2012/08/01 21:51:58 vapier Exp $
97
98 EAPI="4"
99
100 PYTHON_DEPEND="python? 2:2.6"
101 RESTRICT_PYTHON_ABIS="3.*"
102 SUPPORT_PYTHON_ABIS="1"
103 SCONS_MIN_VERSION="1.2.1"
104
105 inherit eutils user multilib distutils scons-utils toolchain-funcs
106
107 if [[ ${PV} == "9999" ]] ; then
108 EGIT_REPO_URI="git://git.savannah.nongnu.org/gpsd.git"
109 inherit git-2
110 else
111 SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz"
112 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
113 fi
114
115 DESCRIPTION="GPS daemon and library to support USB/serial GPS devices and various GPS/mapping clients"
116 HOMEPAGE="http://catb.org/gpsd/"
117
118 LICENSE="BSD"
119 SLOT="0"
120
121 GPSD_PROTOCOLS=(
122 ashtech aivdm clientdebug earthmate evermore fv18 garmin
123 garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver
124 oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip
125 tripmate tnt ubx
126 )
127 IUSE_GPSD_PROTOCOLS=${GPSD_PROTOCOLS[@]/#/gpsd_protocols_}
128 IUSE="${IUSE_GPSD_PROTOCOLS} bluetooth cxx debug dbus ipv6 ncurses ntp python qt4 +shm +sockets test udev usb X"
129 REQUIRED_USE="X? ( python )"
130
131 RDEPEND="X? ( dev-python/pygtk:2 )
132 ncurses? ( sys-libs/ncurses )
133 bluetooth? ( net-wireless/bluez )
134 usb? ( virtual/libusb:1 )
135 dbus? (
136 sys-apps/dbus
137 dev-libs/dbus-glib
138 )
139 ntp? ( || ( net-misc/ntp net-misc/chrony ) )
140 qt4? ( x11-libs/qt-gui:4 )"
141 DEPEND="${RDEPEND}
142 test? ( sys-devel/bc )"
143
144 # xml packages are for man page generation
145 if [[ ${PV} == "9999" ]] ; then
146 DEPEND+="
147 app-text/xmlto
148 =app-text/docbook-xml-dtd-4.1*"
149 fi
150
151 pkg_setup() {
152 use python && python_pkg_setup
153 }
154
155 src_prepare() {
156 epatch "${FILESDIR}"/${PN}-3.3-ldflags.patch
157 epatch "${FILESDIR}"/${PN}-3.4-always-install-man-pages.patch
158 epatch "${FILESDIR}"/${PN}-3.4-no-man-gen.patch
159 epatch "${FILESDIR}"/${PN}-3.7-rpath.patch
160
161 # Avoid useless -L paths to the install dir
162 sed -i \
163 -e '/^env.Prepend(LIBPATH=.installdir(.libdir.).)$/d' \
164 -e 's:\<STAGING_PREFIX\>:SYSROOT:g' \
165 SConstruct || die
166
167 # Extract python info out of SConstruct so we can use saner distribute
168 if use python ; then
169 pyvar() { sed -n "/^ *$1 *=/s:.*= *::p" SConstruct ; }
170 local pybins=$(pyvar python_progs)
171 local pysrcs=$(sed -n '/^ *python_extensions = {/,/}/{s:^ *::;s:os[.]sep:"/":g;p}' SConstruct)
172 local packet=$(python -c "${pysrcs}; print(python_extensions['gps/packet'])")
173 local client=$(python -c "${pysrcs}; print(python_extensions['gps/clienthelpers'])")
174 sed \
175 -e "s|@VERSION@|$(pyvar gpsd_version)|" \
176 -e "s|@URL@|$(pyvar website)|" \
177 -e "s|@EMAIL@|$(pyvar devmail)|" \
178 -e "s|@SCRIPTS@|${pybins}|" \
179 -e "s|@GPS_PACKET_SOURCES@|${packet}|" \
180 -e "s|@GPS_CLIENT_SOURCES@|${client}|" \
181 -e "s|@SCRIPTS@|$(pyvar python_progs)|" \
182 "${FILESDIR}"/${PN}-3.3-setup.py > setup.py || die
183 distutils_src_prepare
184 fi
185 }
186
187 src_configure() {
188 myesconsargs=(
189 prefix="${EPREFIX}/usr"
190 libdir="\$prefix/$(get_libdir)"
191 chrpath=False
192 gpsd_user=gpsd
193 gpsd_group=uucp
194 strip=False
195 python=False
196 $(use_scons bluetooth bluez)
197 $(use_scons cxx libgpsmm)
198 $(use_scons debug)
199 $(use_scons dbus dbus_export)
200 $(use_scons ipv6)
201 $(use_scons ncurses)
202 $(use_scons ntp ntpshm)
203 $(use_scons ntp pps)
204 $(use_scons shm shm_export)
205 $(use_scons sockets socket_export)
206 $(use_scons qt4 libQgpsmm)
207 $(use_scons usb)
208 )
209
210 # enable specified protocols
211 local protocol
212 for protocol in ${GPSD_PROTOCOLS[@]} ; do
213 myesconsargs+=( $(use_scons gpsd_protocols_${protocol} ${protocol}) )
214 done
215 }
216
217 src_compile() {
218 export CHRPATH=
219 tc-export CC CXX PKG_CONFIG
220 export SHLINKFLAGS=${LDFLAGS} LINKFLAGS=${LDFLAGS}
221 escons
222
223 use python && distutils_src_compile
224 }
225
226 src_install() {
227 DESTDIR="${D}" escons install $(usex udev udev-install "")
228
229 newconfd "${FILESDIR}"/gpsd.conf-2 gpsd
230 newinitd "${FILESDIR}"/gpsd.init-2 gpsd
231
232 if use python ; then
233 distutils_src_install
234 # Delete all X related packages if user doesn't want them
235 if ! use X ; then
236 local p
237 for p in $(grep -Il 'import .*pygtk' *) ; do
238 find "${D}"/usr/bin -name "${p}*" -delete
239 done
240 fi
241 fi
242 }
243
244 pkg_preinst() {
245 # Run the gpsd daemon as gpsd and group uucp; create it here
246 # as it doesn't seem to be needed during compile/install ...
247 enewuser gpsd -1 -1 -1 "uucp"
248 }
249
250 pkg_postinst() {
251 use python && distutils_pkg_postinst
252 }
253
254 pkg_postrm() {
255 use python && distutils_pkg_postrm
256 }