2022-06-14 12:31:42 +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="ae1a34aafce7026b8c0f65a43c9192d756fe1057"
|
2022-09-29 11:38:37 +02:00
|
|
|
LCU_COMMIT="7e2f9e2db6515fb9c4650010c2a9ecb9796957e3"
|
2022-06-14 12:31:42 +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}"
|
|
|
|
|
2022-07-15 16:22:06 +02:00
|
|
|
KEYWORDS="~amd64 ~arm64"
|
2022-06-21 15:55:19 +02:00
|
|
|
|
2022-06-14 12:31:42 +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
|
|
|
|
x11-wm/phoc
|
2022-08-22 22:31:40 +02:00
|
|
|
sys-apps/systemd
|
2022-06-14 12:31:42 +02:00
|
|
|
sys-power/upower
|
|
|
|
app-misc/geoclue
|
2022-08-22 22:31:40 +02:00
|
|
|
net-libs/libnma
|
|
|
|
media-sound/callaudiod
|
2022-06-14 12:31:42 +02:00
|
|
|
"
|
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
BDEPEND="
|
|
|
|
dev-util/ctags
|
|
|
|
dev-util/meson
|
|
|
|
"
|
|
|
|
|
|
|
|
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
|
2022-06-15 16:43:47 +02:00
|
|
|
|
2022-10-03 12:05:14 +02:00
|
|
|
#Polkit patch
|
2022-07-15 16:22:06 +02:00
|
|
|
eapply "${FILESDIR}"/0001-Gentoo-patch-for-polkit-120.patch
|
2022-10-03 12:05:14 +02:00
|
|
|
|
|
|
|
#Phosh patches
|
2022-08-22 22:37:35 +02:00
|
|
|
eapply "${FILESDIR}"/0001-system-prompt-allow-blank-passwords.patch
|
2022-10-03 12:05:14 +02:00
|
|
|
eapply "${FILESDIR}"/0002-build-Adjust-to-polkit-version-changes.patch
|
2022-08-22 22:37:35 +02:00
|
|
|
eapply "${FILESDIR}"/0003-fix-locale-issue-in-service-file.patch
|
|
|
|
|
2022-06-14 12:31:42 +02:00
|
|
|
}
|
|
|
|
|
2022-10-03 12:10:24 +02:00
|
|
|
src_configure() {
|
|
|
|
local mycmakeargs=(
|
|
|
|
-Dsystemd=true
|
|
|
|
)
|
|
|
|
|
|
|
|
cmake_src_configure
|
|
|
|
}
|
|
|
|
|
2022-06-14 12:31:42 +02:00
|
|
|
src_install() {
|
|
|
|
default
|
|
|
|
meson_src_install
|
|
|
|
newpamd "${FILESDIR}"/pam_phosh 'phosh'
|
2022-10-03 12:10:24 +02:00
|
|
|
systemd_newunit "${FILESDIR}"/phosh.service 'phosh.service'
|
2022-06-14 12:31:42 +02:00
|
|
|
domenu "${FILESDIR}"/sm.puri.OSK0.desktop
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|