From 62518e2d06ae1f94d23bb5378e3fdcdd724eab0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matt=C3=A9o=20Rossillol=E2=80=91=E2=80=91Laruelle?= Date: Tue, 6 Aug 2024 13:53:24 +0200 Subject: [PATCH] dev-util/shellspec: revbump MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This revision allows respecting `EPREFIX`. Signed-off-by: Mattéo Rossillol‑‑Laruelle --- ...8.1-r1.ebuild => shellspec-0.28.1-r2.ebuild} | 17 +++++++++++++++++ dev-util/shellspec/shellspec-9999.ebuild | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) rename dev-util/shellspec/{shellspec-0.28.1-r1.ebuild => shellspec-0.28.1-r2.ebuild} (80%) 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() { :; }