From 7366ba4745a1cbe42909862e49e11e9e1c43045e Mon Sep 17 00:00:00 2001 From: ayuayuayu Date: Mon, 20 Jun 2022 04:30:37 +0000 Subject: [PATCH] net-libs/webkit-gtk-2.36.3: remove app-misc/geoclue dependency Signed-off-by: ayuayuayu --- net-libs/webkit-gtk/webkit-gtk-2.36.3.ebuild | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/net-libs/webkit-gtk/webkit-gtk-2.36.3.ebuild b/net-libs/webkit-gtk/webkit-gtk-2.36.3.ebuild index 66607964..8c7761ac 100644 --- a/net-libs/webkit-gtk/webkit-gtk-2.36.3.ebuild +++ b/net-libs/webkit-gtk/webkit-gtk-2.36.3.ebuild @@ -6,7 +6,7 @@ PYTHON_REQ_USE="xml(+)" PYTHON_COMPAT=( python3_{8..11} ) USE_RUBY="ruby27 ruby30 ruby31" -inherit check-reqs flag-o-matic gnome2 python-any-r1 ruby-single toolchain-funcs cmake +inherit check-reqs flag-o-matic gnome2 optfeature python-any-r1 ruby-single toolchain-funcs cmake MY_P="webkitgtk-${PV}" DESCRIPTION="Open source web browser engine" @@ -17,7 +17,7 @@ LICENSE="LGPL-2+ BSD" SLOT="4/37" # soname version of libwebkit2gtk-4.0 KEYWORDS="amd64 ~arm arm64 ~ppc ~ppc64 ~riscv ~sparc x86" -IUSE="aqua avif +egl examples gamepad +geolocation gles2-only gnome-keyring +gstreamer gtk-doc +introspection +jpeg2k +jumbo-build lcms libnotify seccomp spell systemd test wayland X" +IUSE="aqua avif +egl examples gamepad gles2-only gnome-keyring +gstreamer gtk-doc +introspection +jpeg2k +jumbo-build lcms libnotify seccomp spell systemd test wayland X" # gstreamer with opengl/gles2 needs egl REQUIRED_USE=" @@ -126,9 +126,6 @@ BDEPEND=" # dev-python/pygobject:3[python_targets_python2_7] # x11-themes/hicolor-icon-theme # ) -RDEPEND="${RDEPEND} - geolocation? ( >=app-misc/geoclue-2.1.5:2.0 ) -" S="${WORKDIR}/${MY_P}" @@ -210,7 +207,7 @@ src_configure() { -DENABLE_API_TESTS=$(usex test) -DENABLE_BUBBLEWRAP_SANDBOX=$(usex seccomp) -DENABLE_GAMEPAD=$(usex gamepad) - -DENABLE_GEOLOCATION=$(usex geolocation) # Runtime optional (talks over dbus service) + -DENABLE_GEOLOCATION=ON # Runtime optional (talks over dbus service) -DENABLE_MINIBROWSER=$(usex examples) -DENABLE_SPELLCHECK=$(usex spell) -DENABLE_UNIFIED_BUILDS=$(usex jumbo-build) @@ -247,3 +244,7 @@ src_configure() { WK_USE_CCACHE=NO cmake_src_configure } + +pkg_postinst() { + optfeature "geolocation service (used at runtime if available)" ">=app-misc/geoclue-2.1.5:2.0" +} -- 2.35.1