2024-05-20 21:29:52 +02:00
|
|
|
# Copyright 1999-2022 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
|
|
|
inherit desktop gnome2-utils meson pam readme.gentoo-r1 systemd xdg
|
|
|
|
|
|
|
|
MY_P="${PN}-v${PV}"
|
|
|
|
LVC_COMMIT="a1ae68ff11dc6156f9c80069194ea39679700f3f"
|
2024-05-21 15:28:43 +02:00
|
|
|
LCU_COMMIT="817d770cfa6876d37c4a6d09b00c9bdedfdce8b7"
|
2024-05-20 21:29:52 +02:00
|
|
|
|
|
|
|
DESCRIPTION="A pure Wayland shell prototype for GNOME on mobile devices"
|
|
|
|
HOMEPAGE="https://gitlab.gnome.org/World/Phosh/phosh/"
|
|
|
|
SRC_URI="
|
|
|
|
https://gitlab.gnome.org/World/Phosh/phosh/-/archive/v${PV}/${MY_P}.tar.gz
|
|
|
|
https://gitlab.gnome.org/GNOME/libgnome-volume-control/-/archive/${LVC_COMMIT}/libgnome-volume-control-${LVC_COMMIT}.tar.gz
|
|
|
|
https://gitlab.gnome.org/World/Phosh/libcall-ui/-/archive/${LCU_COMMIT}/libcall-ui-${LCU_COMMIT}.tar.gz
|
|
|
|
"
|
|
|
|
S="${WORKDIR}/${MY_P}"
|
|
|
|
|
2024-05-21 15:28:43 +02:00
|
|
|
KEYWORDS="~arm ~arm64"
|
2024-05-20 21:29:52 +02:00
|
|
|
|
|
|
|
LICENSE="GPL-3"
|
|
|
|
SLOT="0"
|
|
|
|
IUSE="+systemd"
|
|
|
|
|
|
|
|
DEPEND="
|
|
|
|
app-crypt/gcr
|
|
|
|
dev-libs/feedbackd
|
|
|
|
media-sound/pulseaudio
|
|
|
|
>=gui-libs/libhandy-1.1.90
|
|
|
|
net-misc/networkmanager
|
|
|
|
gnome-base/gnome-control-center
|
|
|
|
gnome-base/gnome-desktop
|
|
|
|
gnome-base/gnome-session
|
|
|
|
x11-themes/gnome-backgrounds
|
|
|
|
gnome-base/gnome-keyring
|
|
|
|
gnome-base/gnome-shell
|
2024-05-23 21:19:15 +02:00
|
|
|
x11-terms/gnome-terminal
|
|
|
|
gnome-base/nautilus
|
2024-05-20 21:29:52 +02:00
|
|
|
x11-wm/phoc
|
|
|
|
sys-apps/systemd
|
|
|
|
sys-power/upower
|
|
|
|
app-misc/geoclue
|
|
|
|
net-libs/libnma
|
|
|
|
media-sound/callaudiod
|
2024-05-21 15:28:43 +02:00
|
|
|
dev-libs/gmobile
|
2024-05-23 21:49:26 +02:00
|
|
|
gnome-extra/gnome-tweaks
|
|
|
|
x11-misc/phosh-mobile-settings
|
2024-05-20 21:29:52 +02:00
|
|
|
"
|
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
BDEPEND="
|
|
|
|
dev-util/ctags
|
2024-05-21 15:31:01 +02:00
|
|
|
dev-build/meson
|
2024-05-20 21:29:52 +02:00
|
|
|
"
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
default
|
|
|
|
rm -r "${S}"/subprojects/gvc || die
|
|
|
|
mv "${WORKDIR}"/libgnome-volume-control-"${LVC_COMMIT}" "${S}"/subprojects/gvc || die
|
|
|
|
rm -r "${S}"/subprojects/libcall-ui || die
|
|
|
|
mv "${WORKDIR}"/libcall-ui-"${LCU_COMMIT}" "${S}"/subprojects/libcall-ui || die
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
local emesonargs=(
|
|
|
|
-Dsystemd=true
|
|
|
|
-Dtests=false
|
|
|
|
-Dphoc_tests=disabled
|
|
|
|
)
|
|
|
|
|
|
|
|
meson_src_configure
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
default
|
|
|
|
meson_src_install
|
|
|
|
newpamd "${FILESDIR}"/pam_phosh 'phosh'
|
|
|
|
systemd_newunit "${FILESDIR}"/phosh.service 'phosh.service'
|
|
|
|
domenu "${FILESDIR}"/sm.puri.OSK0.desktop
|
|
|
|
dobin "${FILESDIR}"/osk-wayland
|
|
|
|
|
|
|
|
DOC_CONTENTS="To amend the existing password policy please see the man 5 passwdqc.conf
|
|
|
|
page and then edit the /etc/security/passwdqc.conf file to change enforce=none
|
|
|
|
to allow use digit only password as phosh only support passcode for now"
|
|
|
|
readme.gentoo_create_doc
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
xdg_pkg_postinst
|
|
|
|
gnome2_schemas_update
|
|
|
|
readme.gentoo_print_elog
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postrm() {
|
|
|
|
xdg_pkg_postrm
|
|
|
|
gnome2_schemas_update
|
|
|
|
}
|