Files
guru/app-misc/watchexec/watchexec-9999.ebuild
ingenarel 0883a2c682 app-misc/watchexec: update format
- modify src_unpack() internally instead of redefining:
  functions should be defined on the order that they are called
  for more info, check:
  e19c6d5744 (commitcomment-172006236)

- fixed the long line which fixes the following pkgcheck error:
  app-misc/watchexec
    ExcessiveLineLength: version 2.3.2: excessive line length
    (over 120 characters) on line: 8

- used ${var} instead of $var which was recommended by negril

Signed-off-by: ingenarel <ingenarelitems@gmail.com>
2025-12-10 07:13:29 +06:00

73 lines
1.6 KiB
Bash

# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Autogenerated by pycargoebuild 0.13.5
EAPI=8
CRATES=" "
# MSRV as of watchexec-2.2.1 is 1.61.
#RUST_MIN_VER="1.71.1"
inherit cargo shell-completion
DESCRIPTION="Executes commands in response to file modifications"
HOMEPAGE="https://watchexec.github.io"
if [[ "${PV}" == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/watchexec/watchexec.git"
else
SRC_URI="https://github.com/watchexec/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" ${CARGO_CRATE_URIS}"
KEYWORDS="~amd64"
fi
LICENSE="Apache-2.0"
# Dependent crate licenses
LICENSE+="
Apache-2.0 BSD-2 BSD CC0-1.0 ISC MIT MPL-2.0 Unicode-3.0 WTFPL-2
ZLIB
"
SLOT="0"
# Prevent portage from trying to fetch bunch of *.crate from mirror despite they are not mirrored.
RESTRICT="mirror"
DOCS=( crates/cli/README.md )
# rust does not use *FLAGS from make.conf, silence portage warning
# update with proper path to binaries this crate installs, omit leading /
QA_FLAGS_IGNORED="usr/bin/${PN}"
src_unpack() {
if [[ "${PV}" == 9999 ]];then
git-r3_src_unpack
cargo_live_src_unpack
else
cargo_src_unpack
fi
}
src_compile() {
cargo_src_compile --manifest-path=crates/cli/Cargo.toml
}
src_test() {
cargo_src_test --manifest-path crates/lib/Cargo.toml --lib
cargo_src_test --manifest-path crates/cli/Cargo.toml
}
src_install() {
cargo_src_install --path "${S}"/crates/cli
einstalldocs
doman doc/watchexec.1
newbashcomp completions/bash "${PN}"
newzshcomp completions/zsh "_${PN}"
newfishcomp completions/fish "${PN}.fish"
}