diff options
Diffstat (limited to 'sys-apps/hexyl/hexyl-0.17.0.ebuild')
| -rw-r--r-- | sys-apps/hexyl/hexyl-0.17.0.ebuild | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/sys-apps/hexyl/hexyl-0.17.0.ebuild b/sys-apps/hexyl/hexyl-0.17.0.ebuild index ac667b6697fb..0225cbb7eace 100644 --- a/sys-apps/hexyl/hexyl-0.17.0.ebuild +++ b/sys-apps/hexyl/hexyl-0.17.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 2026 Gentoo Authors +# Copyright 2017-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -75,12 +75,12 @@ CRATES=" yansi@1.0.1 " -inherit cargo +inherit cargo shell-completion DESCRIPTION="A command-line hex viewer" HOMEPAGE="https://github.com/sharkdp/hexyl" SRC_URI=" - https://github.com/sharkdp/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz + https://github.com/sharkdp/hexyl/archive/v${PV}.tar.gz -> ${P}.tar.gz ${CARGO_CRATE_URIS} " @@ -89,10 +89,28 @@ LICENSE="|| ( Apache-2.0 MIT )" LICENSE+=" Apache-2.0 ISC MIT Unicode-DFS-2016 ZLIB" SLOT="0" KEYWORDS="~amd64" +QA_FLAGS_IGNORED="usr/bin/hexyl" -DOCS=( README.md CHANGELOG.md ) +RESTRICT="mirror" + +BDEPEND=" + virtual/pandoc +" + +src_compile() { + cargo_src_compile + pandoc -s -f markdown -t man -o "doc/${PN}.1" "doc/${PN}.1.md" +} src_install() { cargo_src_install einstalldocs + doman "doc/${PN}.1" + + "target/release/${PN}" --completion bash > "${PN}" + dobashcomp "${PN}" + "target/release/${PN}" --completion zsh > "_${PN}" + dozshcomp "_${PN}" + "target/release/${PN}" --completion fish > "${PN}.fish" + dofishcomp "${PN}.fish" } |
