blob: 4748e7b60d88d8ce2d3b0c81404da03651a45c1a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
inherit gnome2 systemd user versionator
MY_PV=$(get_version_component_range 1-2)
DESCRIPTION="A geoinformation D-Bus service"
HOMEPAGE="https://freedesktop.org/wiki/Software/GeoClue"
SRC_URI="https://www.freedesktop.org/software/${PN}/releases/${MY_PV}/${P}.tar.xz"
LICENSE="LGPL-2"
SLOT="2.0"
KEYWORDS="~alpha amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc x86 ~amd64-fbsd"
IUSE="+introspection +modemmanager zeroconf"
RDEPEND="
>=dev-libs/glib-2.34:2
>=dev-libs/json-glib-0.14
>=net-libs/libsoup-2.42:2.4
sys-apps/dbus
introspection? ( >=dev-libs/gobject-introspection-0.9.6:= )
modemmanager? ( >=net-misc/modemmanager-1 )
zeroconf? ( >=net-dns/avahi-0.6.10 )
!<sci-geosciences/geocode-glib-3.10.0
"
DEPEND="${RDEPEND}
dev-util/gdbus-codegen
>=dev-util/gtk-doc-am-1
>=dev-util/intltool-0.40
sys-devel/gettext
virtual/pkgconfig
"
src_prepare() {
epatch "${FILESDIR}"/${PN}-2.4.1-fix-GLIBC-features.patch
gnome2_src_prepare
}
src_configure() {
# debug only affects CFLAGS
gnome2_src_configure \
--enable-backend \
--with-dbus-service-user=geoclue \
--with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \
$(use_enable introspection) \
$(use_enable modemmanager 3g-source) \
$(use_enable modemmanager cdma-source) \
$(use_enable modemmanager modem-gps-source) \
$(use_enable zeroconf nmea-source)
}
pkg_preinst() {
enewgroup geoclue
enewuser geoclue -1 -1 /var/lib/geoclue geoclue
gnome2_pkg_preinst
}
|