diff --git a/dev-util/shellspec/shellspec-0.28.1-r1.ebuild b/dev-util/shellspec/shellspec-0.28.1-r2.ebuild similarity index 80% rename from dev-util/shellspec/shellspec-0.28.1-r1.ebuild rename to dev-util/shellspec/shellspec-0.28.1-r2.ebuild index 8cab3a2a45..54b8100cb3 100644 --- a/dev-util/shellspec/shellspec-0.28.1-r1.ebuild +++ b/dev-util/shellspec/shellspec-0.28.1-r2.ebuild @@ -3,6 +3,8 @@ EAPI=8 +inherit prefix + DESCRIPTION="A full-featured BDD unit testing framework for all POSIX shells" HOMEPAGE="https://shellspec.info/" @@ -46,6 +48,21 @@ src_prepare() { sed -i "s/lib/$(get_libdir)/" stub/shellspec || 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() { :; } diff --git a/dev-util/shellspec/shellspec-9999.ebuild b/dev-util/shellspec/shellspec-9999.ebuild index 8cab3a2a45..54b8100cb3 100644 --- a/dev-util/shellspec/shellspec-9999.ebuild +++ b/dev-util/shellspec/shellspec-9999.ebuild @@ -3,6 +3,8 @@ EAPI=8 +inherit prefix + DESCRIPTION="A full-featured BDD unit testing framework for all POSIX shells" HOMEPAGE="https://shellspec.info/" @@ -46,6 +48,21 @@ src_prepare() { sed -i "s/lib/$(get_libdir)/" stub/shellspec || 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() { :; }