From f55699a4f5160c94def1079f598d022a55c0894d Mon Sep 17 00:00:00 2001 From: "Randall T. Vasquez" Date: Sat, 28 May 2022 14:13:51 -0700 Subject: [PATCH] dev-util/shfmt: tidy ebuilds This commit tidys the shfmt ebuilds further. Signed-off-by: Randall T. Vasquez --- dev-util/shfmt/shfmt-3.5.0.ebuild | 9 +++------ dev-util/shfmt/shfmt-9999.ebuild | 9 +++------ 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/dev-util/shfmt/shfmt-3.5.0.ebuild b/dev-util/shfmt/shfmt-3.5.0.ebuild index eacbfc8404..96a20587ac 100644 --- a/dev-util/shfmt/shfmt-3.5.0.ebuild +++ b/dev-util/shfmt/shfmt-3.5.0.ebuild @@ -26,16 +26,13 @@ IUSE="+man" BDEPEND="man? ( app-text/scdoc )" src_unpack() { + default if [[ ${PV} == *9999 ]]; then - git-r3_fetch - git-r3_checkout - pushd ${P}/cmd/shfmt || die "location change for module building failed" - ego get - popd || die "location reset from module building failed" + git-r3_src_unpack + go-module_live_vendor else go-module_src_unpack fi - default } src_compile() { diff --git a/dev-util/shfmt/shfmt-9999.ebuild b/dev-util/shfmt/shfmt-9999.ebuild index eacbfc8404..96a20587ac 100644 --- a/dev-util/shfmt/shfmt-9999.ebuild +++ b/dev-util/shfmt/shfmt-9999.ebuild @@ -26,16 +26,13 @@ IUSE="+man" BDEPEND="man? ( app-text/scdoc )" src_unpack() { + default if [[ ${PV} == *9999 ]]; then - git-r3_fetch - git-r3_checkout - pushd ${P}/cmd/shfmt || die "location change for module building failed" - ego get - popd || die "location reset from module building failed" + git-r3_src_unpack + go-module_live_vendor else go-module_src_unpack fi - default } src_compile() {