diff options
-rw-r--r-- | sys-apps/nawk/nawk-20220122-r1.ebuild (renamed from sys-apps/nawk/nawk-20220122.ebuild) | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/sys-apps/nawk/nawk-20220122.ebuild b/sys-apps/nawk/nawk-20220122-r1.ebuild index c6c96c2d4086..c133bc9a1ac9 100644 --- a/sys-apps/nawk/nawk-20220122.ebuild +++ b/sys-apps/nawk/nawk-20220122-r1.ebuild @@ -13,12 +13,9 @@ LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86 ~amd64-linux" -RDEPEND=" - app-eselect/eselect-awk" - DEPEND=" - ${RDEPEND} - virtual/yacc" + virtual/yacc +" S="${WORKDIR}/awk-${PV}" @@ -46,9 +43,15 @@ src_install() { } pkg_postinst() { - eselect awk update ifunset + if has_version app-admin/eselect && has_version app-eselect/eselect-awk + then + eselect awk update ifunset + fi } pkg_postrm() { - eselect awk update ifunset + if has_version app-admin/eselect && has_version app-eselect/eselect-awk + then + eselect awk update ifunset + fi } |