mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
app-text/ReGreet: new package, add 9999
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com>
This commit is contained in:
68
app-text/ReGreet/ReGreet-9999.ebuild
Normal file
68
app-text/ReGreet/ReGreet-9999.ebuild
Normal file
@@ -0,0 +1,68 @@
|
||||
# Copyright 2019-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit cargo git-r3
|
||||
|
||||
EGIT_REPO_URI="https://github.com/rharish101/ReGreet.git"
|
||||
|
||||
DESCRIPTION="A clean and customizable GTK-based greetd greeter written in Rust"
|
||||
HOMEPAGE="https://github.com/rharish101/ReGreet"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
DEPEND="x11-libs/gtk+:3
|
||||
gtk4? ( gui-libs/gtk )
|
||||
cage? ( gui-wm/cage )
|
||||
sway? ( gui-wm/sway )
|
||||
|| ( gui-wm/cage gui-wm/sway )"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
gui-libs/greetd
|
||||
"
|
||||
BDEPEND="
|
||||
virtual/rust
|
||||
"
|
||||
IUSE="gtk4 logs cage sway"
|
||||
REQUIRED_USE="|| ( cage sway ) cage? ( !sway ) sway? ( !cage )"
|
||||
|
||||
KEYWORDS="~amd64~x86"
|
||||
|
||||
src_unpack() {
|
||||
git-r3_src_unpack
|
||||
cargo_live_src_unpack
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
if use gtk4; then
|
||||
local myfeatures=(
|
||||
gtk4_8
|
||||
)
|
||||
fi
|
||||
cargo_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cargo_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
newbin ${WORKDIR}/${P}/target/release/regreet regreet
|
||||
if use cage; then
|
||||
insinto /etc/greetd/ && newins ${FILESDIR}/config-cage.toml config.toml
|
||||
echo "Restart cage service to verify if works (Only activate on TTY1)"
|
||||
fi
|
||||
if use sway; then
|
||||
insinto /etc/greetd/ && newins ${FILESDIR}/config-sway.toml config.toml
|
||||
insinto /etc/greetd/ && doins ${FILESDIR}/sway-config
|
||||
echo "Restart cage service to verify if works (Only activate on TTY1)"
|
||||
fi
|
||||
}
|
||||
|
||||
src_post_install () {
|
||||
if use logs; then
|
||||
insinto /etc/tmpfiles.d/ && newins ${WORKDIR}/${P}/systemd-tmpfiles.conf regreet.conf
|
||||
systemd-tmpfiles --create "$PWD/systemd-tmpfiles.conf"
|
||||
fi
|
||||
}
|
||||
6
app-text/ReGreet/files/config-cage.toml
Normal file
6
app-text/ReGreet/files/config-cage.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
[terminal]
|
||||
vt = 1
|
||||
|
||||
[default_session]
|
||||
command = "cage -s -- regreet"
|
||||
user = "greetd"
|
||||
6
app-text/ReGreet/files/config-sway.toml
Normal file
6
app-text/ReGreet/files/config-sway.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
[terminal]
|
||||
vt = 1
|
||||
|
||||
[default_session]
|
||||
command = "sway --config /etc/greetd/config-sway"
|
||||
user = "greetd"
|
||||
2
app-text/ReGreet/files/sway-config
Normal file
2
app-text/ReGreet/files/sway-config
Normal file
@@ -0,0 +1,2 @@
|
||||
exec "regreet; swaymsg exit"
|
||||
include /etc/sway/config.d/*
|
||||
12
app-text/ReGreet/metadata.xml
Normal file
12
app-text/ReGreet/metadata.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<use>
|
||||
<flag name="gtk4">Compile with support for gtk4</flag>
|
||||
<flag name="cage">Use cage to start ReGreet</flag>
|
||||
<flag name="sway">Use sway to start ReGreet</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="github">rharish101/ReGreet</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user