dev-util/shellspec: revbump

This revision allows respecting `EPREFIX`.

Signed-off-by: Mattéo Rossillol‑‑Laruelle <beatussum@protonmail.com>
This commit is contained in:
Mattéo Rossillol‑‑Laruelle
2024-08-06 13:53:24 +02:00
parent 81b23dd48d
commit 62518e2d06
2 changed files with 34 additions and 0 deletions

View File

@@ -3,6 +3,8 @@
EAPI=8 EAPI=8
inherit prefix
DESCRIPTION="A full-featured BDD unit testing framework for all POSIX shells" DESCRIPTION="A full-featured BDD unit testing framework for all POSIX shells"
HOMEPAGE="https://shellspec.info/" HOMEPAGE="https://shellspec.info/"
@@ -46,6 +48,21 @@ src_prepare() {
sed -i "s/lib/$(get_libdir)/" stub/shellspec || die sed -i "s/lib/$(get_libdir)/" stub/shellspec || die
sed -i "s/LICENSE//g" Makefile || die sed -i "s/LICENSE//g" Makefile || die
local to_analyze=(
examples
helper
lib
libexec
stub/shellspec
shellspec
)
local -a to_prefixify
readarray -t to_prefixify < <(find "${to_analyze[@]}" -type f) || die
hprefixify "${to_prefixify[@]}"
sed -i "s|#!|#!${EPREFIX}|" README.md || die
} }
src_compile() { :; } src_compile() { :; }

View File

@@ -3,6 +3,8 @@
EAPI=8 EAPI=8
inherit prefix
DESCRIPTION="A full-featured BDD unit testing framework for all POSIX shells" DESCRIPTION="A full-featured BDD unit testing framework for all POSIX shells"
HOMEPAGE="https://shellspec.info/" HOMEPAGE="https://shellspec.info/"
@@ -46,6 +48,21 @@ src_prepare() {
sed -i "s/lib/$(get_libdir)/" stub/shellspec || die sed -i "s/lib/$(get_libdir)/" stub/shellspec || die
sed -i "s/LICENSE//g" Makefile || die sed -i "s/LICENSE//g" Makefile || die
local to_analyze=(
examples
helper
lib
libexec
stub/shellspec
shellspec
)
local -a to_prefixify
readarray -t to_prefixify < <(find "${to_analyze[@]}" -type f) || die
hprefixify "${to_prefixify[@]}"
sed -i "s|#!|#!${EPREFIX}|" README.md || die
} }
src_compile() { :; } src_compile() { :; }