summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2015-11-25 10:55:27 +0100
committerGilles Dartiguelongue <eva@gentoo.org>2015-11-26 11:50:45 +0100
commit98e660fa6c7b5e79507349879b5a2d6354c6298a (patch)
treeecd2d6ca7777846bfb4b055137066a65253ba33f /app-misc/geoclue
parentapp-misc/gnote: fix X USE flag behavior (diff)
downloadgentoo-98e660fa6c7b5e79507349879b5a2d6354c6298a.tar.gz
gentoo-98e660fa6c7b5e79507349879b5a2d6354c6298a.tar.bz2
gentoo-98e660fa6c7b5e79507349879b5a2d6354c6298a.zip
app-misc/geoclue: add missing introspection support and add important local description for zeroconf USE flag
Package-Manager: portage-2.2.25
Diffstat (limited to 'app-misc/geoclue')
-rw-r--r--app-misc/geoclue/geoclue-2.4.0-r1.ebuild53
-rw-r--r--app-misc/geoclue/metadata.xml1
2 files changed, 54 insertions, 0 deletions
diff --git a/app-misc/geoclue/geoclue-2.4.0-r1.ebuild b/app-misc/geoclue/geoclue-2.4.0-r1.ebuild
new file mode 100644
index 000000000000..ab0513220c5c
--- /dev/null
+++ b/app-misc/geoclue/geoclue-2.4.0-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+GCONF_DEBUG="no"
+
+inherit gnome2 systemd user versionator
+
+MY_PV=$(get_version_component_range 1-2)
+DESCRIPTION="A geoinformation D-Bus service"
+HOMEPAGE="http://freedesktop.org/wiki/Software/GeoClue"
+SRC_URI="http://www.freedesktop.org/software/${PN}/releases/${MY_PV}/${P}.tar.xz"
+
+LICENSE="LGPL-2"
+SLOT="2.0"
+KEYWORDS="~alpha ~amd64 ~arm ~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_configure() {
+ # debug only affects CFLAGS
+ gnome2_src_configure \
+ --with-dbus-service-user=geoclue \
+ $(use_enable introspection) \
+ $(use_enable modemmanager 3g-source) \
+ $(use_enable modemmanager cdma-source) \
+ $(use_enable modemmanager modem-gps-source) \
+ $(use_enable zeroconf nmea-source) \
+ $(systemd_with_unitdir)
+}
+
+pkg_preinst() {
+ enewgroup geoclue
+ enewuser geoclue -1 -1 /var/lib/geoclue geoclue
+}
diff --git a/app-misc/geoclue/metadata.xml b/app-misc/geoclue/metadata.xml
index 280739e0eae7..977a113098cf 100644
--- a/app-misc/geoclue/metadata.xml
+++ b/app-misc/geoclue/metadata.xml
@@ -14,5 +14,6 @@
<flag name="plazes">Install plazes.com provider</flag>
<flag name="skyhook">Install skyhookwireless.com provider</flag>
<flag name="yahoo-geo">Install Yahoo geolocation provider</flag>
+ <flag name="zeroconf">Enable retrieval of GPS location from Android devices with https://wiki.gnome.org/Apps/GeoclueShare</flag>
</use>
</pkgmetadata>