mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 13:33:32 -04:00
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>
This commit is contained in:
@@ -15,13 +15,9 @@ inherit cargo shell-completion
|
||||
DESCRIPTION="Executes commands in response to file modifications"
|
||||
HOMEPAGE="https://watchexec.github.io"
|
||||
|
||||
if [[ "$PV" == 9999 ]]; then
|
||||
if [[ "${PV}" == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/watchexec/watchexec.git"
|
||||
src_unpack() {
|
||||
git-r3_src_unpack
|
||||
cargo_live_src_unpack
|
||||
}
|
||||
else
|
||||
SRC_URI="https://github.com/watchexec/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI+=" ${CARGO_CRATE_URIS}"
|
||||
@@ -44,6 +40,15 @@ DOCS=( crates/cli/README.md )
|
||||
# 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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user