1 |
commit: 17c4ef13ce60d48fef2d2f8487d7a3c41d087435 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 1 17:28:38 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=17c4ef13 |
7 |
|
8 |
sys-apps/mawk: Remove dep on app-eselect/eselect-awk |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
...4_p20200120.ebuild => mawk-1.3.4_p20200120-r1.ebuild} | 16 +++++++++------- |
14 |
1 file changed, 9 insertions(+), 7 deletions(-) |
15 |
|
16 |
diff --git a/sys-apps/mawk/mawk-1.3.4_p20200120.ebuild b/sys-apps/mawk/mawk-1.3.4_p20200120-r1.ebuild |
17 |
similarity index 77% |
18 |
rename from sys-apps/mawk/mawk-1.3.4_p20200120.ebuild |
19 |
rename to sys-apps/mawk/mawk-1.3.4_p20200120-r1.ebuild |
20 |
index b91c7903a945..eba4448165cf 100644 |
21 |
--- a/sys-apps/mawk/mawk-1.3.4_p20200120.ebuild |
22 |
+++ b/sys-apps/mawk/mawk-1.3.4_p20200120-r1.ebuild |
23 |
@@ -9,16 +9,12 @@ MY_P="${P/_p/-}" |
24 |
DESCRIPTION="An (often faster than gawk) awk-interpreter" |
25 |
HOMEPAGE="https://invisible-island.net/mawk/mawk.html" |
26 |
SRC_URI="https://invisible-mirror.net/archives/${PN}/${MY_P}.tgz" |
27 |
+S="${WORKDIR}/${MY_P}" |
28 |
|
29 |
LICENSE="GPL-2" |
30 |
SLOT="0" |
31 |
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux" |
32 |
|
33 |
-RDEPEND="app-eselect/eselect-awk" |
34 |
-DEPEND="${RDEPEND}" |
35 |
- |
36 |
-S="${WORKDIR}/${MY_P}" |
37 |
- |
38 |
DOCS=( ACKNOWLEDGMENT CHANGES README ) |
39 |
|
40 |
src_configure() { |
41 |
@@ -35,9 +31,15 @@ src_install() { |
42 |
} |
43 |
|
44 |
pkg_postinst() { |
45 |
- eselect awk update ifunset |
46 |
+ if has_version app-admin/eselect && has_version app-eselect/eselect-awk |
47 |
+ then |
48 |
+ eselect awk update ifunset |
49 |
+ fi |
50 |
} |
51 |
|
52 |
pkg_postrm() { |
53 |
- eselect awk update ifunset |
54 |
+ if has_version app-admin/eselect && has_version app-eselect/eselect-awk |
55 |
+ then |
56 |
+ eselect awk update ifunset |
57 |
+ fi |
58 |
} |