Replace kanshi with shikane

- Add ebuild for shikane
This commit is contained in:
Sravan Balaji
2024-09-02 22:12:34 -04:00
parent 92440cc46b
commit 4689133942
2 changed files with 49 additions and 1 deletions

View File

@@ -0,0 +1,48 @@
# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cargo git-r3
DESCRIPTION="A deterministic dynamic output configuration tool that automatically detects and configures connected outputs based on a set of profiles"
HOMEPAGE="https://gitlab.com/w0lff/shikane"
EGIT_REPO_URI="${HOMEPAGE}.git"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="man"
S="${WORKDIR}/${P}"
BDEPEND="
man? (
app-text/pandoc-bin
app-arch/gzip
)
"
src_unpack(){
git-r3_src_unpack
cargo_live_src_unpack
}
src_compile(){
cargo_src_compile
if use man; then
./scripts/build-docs.sh man
gzip -d ./build/man/*.gz
fi
}
src_install(){
cargo_src_install
if use man; then
doman ./build/man/shikane.1
doman ./build/man/shikane.5
doman ./build/man/shikanectl.1
fi
}

View File

@@ -37,7 +37,7 @@ RDEPEND="
x11-base/xwayland
x11-apps/xlsclients
)
gui-apps/kanshi
gui-apps/shikane
gui-apps/wdisplays
gui-apps/wofi
gui-apps/wl-clipboard