commit: 4d51a91267c7c8bf34ba512f0a4a0fd045b6f38b
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 1 19:41:05 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Dec 1 19:41:05 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d51a912
sys-apps/nawk: Adapt to app-alternatives/awk, deux
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../{nawk-20220122.ebuild => nawk-20220122-r1.ebuild} | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/sys-apps/nawk/nawk-20220122.ebuild
b/sys-apps/nawk/nawk-20220122-r1.ebuild
similarity index 78%
rename from sys-apps/nawk/nawk-20220122.ebuild
rename to 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
}