commit:     dc35ca10d40506165a67e369d5210359b7fd3cb5
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Sun Jan  4 07:22:48 2026 +0000
Commit:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Sun Jan  4 07:35:49 2026 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=dc35ca10

phosh-base/phosh-shell: add 0.51.0, drop 0.48.0

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>

 phosh-base/phosh-shell/Manifest                    |  4 +-
 ...ell-0.48.0.ebuild => phosh-shell-0.51.0.ebuild} | 56 +++++++++++++++++-----
 2 files changed, 47 insertions(+), 13 deletions(-)

diff --git a/phosh-base/phosh-shell/Manifest b/phosh-base/phosh-shell/Manifest
index 243d9ae75e..14a2b725ad 100644
--- a/phosh-base/phosh-shell/Manifest
+++ b/phosh-base/phosh-shell/Manifest
@@ -1,6 +1,6 @@
-DIST phosh-0.48.0.tar.xz 1025860 BLAKE2B 
e09746ad13714599e3f5e59fa7ab1a24aad816d175c2f37edac25daab7619c3101167b31b0789c536f48f5b7d866dd2b0dbd2e904ad99f21bc3e2b4f9a35c5b2
 SHA512 
7d689b29d39aae0937fdcf22c8fe5267de6174487d75df67a3d71e7cb23b765ce138e8c7769256cb0ca006241692ec8376f5119f1c576c2ea2edc437abcda335
-DIST phosh-0.48.0.tar.xz.asc 833 BLAKE2B 
b7c30f692f1db539d0175f996f0cf24a6e51067424fee3f106f3be9c5bbe9ef1f7ff2f413c9e2d8f7dd17ad89972e5e14bd6124995498d1aa1efec5f4d2059c3
 SHA512 
00d8a62f60cd9d0f2b4453cdf0a3422342c012693763d7f7d3f0500b80701e5c169d65b6f4d54220621e9dda9af5260dcb260b9fa1f1e6f8cb7a43e819b354ba
 DIST phosh-0.49.0.tar.xz 1048056 BLAKE2B 
03df719cbcb95a1378b8f45c8a21dffcc188e4dfb43147b57e90edfe9be1321db56ae3dca2071365b4227b549bdddceecdeddaf3fe26d6168c82f0398ade9d19
 SHA512 
103fd004c3f9cd534842c52720dedd9faa83f6c16abf6b6a1b7af905fe992159ba3a5b6d0be40c75799c8cc492d484f07638fede1161257e504c9d65ccbb2afb
 DIST phosh-0.49.0.tar.xz.asc 833 BLAKE2B 
c9dd9ea6d3c11be14b7a1aecfeeb3bf083140f96e98bb2376cb951b0e3f1383c29e99ec6a6fe29fbd5674b5521977023dc40c381eb9d8c2a6159c06726617c03
 SHA512 
f4cfc61a73b5a8bbd9de67228a2d7beb4bf37632480d3be477b6ba5af1c9646cec8ca0c15570cc7de2c8f83d3403c4549ff7a232ebf98b04ba1aa62e1d077d36
 DIST phosh-0.50.1.tar.xz 1108616 BLAKE2B 
3450c6df5059d5206bbfe7424d7efa24dced1f57a44d31cc68c105c16fe4b5d692c2ccdbf2b8f6911496b377682750f9cdb209f28e615e36d954e561d2509f94
 SHA512 
d9b4d05ecc7d287d75d514e1dc78e308d0e551486cb38e95ab645615469d1a84c5bd1ec2d98a5501f0f97eef0385aa82d96393bad4bd01e7cf7508c014b7af40
 DIST phosh-0.50.1.tar.xz.asc 833 BLAKE2B 
35deb05b7333bd149326d99a4e59a96b985a69362f02549ce7c98df31905cf13af9fd76af62ff0511616590f81df84b8f9b912b1ab40d90f821372b4642c4bc0
 SHA512 
ab57dbd89838fe2d5b14046a44d296a854e3d0077a7014cbb690efa7be0af1b989fb875cba0d5262eeed1bb2d104410a412de9cb4c0a9a966518260cb0af8937
+DIST phosh-0.51.0.tar.xz 1130536 BLAKE2B 
fccc60f86ed0e3b8664092a90ed209473f671e9f6a0b10805fae295a0910aeb9d50cbbed1e62d91a8c88642195e43b19f5d83b068f3339eb83e209a8c50f36e7
 SHA512 
81dcdbd87c579e34d7ca94ec4694701318bd062afd4cf299e224a3d502e2dc5141bbadbc5483d7b40cc1f6791b76418fe230fdb792850b11916499a9d267ee9d
+DIST phosh-0.51.0.tar.xz.asc 833 BLAKE2B 
1ab4173ead4e15b9bc18cdf61c4670b5836c378c5f83c09847a839d7c9c5d81e19d7bc82bff573a447e71457c830f2e077417d370f27aadf4d5d707be8ffcb2b
 SHA512 
453e4a846fccc8d8150ad00188ef687da35a6e991ca91a594026a3f1af70d1941fb1409a7ebf9341452d88b350c70c85d37421083a68d858bc26f40b4cdb5fe0

diff --git a/phosh-base/phosh-shell/phosh-shell-0.48.0.ebuild 
b/phosh-base/phosh-shell/phosh-shell-0.51.0.ebuild
similarity index 72%
rename from phosh-base/phosh-shell/phosh-shell-0.48.0.ebuild
rename to phosh-base/phosh-shell/phosh-shell-0.51.0.ebuild
index 4bd936b34b..fc15081ec5 100644
--- a/phosh-base/phosh-shell/phosh-shell-0.48.0.ebuild
+++ b/phosh-base/phosh-shell/phosh-shell-0.51.0.ebuild
@@ -1,9 +1,11 @@
-# Copyright 2021-2025 Gentoo Authors
+# Copyright 2021-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit gnome2-utils meson pam systemd toolchain-funcs vala verify-sig 
virtualx xdg
+PYTHON_COMPAT=( python3_{12..14} )
+
+inherit gnome2-utils meson pam python-any-r1 systemd toolchain-funcs vala 
verify-sig virtualx xdg
 
 MY_PN="${PN%-shell}"
 MY_P="${MY_PN}-${PV}"
@@ -20,7 +22,7 @@ IUSE="gtk-doc introspection +lockscreen-plugins man +plugins 
systemd test test-f
 REQUIRED_USE="
        gtk-doc? ( introspection )
        lockscreen-plugins? ( plugins )
-       test? ( plugins lockscreen-plugins )
+       test? ( plugins lockscreen-plugins test-full )
        vala? ( introspection )
 "
 
@@ -42,13 +44,13 @@ COMMON_DEPEND="
        media-libs/libpulse[glib]
        media-sound/callaudiod
        >=net-libs/libsoup-3.6:3.0
-       net-misc/modemmanager:=
+       >=net-misc/modemmanager-1.24.0:=
        >=net-misc/networkmanager-1.14[introspection?]
        >=net-wireless/gnome-bluetooth-46.0:3=[introspection?]
        sys-apps/dbus
        >=sys-auth/polkit-0.122
        sys-libs/pam
-       >=sys-power/upower-0.99.1:=
+       >=sys-power/upower-1.90:=
        x11-libs/cairo
        x11-libs/gdk-pixbuf:2
        x11-libs/pango
@@ -94,25 +96,48 @@ BDEPEND="
        gtk-doc? ( dev-util/gi-docgen )
        introspection? ( dev-libs/gobject-introspection )
        man? ( dev-python/docutils )
-       test-full? ( >=gui-wm/phoc-0.45.0 )
-       verify-sig? ( sec-keys/openpgp-keys-phosh )
+       test-full? (
+               dev-util/umockdev
+               gui-apps/wlr-randr
+               >=gui-wm/phoc-0.45.0
+               net-misc/networkmanager[tools]
+               $(python_gen_any_dep '
+                       dev-python/dbus-python[${PYTHON_USEDEP}]
+                       dev-python/pygobject[${PYTHON_USEDEP}]
+                       dev-python/pytest[${PYTHON_USEDEP}]
+                       dev-python/python-dbusmock[${PYTHON_USEDEP}]
+               ')
+       )
+       verify-sig? ( >=sec-keys/openpgp-keys-phosh-2025 )
 "
 
+EPYTEST_PLUGINS=()
+
 VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/openpgp-keys/phosh.asc"
 
-# https://gitlab.gnome.org/World/Phosh/phosh/-/issues/1240
-# https://gitlab.gnome.org/World/Phosh/phosh/-/merge_requests/1733
-RESTRICT="test"
+python_check_deps() {
+       python_has_version -b "dev-python/dbus-python[${PYTHON_USEDEP}]" &&
+       python_has_version -b "dev-python/pygobject[${PYTHON_USEDEP}]" &&
+       python_has_version -b "dev-python/pytest[${PYTHON_USEDEP}]" &&
+       python_has_version -b "dev-python/python-dbusmock[${PYTHON_USEDEP}]"
+}
+
+pkg_setup() {
+       use test-full && python-any-r1_pkg_setup
+}
 
 src_prepare() {
        use vala && vala_setup
        default
+
+       sed "/^set -e/d; /^pytest/d" -i tests/integration/run-pytest.in || die
 }
 
 src_configure() {
        local emesonargs=(
                -Dcompositor="${EPREFIX}"/usr/bin/phoc
                -Dtools=true
+               -Dsearchd=true
                $(meson_use gtk-doc gtk_doc)
                $(meson_use introspection)
                $(meson_use introspection bindings-lib)
@@ -132,10 +157,19 @@ src_test() {
                local -x WLR_RENDERER="pixman"
                local -x PHOSH_TEST_PHOC_INI="${T}/phoc.ini"
 
-               meson_src_test --suite unit || return 1
+               # XXX: app-grid-button tests segfaults
+               # https://gitlab.gnome.org/World/Phosh/phosh/-/issues/1240
+               # https://github.com/ximion/appstream/issues/720
+               #meson_src_test --suite unit || return 1
+
                if use test-full; then
                        meson_src_test --suite integration --timeout-multiplier 
2 || return 1
                fi
+
+               source "${BUILD_DIR}"/tests/integration/run-pytest || return 1
+               ewarn "Some tests might fail if umockdev is broken on your 
system"
+               ewarn "See https://bugs.gentoo.org/868204";
+               epytest tests/integration || return 1
        }
 
        # Xwayland breaks "phosh:integration / shell", pollutes /tmp

Reply via email to