summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-12-01 18:28:38 +0100
committerSam James <sam@gentoo.org>2022-12-01 19:38:24 +0000
commit17c4ef13ce60d48fef2d2f8487d7a3c41d087435 (patch)
tree7599b7e93b6e762e8bb1f53d1f430923d198e782
parentapp-alternatives/awk: New package to control awk symlinks (diff)
downloadgentoo-17c4ef13ce60d48fef2d2f8487d7a3c41d087435.tar.gz
gentoo-17c4ef13ce60d48fef2d2f8487d7a3c41d087435.tar.bz2
gentoo-17c4ef13ce60d48fef2d2f8487d7a3c41d087435.zip
sys-apps/mawk: Remove dep on app-eselect/eselect-awk
Signed-off-by: Michał Górny <mgorny@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--sys-apps/mawk/mawk-1.3.4_p20200120-r1.ebuild (renamed from sys-apps/mawk/mawk-1.3.4_p20200120.ebuild)16
1 files changed, 9 insertions, 7 deletions
diff --git a/sys-apps/mawk/mawk-1.3.4_p20200120.ebuild b/sys-apps/mawk/mawk-1.3.4_p20200120-r1.ebuild
index b91c7903a945..eba4448165cf 100644
--- a/sys-apps/mawk/mawk-1.3.4_p20200120.ebuild
+++ b/sys-apps/mawk/mawk-1.3.4_p20200120-r1.ebuild
@@ -9,16 +9,12 @@ MY_P="${P/_p/-}"
DESCRIPTION="An (often faster than gawk) awk-interpreter"
HOMEPAGE="https://invisible-island.net/mawk/mawk.html"
SRC_URI="https://invisible-mirror.net/archives/${PN}/${MY_P}.tgz"
+S="${WORKDIR}/${MY_P}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux"
-RDEPEND="app-eselect/eselect-awk"
-DEPEND="${RDEPEND}"
-
-S="${WORKDIR}/${MY_P}"
-
DOCS=( ACKNOWLEDGMENT CHANGES README )
src_configure() {
@@ -35,9 +31,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
}