Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/nawk/
Date: Thu, 01 Dec 2022 19:38:47
Message-Id: 1669923504.23401467319b8ec5d092057ac6fada11865adfb5.sam@gentoo
1 commit: 23401467319b8ec5d092057ac6fada11865adfb5
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 1 17:29:43 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 1 19:38:24 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23401467
7
8 sys-apps/nawk: Remove dep on app-eselect/eselect-awk
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11 Closes: https://github.com/gentoo/gentoo/pull/28495
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 .../{nawk-20180827.ebuild => nawk-20180827-r1.ebuild} | 19 +++++++++++--------
15 1 file changed, 11 insertions(+), 8 deletions(-)
16
17 diff --git a/sys-apps/nawk/nawk-20180827.ebuild b/sys-apps/nawk/nawk-20180827-r1.ebuild
18 similarity index 75%
19 rename from sys-apps/nawk/nawk-20180827.ebuild
20 rename to sys-apps/nawk/nawk-20180827-r1.ebuild
21 index d3ddf5c3f048..3e5c1d65b36b 100644
22 --- a/sys-apps/nawk/nawk-20180827.ebuild
23 +++ b/sys-apps/nawk/nawk-20180827-r1.ebuild
24 @@ -1,4 +1,4 @@
25 -# Copyright 1999-2021 Gentoo Authors
26 +# Copyright 1999-2022 Gentoo Authors
27 # Distributed under the terms of the GNU General Public License v2
28
29 EAPI=6
30 @@ -13,12 +13,9 @@ LICENSE="MIT"
31 SLOT="0"
32 KEYWORDS="~amd64 ~x86 ~amd64-linux"
33
34 -RDEPEND="
35 - app-eselect/eselect-awk"
36 -
37 DEPEND="
38 - ${RDEPEND}
39 - virtual/yacc"
40 + virtual/yacc
41 +"
42
43 S="${WORKDIR}/awk-${PV}"
44
45 @@ -48,9 +45,15 @@ src_install() {
46 }
47
48 pkg_postinst() {
49 - eselect awk update ifunset
50 + if has_version app-admin/eselect && has_version app-eselect/eselect-awk
51 + then
52 + eselect awk update ifunset
53 + fi
54 }
55
56 pkg_postrm() {
57 - eselect awk update ifunset
58 + if has_version app-admin/eselect && has_version app-eselect/eselect-awk
59 + then
60 + eselect awk update ifunset
61 + fi
62 }