|
Lines 5-16
Link Here
|
| 5 |
EAPI=3 |
5 |
EAPI=3 |
| 6 |
|
6 |
|
| 7 |
PYTHON_DEPEND="2:2.6" |
7 |
PYTHON_DEPEND="2:2.6" |
|
|
8 |
SCONS_MIN_VERSION="1.2.1" |
| 8 |
|
9 |
|
| 9 |
inherit python base autotools |
10 |
inherit base eutils python scons-utils |
| 10 |
|
11 |
|
| 11 |
DESCRIPTION="GPS daemon and library to support USB/serial GPS devices and various GPS/mapping clients." |
12 |
DESCRIPTION="GPS daemon and library to support USB/serial GPS devices and various GPS/mapping clients." |
| 12 |
HOMEPAGE="http://gpsd.berlios.de/" |
13 |
HOMEPAGE="http://gpsd.berlios.de/" |
| 13 |
SRC_URI="mirror://berlios/gpsd/${P}bis.tar.gz" |
14 |
SRC_URI="mirror://berlios/gpsd/${P}.tar.gz" |
| 14 |
|
15 |
|
| 15 |
LICENSE="BSD" |
16 |
LICENSE="BSD" |
| 16 |
SLOT="0" |
17 |
SLOT="0" |
|
Lines 24-30
Link Here
|
| 24 |
IUSE_GPSD_PROTOCOLS+=" gpsd_protocols_${protocol}" |
25 |
IUSE_GPSD_PROTOCOLS+=" gpsd_protocols_${protocol}" |
| 25 |
done |
26 |
done |
| 26 |
|
27 |
|
| 27 |
IUSE="${IUSE_GPSD_PROTOCOLS} dbus ipv6 ntp qt4 test udev" |
28 |
IUSE="${IUSE_GPSD_PROTOCOLS} debug dbus ipv6 ntp qt4 test udev" |
| 28 |
|
29 |
|
| 29 |
# those harddeps are de-facto automagicall |
30 |
# those harddeps are de-facto automagicall |
| 30 |
RDEPEND=" |
31 |
RDEPEND=" |
|
Lines 43-54
Link Here
|
| 43 |
=app-text/docbook-xml-dtd-4.1* |
44 |
=app-text/docbook-xml-dtd-4.1* |
| 44 |
test? ( sys-devel/bc )" |
45 |
test? ( sys-devel/bc )" |
| 45 |
|
46 |
|
| 46 |
PATCHES=( |
47 |
#PATCHES=( |
| 47 |
"${FILESDIR}/2.95-disable-strip.patch" |
48 |
#) |
| 48 |
"${FILESDIR}/${PV}-fix-ldflags.patch" |
|
|
| 49 |
"${FILESDIR}/${PV}-fix-tests.patch" |
| 50 |
"${FILESDIR}/${PV}-pkgconfig.patch" |
| 51 |
) |
| 52 |
|
49 |
|
| 53 |
pkg_setup() { |
50 |
pkg_setup() { |
| 54 |
python_set_active_version 2 |
51 |
python_set_active_version 2 |
|
Lines 57-98
Link Here
|
| 57 |
enewuser gpsd -1 -1 -1 "uucp" |
54 |
enewuser gpsd -1 -1 -1 "uucp" |
| 58 |
} |
55 |
} |
| 59 |
|
56 |
|
| 60 |
src_prepare() { |
57 |
src_compile() { |
| 61 |
base_src_prepare |
|
|
| 62 |
eautoreconf |
| 63 |
} |
| 64 |
|
| 65 |
src_configure() { |
| 66 |
local myopts |
58 |
local myopts |
| 67 |
|
59 |
|
| 68 |
# enable specified protocols |
60 |
# enable specified protocols |
| 69 |
for protocol in ${GPSD_PROTOCOLS}; do |
61 |
for protocol in ${GPSD_PROTOCOLS}; do |
| 70 |
myopts+=" $(use_enable gpsd_protocols_${protocol} ${protocol})" |
62 |
myopts+=" $(use_scons gpsd_protocols_${protocol} ${protocol})" |
| 71 |
done |
63 |
done |
| 72 |
|
64 |
|
| 73 |
if ! use qt4 ; then |
65 |
if ! use qt4 ; then |
| 74 |
myopts+=" --disable-libQgpsmm --disable-libgpsmm" |
66 |
myopts+=" libQgpsmm=False libgpsmm=False" |
| 75 |
fi |
67 |
fi |
| 76 |
|
68 |
|
| 77 |
# --disable-bluetooth: considered experimental -> disable |
69 |
escons \ |
| 78 |
# Hack to make it not generate docs on the fly; xmlto is |
70 |
gpsd-user=gpsd \ |
| 79 |
# needed for man pages (xsltproc is only needed for web pages) |
71 |
gpsd-group=uucp \ |
| 80 |
WITH_XMLTO=yes WITH_XSLTPROC=no econf \ |
72 |
strip=False \ |
| 81 |
--disable-dependency-tracking \ |
73 |
$(use_scons debug) \ |
| 82 |
--disable-bluetooth \ |
74 |
$(use_scons dbus dbus-export) \ |
| 83 |
--disable-static \ |
75 |
$(use_scons ipv6) \ |
| 84 |
--enable-gpsd-user=gpsd \ |
76 |
$(use_scons ntp ntpshm) \ |
| 85 |
--enable-gpsd-group=uucp \ |
77 |
$(use_scons ntp pps) \ |
| 86 |
$(use_enable dbus) \ |
|
|
| 87 |
$(use_enable ipv6) \ |
| 88 |
$(use_enable ntp ntpshm) \ |
| 89 |
$(use_enable ntp pps) \ |
| 90 |
${myopts} |
78 |
${myopts} |
| 91 |
} |
79 |
} |
| 92 |
|
80 |
|
| 93 |
src_install() { |
81 |
src_install() { |
| 94 |
# no it can't be done using emake cause it is non-compliant |
82 |
# STRIP= is a hack to prevent the scons build stripping binaries. |
| 95 |
make DESTDIR="${D}" install || die |
83 |
# gpsd 3.1+ expected to support strip flag to control stripping |
|
|
84 |
DESTDIR="${D}" STRIP="/bin/true" escons prefix="/usr/" install || die |
| 96 |
|
85 |
|
| 97 |
if use udev ; then |
86 |
if use udev ; then |
| 98 |
insinto /lib/udev/rules.d/ |
87 |
insinto /lib/udev/rules.d/ |