commit:     8af93c014c2cec57b4f93b963756266f5967c35c
Author:     Petr Vaněk <arkamar <AT> gentoo <DOT> org>
AuthorDate: Wed Aug  7 11:00:30 2024 +0000
Commit:     Petr Vaněk <arkamar <AT> gentoo <DOT> org>
CommitDate: Wed Aug  7 19:32:34 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8af93c01

net-mail/mailfront: respect AR, RANLIB and LDFLAGS

Closes: https://bugs.gentoo.org/727834
Closes: https://bugs.gentoo.org/792249
Closes: https://bugs.gentoo.org/792252
Signed-off-by: Petr Vaněk <arkamar <AT> gentoo.org>

 net-mail/mailfront/mailfront-2.22-r1.ebuild | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/net-mail/mailfront/mailfront-2.22-r1.ebuild 
b/net-mail/mailfront/mailfront-2.22-r1.ebuild
index 1ca496fbbd32..d7880f49f5c7 100644
--- a/net-mail/mailfront/mailfront-2.22-r1.ebuild
+++ b/net-mail/mailfront/mailfront-2.22-r1.ebuild
@@ -19,13 +19,26 @@ RDEPEND="${DEPEND}
        virtual/qmail
        net-libs/cvm"
 
+src_prepare() {
+       default
+       local sed_args=(
+               # make compilation more verbose
+               -e '/exec/ {h;s/exec/echo/g;G}'
+               # replace AR and be more verbose, bug #792249
+               -e "/ar cr/ {h;s/ar/echo &/;G;s:ar:$(tc-getAR):g}"
+               # replace RANLIB and be more verbose, bug #792252
+               -e "/ranlib/ {h;s/ranlib/echo &/;G;s:ranlib:$(tc-getRANLIB):g}"
+       )
+       sed -i "${sed_args[@]}" Makefile || die
+}
+
 src_configure() {
        echo "${EPREFIX}/var/qmail" > conf-qmail || die
        echo "/var/qmail/bin" > conf-bin || die
        echo "/usr/$(get_libdir)/mailfront" > conf-modules || die
        echo "/usr/include" > conf-include || die
        echo "$(tc-getCC) ${CFLAGS}" > conf-cc || die
-       echo "$(tc-getCC) ${CFLAGS} -fPIC -shared" > conf-ccso || die
+       echo "$(tc-getCC) ${CFLAGS} -fPIC -shared ${LDFLAGS}" > conf-ccso || die
        echo "$(tc-getCC) ${LDFLAGS}" > conf-ld || die
 }
 

Reply via email to