summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin McCarthy <signals@gentoo.org>2011-03-07 20:29:50 +0000
committerKevin McCarthy <signals@gentoo.org>2011-03-07 20:29:50 +0000
commitb6af187203c1620d33591ad3abb57a0e989028f2 (patch)
treec38b62bcb9f699f71097ec54a069810ad172b646 /app-misc/geoclue
parentStable for HPPA (bug #353436). (diff)
downloadgentoo-2-b6af187203c1620d33591ad3abb57a0e989028f2.tar.gz
gentoo-2-b6af187203c1620d33591ad3abb57a0e989028f2.tar.bz2
gentoo-2-b6af187203c1620d33591ad3abb57a0e989028f2.zip
New ebuild for Geoclue. Ebuild by signals@gentoo.org.
(Portage version: 2.2.0_alpha26/cvs/Linux x86_64)
Diffstat (limited to 'app-misc/geoclue')
-rw-r--r--app-misc/geoclue/ChangeLog12
-rw-r--r--app-misc/geoclue/files/geoclue-0.12.0_p20110307-use-fallback-mac.patch16
-rw-r--r--app-misc/geoclue/files/geoclue-0.12.0_p20110307-use-flag.patch79
-rw-r--r--app-misc/geoclue/geoclue-0.12.0_p20110307.ebuild63
-rw-r--r--app-misc/geoclue/metadata.xml22
5 files changed, 192 insertions, 0 deletions
diff --git a/app-misc/geoclue/ChangeLog b/app-misc/geoclue/ChangeLog
new file mode 100644
index 000000000000..4aed91dd3c36
--- /dev/null
+++ b/app-misc/geoclue/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for app-misc/geoclue
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/geoclue/ChangeLog,v 1.1 2011/03/07 20:29:50 signals Exp $
+
+*geoclue-0.12.0_p20110307 (07 Mar 2011)
+
+ 07 Mar 2011; Kevin McCarthy <signals@gentoo.org>
+ +geoclue-0.12.0_p20110307.ebuild,
+ +files/geoclue-0.12.0_p20110307-use-fallback-mac.patch,
+ +files/geoclue-0.12.0_p20110307-use-flag.patch, +metadata.xml:
+ New ebuild for Geoclue. Ebuild by signals@gentoo.org.
+
diff --git a/app-misc/geoclue/files/geoclue-0.12.0_p20110307-use-fallback-mac.patch b/app-misc/geoclue/files/geoclue-0.12.0_p20110307-use-fallback-mac.patch
new file mode 100644
index 000000000000..9c9115a284ef
--- /dev/null
+++ b/app-misc/geoclue/files/geoclue-0.12.0_p20110307-use-fallback-mac.patch
@@ -0,0 +1,16 @@
+Force geoclue to use the "fallback" mac address fetching code.
+The NM-based code does not seem to work.
+
+Patch by Kevin McCarthy <signals@gentoo.org>
+
+--- src/connectivity.c
++++ src/connectivity.c
+@@ -218,7 +218,7 @@
+ geoclue_connectivity_get_router_mac (GeoclueConnectivity *self)
+ {
+ if (self == NULL ||
+- GEOCLUE_CONNECTIVITY_GET_INTERFACE (self)->get_router_mac == NULL) {
++ GEOCLUE_CONNECTIVITY_GET_INTERFACE (self)->get_router_mac == NULL || 1) {
+ char *mac = NULL;
+ guint i;
+ int ret_val;
diff --git a/app-misc/geoclue/files/geoclue-0.12.0_p20110307-use-flag.patch b/app-misc/geoclue/files/geoclue-0.12.0_p20110307-use-flag.patch
new file mode 100644
index 000000000000..236c98928ba7
--- /dev/null
+++ b/app-misc/geoclue/files/geoclue-0.12.0_p20110307-use-flag.patch
@@ -0,0 +1,79 @@
+Add configure options for all providers except localnet.
+
+Patch by Kevin McCarthy <signals@gentoo.org>
+
+--- configure.ac
++++ configure.ac
+@@ -158,7 +158,71 @@
+ AC_SUBST(CONNECTIVITY_LIBS)
+ AC_SUBST(CONNECTIVITY_CFLAGS)
+
+-PROVIDER_SUBDIRS="example hostip geonames nominatim manual plazes localnet yahoo gsmloc"
++PROVIDER_SUBDIRS="localnet"
++
++AC_ARG_ENABLE(hostip,
++ AS_HELP_STRING([--enable-hostip=@<:@no/yes/auto@:>@],
++ [build with hostip support]), ,
++ enable_hostip=auto)
++
++if test "x$enable_hostip" != "xno"; then
++ PROVIDER_SUBDIRS="$PROVIDER_SUBDIRS hostip"
++fi
++
++AC_ARG_ENABLE(geonames,
++ AS_HELP_STRING([--enable-geonames=@<:@no/yes/auto@:>@],
++ [build with geonames support]), ,
++ enable_geonames=auto)
++
++if test "x$enable_geonames" != "xno"; then
++ PROVIDER_SUBDIRS="$PROVIDER_SUBDIRS geonames"
++fi
++
++AC_ARG_ENABLE(nominatim,
++ AS_HELP_STRING([--enable-nominatim=@<:@no/yes/auto@:>@],
++ [build with nominatim support]), ,
++ enable_nominatim=auto)
++
++if test "x$enable_nominatim" != "xno"; then
++ PROVIDER_SUBDIRS="$PROVIDER_SUBDIRS nominatim"
++fi
++
++AC_ARG_ENABLE(manual,
++ AS_HELP_STRING([--enable-manual=@<:@no/yes/auto@:>@],
++ [build with manual support]), ,
++ enable_manual=auto)
++
++if test "x$enable_manual" != "xno"; then
++ PROVIDER_SUBDIRS="$PROVIDER_SUBDIRS manual"
++fi
++
++AC_ARG_ENABLE(plazes,
++ AS_HELP_STRING([--enable-plazes=@<:@no/yes/auto@:>@],
++ [build with plazes support]), ,
++ enable_plazes=auto)
++
++if test "x$enable_plazes" != "xno"; then
++ PROVIDER_SUBDIRS="$PROVIDER_SUBDIRS plazes"
++fi
++
++AC_ARG_ENABLE(yahoo,
++ AS_HELP_STRING([--enable-yahoo=@<:@no/yes/auto@:>@],
++ [build with yahoo support]), ,
++ enable_yahoo=auto)
++
++if test "x$enable_yahoo" != "xno"; then
++ PROVIDER_SUBDIRS="$PROVIDER_SUBDIRS yahoo"
++fi
++
++AC_ARG_ENABLE(gsmloc,
++ AS_HELP_STRING([--enable-gsmloc=@<:@no/yes/auto@:>@],
++ [build with gsmloc support]), ,
++ enable_gsmloc=auto)
++
++if test "x$enable_gsmloc" != "xno"; then
++ PROVIDER_SUBDIRS="$PROVIDER_SUBDIRS gsmloc"
++fi
++
+
+ # -----------------------------------------------------------
+ # gypsy / gpsd / skyhook
diff --git a/app-misc/geoclue/geoclue-0.12.0_p20110307.ebuild b/app-misc/geoclue/geoclue-0.12.0_p20110307.ebuild
new file mode 100644
index 000000000000..5ca56f1579d8
--- /dev/null
+++ b/app-misc/geoclue/geoclue-0.12.0_p20110307.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/geoclue/geoclue-0.12.0_p20110307.ebuild,v 1.1 2011/03/07 20:29:50 signals Exp $
+
+EAPI=4
+inherit autotools eutils
+
+DESCRIPTION="A geoinformation D-Bus service"
+HOMEPAGE="http://freedesktop.org/wiki/Software/GeoClue"
+SRC_URI="http://dev.gentoo.org/~signals/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="geonames gpsd gsmloc gtk hostip manual networkmanager nominatim plazes
+ skyhook yahoo-geo"
+
+REQUIRED_USE="skyhook? ( networkmanager )"
+
+RDEPEND="dev-libs/dbus-glib
+ dev-libs/glib:2
+ dev-libs/libxml2
+ gnome-base/gconf
+ skyhook? ( net-libs/libsoup )
+ sys-apps/dbus
+ gtk? ( x11-libs/gtk+:2 )
+ gpsd? ( sci-geosciences/gpsd )
+ networkmanager? ( net-misc/networkmanager )"
+DEPEND="${RDEPEND}
+ dev-util/gtk-doc
+ dev-util/gtk-doc-am"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-use-flag.patch \
+ "${FILESDIR}"/${P}-use-fallback-mac.patch
+ gtkdocize || die
+ eautoreconf
+}
+
+src_configure() {
+ # Conic is only for Maemo. Don't enable.
+ # Gypsy has multiple vulnerabilities:
+ # https://bugs.freedesktop.org/show_bug.cgi?id=33431
+ econf \
+ --disable-conic \
+ --disable-gypsy \
+ $(use_enable geonames) \
+ $(use_enable gpsd) \
+ $(use_enable gsmloc) \
+ $(use_enable gtk) \
+ $(use_enable hostip) \
+ $(use_enable manual) \
+ $(use_enable networkmanager) \
+ $(use_enable nominatim) \
+ $(use_enable plazes) \
+ $(use_enable skyhook) \
+ $(use_enable yahoo-geo yahoo)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ use gtk && dobin test/.libs/geoclue-test-gui
+}
diff --git a/app-misc/geoclue/metadata.xml b/app-misc/geoclue/metadata.xml
new file mode 100644
index 000000000000..a20aff43d5f8
--- /dev/null
+++ b/app-misc/geoclue/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>desktop-misc</herd>
+ <maintainer>
+ <email>signals@gentoo.org</email>
+ <name>Kevin McCarthy</name>
+ </maintainer>
+ <use>
+ <flag name="geonames">Install geonames.org provider</flag>
+ <flag name="gpsd">Install sci-geosciences/gpsd provider</flag>
+ <flag name="gsmloc">Install GSM location provider</flag>
+ <flag name="gtk">Install gtk-based geoclue-test-gui</flag>
+ <flag name="hostip">Install hostip.info provder</flag>
+ <flag name="manual">Install manual provider</flag>
+ <flag name="nominatim">Install openstreetmap.org provider</flag>
+ <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>
+ </use>
+</pkgmetadata>
+