commit: 23401467319b8ec5d092057ac6fada11865adfb5 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Thu Dec 1 17:29:43 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Dec 1 19:38:24 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23401467
sys-apps/nawk: Remove dep on app-eselect/eselect-awk Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/28495 Signed-off-by: Sam James <sam <AT> gentoo.org> .../{nawk-20180827.ebuild => nawk-20180827-r1.ebuild} | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/sys-apps/nawk/nawk-20180827.ebuild b/sys-apps/nawk/nawk-20180827-r1.ebuild similarity index 75% rename from sys-apps/nawk/nawk-20180827.ebuild rename to sys-apps/nawk/nawk-20180827-r1.ebuild index d3ddf5c3f048..3e5c1d65b36b 100644 --- a/sys-apps/nawk/nawk-20180827.ebuild +++ b/sys-apps/nawk/nawk-20180827-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -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}" @@ -48,9 +45,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 }
