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