gjdwebserver-overlay/gui-wm/phosh/phosh-0.28.0-r1.ebuild

105 lines
2.8 KiB
Bash
Raw Normal View History

2022-10-04 14:50:54 +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"
2023-06-02 15:03:55 +02:00
LCU_COMMIT="6798b38d4d66d069751151b3e9a202c6de8d7f3c"
2023-05-02 16:10:26 +02:00
GMO_COMMIT="6504fa124438b79a2ad5687ac3ebef6d7a2c0823"
2022-10-04 14:50:54 +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
https://gitlab.gnome.org/guidog/gmobile/-/archive/${GMO_COMMIT}/gmobile-${GMO_COMMIT}.tar.gz
2022-10-04 14:50:54 +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
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
sys-apps/systemd
sys-power/upower
app-misc/geoclue
net-libs/libnma
media-sound/callaudiod
"
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
rm -r "${S}"/subprojects/gmobile || die
mv "${WORKDIR}"/gmobile-"${GMO_COMMIT}" "${S}"/subprojects/gmobile || die
2022-10-04 14:50:54 +02:00
#Phosh patches
eapply "${FILESDIR}"/0001-system-prompt-allow-blank-passwords.patch
eapply "${FILESDIR}"/0003-fix-locale-issue-in-service-file.patch
2023-01-10 16:14:27 +01:00
eapply "${FILESDIR}"/977.patch
eapply "${FILESDIR}"/1008.patch
2022-10-04 14:50:54 +02:00
}
src_configure() {
local emesonargs=(
-Dsystemd=true
2022-10-04 15:39:42 +02:00
-Dtests=false
2022-10-17 14:01:46 +02:00
-Dphoc_tests=disabled
2022-10-04 14:50:54 +02:00
)
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
2023-01-07 23:10:25 +01:00
dobin "${FILESDIR}"/osk-wayland
2022-10-04 14:50:54 +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
}
pkg_postinst() {
xdg_pkg_postinst
gnome2_schemas_update
readme.gentoo_print_elog
}
pkg_postrm() {
xdg_pkg_postrm
gnome2_schemas_update
}