# Copyright 2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 inherit meson DESCRIPTION="An EFL based display manager" HOMEPAGE="https://github.com/Obsidian-StudiosInc/entrance" SRC_URI="https://github.com/Obsidian-StudiosInc/entrance/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64" IUSE="nls +pam systemd xcb X" DEPEND=">=dev-libs/efl-1.19.0[systemd?,X?] pam? ( sys-libs/pam ) systemd? ( sys-apps/systemd ) xcb? ( x11-libs/libxcb ) " RDEPEND="${DEPEND} X? ( x11-apps/sessreg x11-apps/xauth x11-base/xorg-server ) acct-user/entrance" PATCHES=( "${FILESDIR}/${PV}-f526bc6874a1c7cec167e569d60a21787a12a2fd.patch" "${FILESDIR}/${PV}-2c02d1b1d5c7221059f81c5b6c89fe71f23640cc.patch" ) src_prepare() { # LFS sed -i \ -e '/lockfile/ s|string: .*|string: "/run/entrance.pid";|' \ -e '/xauth_file/ s|string: .*|string: "/run/entrance.auth";|' \ data/entrance.conf.in \ || die # Default user sed -i \ -e '/start_user/ s|string: .*|string: "entrance";|' \ data/entrance.conf.in \ || die # Ensure first VT is used sed -i \ -e '/vtnr/ s|ushort: .*|ushort: 1;|' \ data/entrance.conf.in \ || die if use systemd ; then sed -i \ -e '/reboot/ s|string: .*|string: "/usr/bin/systemctl reboot";|' \ -e '/shutdown/ s|string: .*|string: "/usr/bin/systemctl poweroff";|' \ -e '/suspend/ s|string: .*|string: "/usr/bin/systemctl suspend";|' \ data/entrance.conf.in \ || die fi default } src_configure() { local emesonargs=( -Dconsolekit=false $(meson_use nls) $(meson_use pam) $(meson_use systemd logind) ) meson_src_configure } src_install() { meson_src_install }