Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/geoclue/
Date: Sat, 28 Jan 2023 22:30:12
Message-Id: 1674944433.4706b7b7f08dc98878e77715b0f580e02ffbfd42.mattst88@gentoo
1 commit: 4706b7b7f08dc98878e77715b0f580e02ffbfd42
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 28 22:18:48 2023 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 28 22:20:33 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4706b7b7
7
8 app-misc/geoclue: Version bump to 2.7.0
9
10 Closes: https://bugs.gentoo.org/880847
11 Closes: https://bugs.gentoo.org/892391
12 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
13
14 app-misc/geoclue/Manifest | 1 +
15 app-misc/geoclue/geoclue-2.7.0.ebuild | 81 +++++++++++++++++++++++++++++++++++
16 2 files changed, 82 insertions(+)
17
18 diff --git a/app-misc/geoclue/Manifest b/app-misc/geoclue/Manifest
19 index 8886d3cf90e0..5892004d8695 100644
20 --- a/app-misc/geoclue/Manifest
21 +++ b/app-misc/geoclue/Manifest
22 @@ -1 +1,2 @@
23 DIST geoclue-2.6.0.tar.bz2 94890 BLAKE2B d579752482e77e6ec6df3cb34f6b1c7ca61ea425f1c29195f1bcd031afe22644aed2f5b3f75e82c20e0e3cf0d415ca858b30351b2ee3835fff0ca25e63fc6395 SHA512 13205ab88cbd9748c155081318ae1909fddedce4250e3ece39a9f379b8cfea91dfe571961e278406ba54f8efd3a1070967479feb8256f50170112b28246b3103
24 +DIST geoclue-2.7.0.tar.bz2 105353 BLAKE2B b9bcf29bcdb5302d3df29f48ec235265582ec60badc4f71469faa0d100f860f943529c6a74aadec4b03cbc1474f5eab837b1b9b19ba5c7e0ab0fb6c868db727a SHA512 2314242f529b9011ee5da6e8cfc657568853769e4d38b8e7c604097a747dd5705d9f84dcd2763cdacb9f014e15b63fbb8356d6cb488ba91334cda87c11e4ee7d
25
26 diff --git a/app-misc/geoclue/geoclue-2.7.0.ebuild b/app-misc/geoclue/geoclue-2.7.0.ebuild
27 new file mode 100644
28 index 000000000000..3a832c0652a5
29 --- /dev/null
30 +++ b/app-misc/geoclue/geoclue-2.7.0.ebuild
31 @@ -0,0 +1,81 @@
32 +# Copyright 1999-2023 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +PYTHON_COMPAT=( python3_{9..11} )
37 +PYTHON_REQ_USE="xml(+)"
38 +
39 +inherit meson python-any-r1 systemd vala xdg
40 +
41 +DESCRIPTION="A location information D-Bus service"
42 +HOMEPAGE="https://gitlab.freedesktop.org/geoclue/geoclue/wikis/home"
43 +SRC_URI="https://gitlab.freedesktop.org/geoclue/${PN}/-/archive/${PV}/${P}.tar.bz2"
44 +
45 +LICENSE="LGPL-2.1+ GPL-2+"
46 +SLOT="2.0"
47 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
48 +IUSE="+introspection gtk-doc modemmanager vala zeroconf"
49 +REQUIRED_USE="vala? ( introspection )"
50 +
51 +DEPEND="
52 + >=dev-libs/glib-2.44:2
53 + >=dev-libs/json-glib-0.14.0
54 + >=net-libs/libsoup-3.0.0:3.0
55 + introspection? ( >=dev-libs/gobject-introspection-1.54:= )
56 + modemmanager? ( >=net-misc/modemmanager-1.6 )
57 + zeroconf? ( >=net-dns/avahi-0.6.10[dbus] )
58 + x11-libs/libnotify
59 +"
60 +RDEPEND="${DEPEND}
61 + acct-user/geoclue
62 + sys-apps/dbus
63 +"
64 +BDEPEND="
65 + ${PYTHON_DEPS}
66 + dev-util/gdbus-codegen
67 + dev-util/glib-utils
68 + gtk-doc? (
69 + app-text/docbook-xml-dtd:4.1.2
70 + >=dev-util/gtk-doc-1 )
71 + >=sys-devel/gettext-0.19.8
72 + virtual/pkgconfig
73 + vala? ( $(vala_depend) )
74 +"
75 +
76 +src_prepare() {
77 + default
78 + use vala && vala_setup
79 + xdg_environment_reset
80 +}
81 +
82 +src_configure() {
83 + local emesonargs=(
84 + -Dlibgeoclue=true
85 + $(meson_use introspection)
86 + $(meson_use vala vapi)
87 + $(meson_use gtk-doc)
88 + $(meson_use modemmanager 3g-source)
89 + $(meson_use modemmanager cdma-source)
90 + $(meson_use modemmanager modem-gps-source)
91 + $(meson_use zeroconf nmea-source)
92 + -Dcompass=true
93 + -Denable-backend=true
94 + -Ddemo-agent=true
95 + -Dsystemd-system-unit-dir="$(systemd_get_systemunitdir)"
96 + -Ddbus-srv-user=geoclue
97 +
98 + -Dmozilla-api-key=f57afde7-113f-4e8f-96d1-62be64a0273c
99 + )
100 +
101 + DISTRO="$(awk -F= '/^NAME/ {print $2}' /etc/os-release | tr -d \" )"
102 + if [[ $DISTRO != Gentoo ]]; then
103 + eerror "The following API key has been allocated for Gentoo only."
104 + eerror "If you are a derivative, please request your own key as discussed here:"
105 + eerror "https://gitlab.freedesktop.org/geoclue/geoclue/-/issues/136"
106 + eerror "See also: https://location.services.mozilla.com/api and"
107 + eerror "https://blog.mozilla.org/services/2019/09/03/a-new-policy-for-mozilla-location-service/"
108 + die "Please request an API key for your distribution."
109 + fi
110 +
111 + meson_src_configure
112 +}