diff options
author | Alfred Wingate <parona@protonmail.com> | 2024-07-04 03:47:01 +0300 |
---|---|---|
committer | Yixun Lan <dlan@gentoo.org> | 2024-07-09 08:50:23 +0000 |
commit | c9c82e2d502a1936be6761fbb259387610409739 (patch) | |
tree | 1fcd255984d7ddf3d2d63c66ec3073fd093f114f /app-misc | |
parent | media-video/mkvtoolnix: Stabilize 83.0 ppc, #933071 (diff) | |
download | gentoo-c9c82e2d502a1936be6761fbb259387610409739.tar.gz gentoo-c9c82e2d502a1936be6761fbb259387610409739.tar.bz2 gentoo-c9c82e2d502a1936be6761fbb259387610409739.zip |
app-misc/zellij: build man page unconditionally with go-md2man
Lowdown mangles the man page so go-md2man suits better and generate
unconditionally to abide to policy.
Additionally install bash completions, desktop icon and add a dependency
on curl.
With completions generation is better as the versions in the source ball are
useless as is.
Closes: https://bugs.gentoo.org/914970
Closes: https://github.com/gentoo/gentoo/pull/37415
Signed-off-by: Alfred Wingate <parona@protonmail.com>
Signed-off-by: Yixun Lan <dlan@gentoo.org>
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/zellij/zellij-0.40.1-r1.ebuild (renamed from app-misc/zellij/zellij-0.40.1.ebuild) | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/app-misc/zellij/zellij-0.40.1.ebuild b/app-misc/zellij/zellij-0.40.1-r1.ebuild index e194243b183c..f88f7041ffa7 100644 --- a/app-misc/zellij/zellij-0.40.1.ebuild +++ b/app-misc/zellij/zellij-0.40.1-r1.ebuild @@ -515,7 +515,7 @@ CRATES=" zeroize@1.5.5 " -inherit desktop cargo +inherit cargo desktop shell-completion xdg DESCRIPTION="A terminal workspace with batteries included" HOMEPAGE=" @@ -536,10 +536,13 @@ LICENSE+=" SLOT="0" KEYWORDS="~amd64" -IUSE="doc" +RDEPEND=" + net-misc/curl +" +DEPEND="${RDEPEND}" BDEPEND=" - doc? ( app-text/lowdown ) + dev-go/go-md2man " # rust does not use *FLAGS from make.conf, silence portage warning @@ -562,9 +565,11 @@ src_compile() { cargo_src_compile popd 2>/dev/null || die - if use doc; then - lowdown -t man -o ${PN}.1 docs/MANPAGE.md || die - fi + go-md2man -in docs/MANPAGE.md -out ${PN}.1 || die + + "$(cargo_target_dir)"/zellij setup --generate-completion bash > zellij.bash || die + "$(cargo_target_dir)"/zellij setup --generate-completion fish > zellij.fish || die + "$(cargo_target_dir)"/zellij setup --generate-completion zsh > zellij.zsh || die } src_install() { @@ -577,12 +582,12 @@ src_install() { doins -r ${PN}-utils/assets/{layouts,plugins,config,shell} \ ${PN}-utils/assets/*.wasm ${PN}-utils/assets/README.md - use doc && doman ${PN}.1 - domenu assets/zellij.desktop + doman ${PN}.1 - insinto /usr/share/zsh/site-functions - newins ${PN}-utils/assets/completions/comp.zsh _${PN} + domenu assets/zellij.desktop + newicon assets/logo.png zellij.png - insinto /usr/share/fish/vendor_completions.d - newins ${PN}-utils/assets/completions/comp.fish ${PN}.fish + newbashcomp zellij.bash zellij + newfishcomp zellij.fish zellij.fish + newzshcomp zellij.zsh _zellij } |