summaryrefslogtreecommitdiff
blob: 14c24d4770a653f37c6a123a2cb9970c20bc92da (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit autotools

DESCRIPTION="A modular geoinformation service built on top of the D-Bus messaging system"
HOMEPAGE="http://freedesktop.org/wiki/Software/GeoClue"
SRC_URI="http://folks.o-hand.com/jku/geoclue-releases/${P}.tar.gz"

LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="dbus doc gpsd gtk networkmanager"

RDEPEND=">=dev-libs/glib-2
        >=gnome-base/gconf-2
        >=dev-libs/dbus-glib-0.60
        dev-libs/libxml2
	gpsd? ( sci-geosciences/gpsd )
        gtk? ( >=x11-libs/gtk+-2 )
	networkmanager? ( net-misc/networkmanager )"
DEPEND="${RDEPEND}
        dev-util/pkgconfig
        dev-libs/libxslt
        doc? ( >=dev-util/gtk-doc )"

src_unpack() {
	unpack ${A}
	cd "${S}"

	# Remove automagic deps b.fd.o #22416
	epatch "${FILESDIR}/0001-Remove-automagic-deps-and-add-switches-to-enable-dis.patch"
	epatch "${FILESDIR}/0002-Fix-NM-pkgcheck.patch"

	eautoreconf
}

src_compile() {
	# gross hack to make it build
	LDFLAGS=""
	econf --disable-conic --disable-gypsy --disable-gsmloc \
		$(use_enable gpsd) \
		$(use_enable gtk) \
		$(use_enable networkmanager) || die "econf failed"
	emake || die "Make failed"
}

src_install() {
	make DESTDIR="${D}" install || die "make install failed"
	dodoc AUTHORS README || die "dodoc failed"
}