From a5fb05dfc5145ea17119504662e55d27eb31d3ed Mon Sep 17 00:00:00 2001 From: Nicolas PARLANT Date: Fri, 25 Apr 2025 18:03:16 +0000 Subject: [PATCH] gui-apps/tuigreet: sync live Signed-off-by: Nicolas PARLANT Part-of: https://github.com/gentoo/gentoo/pull/41753 Closes: https://github.com/gentoo/gentoo/pull/41753 Signed-off-by: Sam James --- ...9.1-r1.ebuild => tuigreet-0.9.1-r2.ebuild} | 0 gui-apps/tuigreet/tuigreet-9999.ebuild | 35 +++++++++++++------ 2 files changed, 24 insertions(+), 11 deletions(-) rename gui-apps/tuigreet/{tuigreet-0.9.1-r1.ebuild => tuigreet-0.9.1-r2.ebuild} (100%) diff --git a/gui-apps/tuigreet/tuigreet-0.9.1-r1.ebuild b/gui-apps/tuigreet/tuigreet-0.9.1-r2.ebuild similarity index 100% rename from gui-apps/tuigreet/tuigreet-0.9.1-r1.ebuild rename to gui-apps/tuigreet/tuigreet-0.9.1-r2.ebuild diff --git a/gui-apps/tuigreet/tuigreet-9999.ebuild b/gui-apps/tuigreet/tuigreet-9999.ebuild index 908c9d12fa8c8..411fa403432ec 100644 --- a/gui-apps/tuigreet/tuigreet-9999.ebuild +++ b/gui-apps/tuigreet/tuigreet-9999.ebuild @@ -1,15 +1,14 @@ -# Copyright 2017-2024 Gentoo Authors +# Copyright 2017-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 CRATES="" -inherit cargo +inherit cargo tmpfiles DESCRIPTION="TUI greeter for greetd login manager" HOMEPAGE="https://github.com/apognu/tuigreet" - if [ ${PV} == "9999" ] ; then inherit git-r3 EGIT_REPO_URI="https://github.com/apognu/${PN}" @@ -19,15 +18,20 @@ else KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv" fi -QA_FLAGS_IGNORED="usr/bin/tuigreet" - -LICENSE="Apache-2.0 CC0-1.0 GPL-3+ MIT Unicode-3.0 Unicode-DFS-2016" +LICENSE="GPL-3+" +# Autogenerated by pycargoebuild +# Dependent crate licenses +LICENSE+=" Apache-2.0 CC0-1.0 GPL-3 MIT Unicode-3.0 Unicode-DFS-2016" SLOT="0" -RDEPEND="acct-group/greetd +QA_FLAGS_IGNORED="usr/bin/tuigreet" + +RDEPEND=" + acct-group/greetd acct-user/greetd gui-libs/greetd" DEPEND="${RDEPEND}" +BDEPEND="app-text/scdoc" src_unpack() { if [[ "${PV}" == *9999* ]]; then @@ -38,10 +42,19 @@ src_unpack() { fi } -src_install() { - dodir /var/cache/${PN} - fowners greetd:greetd /var/cache/${PN} - keepdir /var/cache/${PN} +src_compile() { + cargo_src_compile + scdoc < ./contrib/man/tuigreet-1.scd > ./tuigreet.1 || die +} +src_install() { + newtmpfiles - tuigreet.conf <<-EOF + d /var/cache/tuigreet 0755 greetd greetd + EOF + doman tuigreet.1 cargo_src_install } + +pkg_postinst() { + tmpfiles_process tuigreet.conf +}