commit:     61e8874b4fa28acae646e2eed233bde605f81adf
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 16 16:55:04 2022 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sun Jan 16 17:04:04 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61e8874b

net-misc/wget: move "/usr/local/etc" replacement to src_prepare

Closes: https://bugs.gentoo.org/831287
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 net-misc/wget/wget-1.21.2.ebuild | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

diff --git a/net-misc/wget/wget-1.21.2.ebuild b/net-misc/wget/wget-1.21.2.ebuild
index 88a127f8983f..9c81e83ed1ec 100644
--- a/net-misc/wget/wget-1.21.2.ebuild
+++ b/net-misc/wget/wget-1.21.2.ebuild
@@ -67,6 +67,8 @@ src_prepare() {
                        -e 's/^  LIBICONV=$/:/' \
                        configure || die
        fi
+
+       sed -i -e "s:/usr/local/etc:${EPREFIX}/etc:g" 
doc/{sample.wgetrc,wget.texi} || die
 }
 
 src_configure() {
@@ -108,14 +110,3 @@ src_configure() {
        ac_cv_libunistring=no \
        econf "${myeconfargs[@]}"
 }
-
-src_install() {
-       default
-
-       sed -i \
-               -e "s:/usr/local/etc:${EPREFIX}/etc:g" \
-               "${ED}"/etc/wgetrc \
-               "${ED}"/usr/share/man/man1/wget.1 \
-               "${ED}"/usr/share/info/wget.info \
-               || die
-}

Reply via email to