1 |
vapier 11/11/20 06:59:00 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: gpsd-3.3.ebuild |
5 |
Log: |
6 |
Version bump #380883 by Andreas K. Hüttel and Ed Wildgoose. Add USE=X support for #369261 by Patrick. |
7 |
|
8 |
(Portage version: 2.2.0_alpha75/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.74 sci-geosciences/gpsd/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/gpsd/ChangeLog?rev=1.74&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/gpsd/ChangeLog?rev=1.74&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/gpsd/ChangeLog?r1=1.73&r2=1.74 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/ChangeLog,v |
20 |
retrieving revision 1.73 |
21 |
retrieving revision 1.74 |
22 |
diff -u -r1.73 -r1.74 |
23 |
--- ChangeLog 18 Jul 2011 07:09:17 -0000 1.73 |
24 |
+++ ChangeLog 20 Nov 2011 06:59:00 -0000 1.74 |
25 |
@@ -1,6 +1,14 @@ |
26 |
# ChangeLog for sci-geosciences/gpsd |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/ChangeLog,v 1.73 2011/07/18 07:09:17 scarabeus Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/ChangeLog,v 1.74 2011/11/20 06:59:00 vapier Exp $ |
30 |
+ |
31 |
+*gpsd-3.3 (20 Nov 2011) |
32 |
+ |
33 |
+ 20 Nov 2011; Mike Frysinger <vapier@g.o> +gpsd-3.3.ebuild, |
34 |
+ +files/gpsd-3.3-release-rev.patch, +files/gpsd-3.3-setup.py, |
35 |
+ +files/gpsd-3.3-udev-install.patch: |
36 |
+ Version bump #380883 by Andreas K. Hüttel and Ed Wildgoose. Add USE=X |
37 |
+ support for #369261 by Patrick. |
38 |
|
39 |
18 Jul 2011; Tomáš Chvátal <scarabeus@g.o> gpsd-2.96-r1.ebuild: |
40 |
Add sys-devel/bc as test dep. Fixes bug #363203. |
41 |
|
42 |
|
43 |
|
44 |
1.1 sci-geosciences/gpsd/gpsd-3.3.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/gpsd/gpsd-3.3.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-geosciences/gpsd/gpsd-3.3.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: gpsd-3.3.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2011 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpsd/gpsd-3.3.ebuild,v 1.1 2011/11/20 06:59:00 vapier Exp $ |
54 |
|
55 |
EAPI="4" |
56 |
|
57 |
PYTHON_DEPEND="python? 2:2.6" |
58 |
RESTRICT_PYTHON_ABIS="3.*" |
59 |
SUPPORT_PYTHON_ABIS="1" |
60 |
SCONS_MIN_VERSION="1.2.1" |
61 |
|
62 |
inherit eutils user multilib distutils scons-utils toolchain-funcs |
63 |
|
64 |
DESCRIPTION="GPS daemon and library to support USB/serial GPS devices and various GPS/mapping clients" |
65 |
HOMEPAGE="http://catb.org/gpsd/" |
66 |
SRC_URI="mirror://nongnu/${PN}/${P}.tar.gz" |
67 |
|
68 |
LICENSE="BSD" |
69 |
SLOT="0" |
70 |
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" |
71 |
|
72 |
GPSD_PROTOCOLS=( |
73 |
ashtech aivdm clientdebug earthmate evermore fv18 garmin |
74 |
garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver |
75 |
oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip |
76 |
tripmate tnt ubx |
77 |
) |
78 |
IUSE_GPSD_PROTOCOLS=${GPSD_PROTOCOLS[@]/#/gpsd_protocols_} |
79 |
IUSE="${IUSE_GPSD_PROTOCOLS} bluetooth cxx debug dbus ipv6 ncurses ntp python qt4 test udev usb X" |
80 |
REQUIRED_USE="X? ( python )" |
81 |
|
82 |
RDEPEND="X? ( dev-python/pygtk:2 ) |
83 |
ncurses? ( sys-libs/ncurses ) |
84 |
bluetooth? ( net-wireless/bluez ) |
85 |
usb? ( virtual/libusb:1 ) |
86 |
dbus? ( |
87 |
sys-apps/dbus |
88 |
dev-libs/dbus-glib |
89 |
) |
90 |
ntp? ( net-misc/ntp ) |
91 |
qt4? ( x11-libs/qt-gui )" |
92 |
# xml packages are for man page generation |
93 |
DEPEND="${RDEPEND} |
94 |
app-text/xmlto |
95 |
=app-text/docbook-xml-dtd-4.1* |
96 |
test? ( sys-devel/bc )" |
97 |
|
98 |
pkg_setup() { |
99 |
use python && python_pkg_setup |
100 |
} |
101 |
|
102 |
src_prepare() { |
103 |
epatch "${FILESDIR}"/${P}-release-rev.patch |
104 |
epatch "${FILESDIR}"/${P}-udev-install.patch |
105 |
|
106 |
# Avoid useless -L paths to the install dir |
107 |
sed -i \ |
108 |
-e '/env.Prepend.*LIBPATH=.*installdir/s:env.*:pass:' \ |
109 |
-e '/env.Prepend.*RPATH=/s:env.*:pass:' \ |
110 |
SConstruct || die |
111 |
|
112 |
# Extract python info out of SConstruct so we can use saner distribute |
113 |
if use python ; then |
114 |
pyvar() { sed -n "/^ *$1 *=/s:.*= *::p" SConstruct ; } |
115 |
local pybins=$(pyvar python_progs) |
116 |
local pysrcs=$(sed -n '/^ *python_extensions = {/,/}/{s:^ *::;s:os[.]sep:"/":g;p}' SConstruct) |
117 |
local packet=$(python -c "${pysrcs}; print(python_extensions['gps/packet'])") |
118 |
local client=$(python -c "${pysrcs}; print(python_extensions['gps/clienthelpers'])") |
119 |
sed \ |
120 |
-e "s|@VERSION@|$(pyvar gpsd_version)|" \ |
121 |
-e "s|@URL@|$(pyvar website)|" \ |
122 |
-e "s|@EMAIL@|$(pyvar devmail)|" \ |
123 |
-e "s|@SCRIPTS@|${pybins}|" \ |
124 |
-e "s|@GPS_PACKET_SOURCES@|${packet}|" \ |
125 |
-e "s|@GPS_CLIENT_SOURCES@|${client}|" \ |
126 |
-e "s|@SCRIPTS@|$(pyvar python_progs)|" \ |
127 |
"${FILESDIR}"/${PN}-3.3-setup.py > setup.py || die |
128 |
distutils_src_prepare |
129 |
fi |
130 |
} |
131 |
|
132 |
src_configure() { |
133 |
myesconsargs=( |
134 |
prefix=/usr |
135 |
libdir="/$(get_libdir)" |
136 |
gpsd_user=gpsd |
137 |
gpsd_group=uucp |
138 |
strip=False |
139 |
python=False |
140 |
$(use_scons bluetooth bluez) |
141 |
$(use_scons cxx libgpsmm) |
142 |
$(use_scons debug) |
143 |
$(use_scons dbus dbus-export) |
144 |
$(use_scons ipv6) |
145 |
$(use_scons ncurses) |
146 |
$(use_scons ntp ntpshm) |
147 |
$(use_scons ntp pps) |
148 |
$(use_scons qt4 libQgpsmm) |
149 |
$(use_scons usb) |
150 |
) |
151 |
|
152 |
# enable specified protocols |
153 |
local protocol |
154 |
for protocol in ${GPSD_PROTOCOLS[@]} ; do |
155 |
myesconsargs+=( $(use_scons gpsd_protocols_${protocol} ${protocol}) ) |
156 |
done |
157 |
} |
158 |
|
159 |
src_compile() { |
160 |
export CHRPATH=true |
161 |
tc-export CC CXX |
162 |
export SHLINKFLAGS=${LDFLAGS} LINKFLAGS=${LDFLAGS} |
163 |
escons |
164 |
|
165 |
use python && distutils_src_compile |
166 |
} |
167 |
|
168 |
src_install() { |
169 |
DESTDIR="${D}" escons install $(usex udev udev-install "") |
170 |
|
171 |
newconfd "${FILESDIR}"/gpsd.conf-2 gpsd |
172 |
newinitd "${FILESDIR}"/gpsd.init-2 gpsd |
173 |
|
174 |
if use python ; then |
175 |
distutils_src_install |
176 |
# Delete all X related packages if user doesn't want them |
177 |
if ! use X ; then |
178 |
local p |
179 |
for p in $(grep -Il 'import .*pygtk' *) ; do |
180 |
find "${D}"/usr/bin -name "${p}*" -delete |
181 |
done |
182 |
fi |
183 |
fi |
184 |
} |
185 |
|
186 |
pkg_preinst() { |
187 |
# Run the gpsd daemon as gpsd and group uucp; create it here |
188 |
# as it doesn't seem to be needed during compile/install ... |
189 |
enewuser gpsd -1 -1 -1 "uucp" |
190 |
} |
191 |
|
192 |
pkg_postinst() { |
193 |
use python && distutils_pkg_postinst |
194 |
} |
195 |
|
196 |
pkg_postrm() { |
197 |
use python && distutils_pkg_postrm |
198 |
} |