summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-12-01 19:41:05 +0000
committerSam James <sam@gentoo.org>2022-12-01 19:41:05 +0000
commit4d51a91267c7c8bf34ba512f0a4a0fd045b6f38b (patch)
treefa9bc2d0d130f4f87b37e81693e1a55ac7deeaef /sys-apps/nawk
parentsys-apps/nawk: Remove dep on app-eselect/eselect-awk (diff)
downloadgentoo-4d51a91267c7c8bf34ba512f0a4a0fd045b6f38b.tar.gz
gentoo-4d51a91267c7c8bf34ba512f0a4a0fd045b6f38b.tar.bz2
gentoo-4d51a91267c7c8bf34ba512f0a4a0fd045b6f38b.zip
sys-apps/nawk: Adapt to app-alternatives/awk, deux
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-apps/nawk')
-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
}