2021-07-27 19:01:17 +02:00
|
|
|
# Copyright 1999-2021 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
|
|
|
inherit desktop gnome2-utils meson pam readme.gentoo-r1 vala systemd xdg
|
|
|
|
|
|
|
|
MY_P="${PN}-v${PV}"
|
2021-09-01 14:32:47 +02:00
|
|
|
LVC_COMMIT="ae1a34aafce7026b8c0f65a43c9192d756fe1057"
|
2022-01-26 02:32:16 +01:00
|
|
|
LCU_COMMIT="5c79ccfc017db217d3a23a211919604083438846"
|
2021-07-27 19:01:17 +02:00
|
|
|
|
|
|
|
DESCRIPTION="A pure Wayland shell prototype for GNOME on mobile devices"
|
2021-08-17 11:56:02 +02:00
|
|
|
HOMEPAGE="https://gitlab.gnome.org/World/Phosh/phosh/"
|
2021-07-27 19:01:17 +02:00
|
|
|
SRC_URI="
|
2021-08-17 11:56:02 +02:00
|
|
|
https://gitlab.gnome.org/World/Phosh/phosh/-/archive/v${PV}/${MY_P}.tar.gz
|
2021-08-17 13:41:34 +02:00
|
|
|
https://gitlab.gnome.org/GNOME/libgnome-volume-control/-/archive/${LVC_COMMIT}/libgnome-volume-control-${LVC_COMMIT}.tar.gz
|
2021-08-18 11:04:24 +02:00
|
|
|
https://gitlab.gnome.org/World/Phosh/libcall-ui/-/archive/${LCU_COMMIT}/libcall-ui-${LCU_COMMIT}.tar.gz
|
2021-07-27 19:01:17 +02:00
|
|
|
"
|
|
|
|
S="${WORKDIR}/${MY_P}"
|
|
|
|
|
|
|
|
KEYWORDS="~amd64 ~arm64"
|
|
|
|
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
|
2021-08-21 20:56:47 +02:00
|
|
|
gnome-base/gnome-control-center
|
2021-07-27 19:01:17 +02:00
|
|
|
gnome-base/gnome-desktop
|
|
|
|
gnome-base/gnome-session
|
|
|
|
x11-themes/gnome-backgrounds
|
2021-08-21 20:46:40 +02:00
|
|
|
gnome-base/gnome-keyring
|
|
|
|
gnome-base/gnome-shell
|
2021-07-27 19:01:17 +02:00
|
|
|
x11-wm/phoc
|
|
|
|
systemd? ( sys-apps/systemd )
|
|
|
|
sys-power/upower
|
2021-08-21 20:56:47 +02:00
|
|
|
app-misc/geoclue
|
2021-07-27 19:01:17 +02:00
|
|
|
"
|
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
BDEPEND="
|
|
|
|
dev-util/ctags
|
|
|
|
dev-util/meson
|
|
|
|
"
|
|
|
|
|
2021-08-21 20:46:40 +02:00
|
|
|
PATCHES=(
|
2021-09-01 18:36:30 +02:00
|
|
|
"${FILESDIR}"/0001-system-prompt-allow-blank-passwords.patch
|
|
|
|
"${FILESDIR}"/0002-fix-locale-issue.patch
|
|
|
|
"${FILESDIR}"/0003-fix-locale-issue-in-service-file-1.patch
|
2021-08-21 20:46:40 +02:00
|
|
|
)
|
|
|
|
|
2021-07-27 19:01:17 +02:00
|
|
|
src_prepare() {
|
|
|
|
default
|
|
|
|
eapply_user
|
2021-08-17 13:41:34 +02:00
|
|
|
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
|
2021-07-27 19:01:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
default
|
|
|
|
meson_src_install
|
|
|
|
newpamd "${FILESDIR}"/pam_phosh 'phosh'
|
|
|
|
systemd_newunit "${FILESDIR}"/phosh.service 'phosh.service'
|
2021-08-21 20:46:40 +02:00
|
|
|
insinto /usr/share/applications/
|
|
|
|
doins "${FILESDIR}"/sm.puri.OSK0.desktop
|
2021-09-01 14:37:18 +02:00
|
|
|
|
2021-08-21 22:10:50 +02:00
|
|
|
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
|
2021-07-27 19:01:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
xdg_pkg_postinst
|
|
|
|
gnome2_schemas_update
|
|
|
|
readme.gentoo_print_elog
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postrm() {
|
|
|
|
xdg_pkg_postrm
|
|
|
|
gnome2_schemas_update
|
|
|
|
}
|