commit:     4d6c697c399f1e323bbe29964a8b5660f393ab14
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Feb  9 05:15:09 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Feb  9 05:15:09 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d6c697c

sys-apps/gawk: drop obsolete eselect-awk code

We have app-alternatives/awk these days and eselect-awk is long-gone.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-apps/gawk/gawk-5.3.1.ebuild | 27 ---------------------------
 1 file changed, 27 deletions(-)

diff --git a/sys-apps/gawk/gawk-5.3.1.ebuild b/sys-apps/gawk/gawk-5.3.1.ebuild
index 65e4aa1189b5..116a94925b2f 100644
--- a/sys-apps/gawk/gawk-5.3.1.ebuild
+++ b/sys-apps/gawk/gawk-5.3.1.ebuild
@@ -107,30 +107,3 @@ src_install() {
        doins *.h
        rm "${ED}"/usr/include/awk/config.h || die
 }
-
-pkg_postinst() {
-       # Symlink creation here as the links do not belong to gawk, but to any 
awk
-       if has_version app-admin/eselect && has_version app-eselect/eselect-awk 
; then
-               eselect awk update ifunset
-       else
-               local l
-               for l in "${EROOT}"/usr/share/man/man1/gawk.1* 
"${EROOT}"/usr/bin/gawk ; do
-                       if [[ -e ${l} ]] && ! [[ -e ${l/gawk/awk} ]] ; then
-                               ln -s "${l##*/}" "${l/gawk/awk}" || die
-                       fi
-               done
-
-               if ! [[ -e ${EROOT}/bin/awk ]] ; then
-                       # /bin might not exist yet (stage1)
-                       [[ -d "${EROOT}/bin" ]] || mkdir "${EROOT}/bin" || die
-
-                       ln -s "../usr/bin/gawk" "${EROOT}/bin/awk" || die
-               fi
-       fi
-}
-
-pkg_postrm() {
-       if has_version app-admin/eselect && has_version app-eselect/eselect-awk 
; then
-               eselect awk update ifunset
-       fi
-}

Reply via email to