mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
app-misc/pipes-rs: make live ebuild a live template; fix keywords
Since we need to fix KEYWORDS on the live ebuild anyway,
make it a template.
- Also rename the patch in filesdir to include `${P}`.
- Sync 1.6.3 with live (patch needed updating anyway)
- Minor QA issues addressed
Signed-off-by: Matt Jolly <kangie@gentoo.org>
This commit is contained in:
@@ -67,21 +67,34 @@ inherit cargo
|
||||
|
||||
DESCRIPTION="An over-engineered rewrite of pipes.sh in Rust"
|
||||
HOMEPAGE="https://github.com/lhvy/pipes-rs"
|
||||
SRC_URI="
|
||||
https://github.com/lhvy/pipes-rs/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
${CARGO_CRATE_URIS}
|
||||
"
|
||||
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/lhvy/pipes-rs.git"
|
||||
else
|
||||
SRC_URI="https://github.com/lhvy/pipes-rs/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
${CARGO_CRATE_URIS}"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="BlueOak-1.0.0 Apache-2.0 MIT Unicode-DFS-2016"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/do-not-strip.patch"
|
||||
"${FILESDIR}/${PN}-1.6.3-do-not-strip.patch"
|
||||
)
|
||||
|
||||
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_install() {
|
||||
cargo_src_install --path ./crates/${PN}
|
||||
}
|
||||
|
||||
QA_FLAGS_IGNORED="usr/bin/${PN}"
|
||||
|
||||
@@ -5,27 +5,38 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cargo git-r3
|
||||
inherit cargo
|
||||
|
||||
DESCRIPTION="An over-engineered rewrite of pipes.sh in Rust"
|
||||
HOMEPAGE="https://github.com/lhvy/pipes-rs"
|
||||
EGIT_REPO_URI="https://github.com/lhvy/pipes-rs.git"
|
||||
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/lhvy/pipes-rs.git"
|
||||
else
|
||||
SRC_URI="https://github.com/lhvy/pipes-rs/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
${CARGO_CRATE_URIS}"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="BlueOak-1.0.0 Apache-2.0 MIT Unicode-DFS-2016"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/do-not-strip.patch"
|
||||
"${FILESDIR}/${PN}-1.6.3-do-not-strip.patch"
|
||||
)
|
||||
|
||||
QA_FLAGS_IGNORED="usr/bin/${PN}"
|
||||
|
||||
src_unpack() {
|
||||
git-r3_src_unpack
|
||||
cargo_live_src_unpack
|
||||
if [[ ${PV} == *9999* ]]; then
|
||||
git-r3_src_unpack
|
||||
cargo_live_src_unpack
|
||||
else
|
||||
cargo_src_unpack
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cargo_src_install --path ./crates/${PN}
|
||||
cargo_src_install --path ./crates/${PN}
|
||||
}
|
||||
|
||||
QA_FLAGS_IGNORED="usr/bin/${PN}"
|
||||
|
||||
Reference in New Issue
Block a user